POST
/members
Enroll a customer in the loyalty program
POST /members
Creates a member for an existing webshop customer. New members start in the BRONZE tier with zero points.
Request body
Required.
Content type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
email |
string (email) | yes | Email address of the webshop account |
name |
string | yes | Display name |
Responses
201 — Member enrolled
| Property | Type | Required | Description |
|---|---|---|---|
id |
string | yes | Public ID of the member |
email |
string (email) | yes | Email address of the webshop account |
name |
string | yes | Display name |
tier |
string | yes | Loyalty tier, raised by points earned in the last 12 months |
pointsBalance |
integer | yes | Points available to redeem |
enrolledAt |
string (date-time) | yes | When the customer joined the program |
400 — The request body is invalid
| Property | Type | Required | Description |
|---|---|---|---|
type |
string (uri) | yes | URI that identifies the problem type |
title |
string | yes | Short, human-readable summary |
status |
integer | yes | HTTP status code |
detail |
string | no | Explanation specific to this occurrence |
401 — Missing or invalid bearer token
| Property | Type | Required | Description |
|---|---|---|---|
type |
string (uri) | yes | URI that identifies the problem type |
title |
string | yes | Short, human-readable summary |
status |
integer | yes | HTTP status code |
detail |
string | no | Explanation specific to this occurrence |