v2

latestOpenAPI 3.1.02026-08-01244220427.0 KB
Loyalty

Create Loyalty Program Customer

Create Loyalty Program Customer

Creates a new customer within a loyalty program.

Path Parameters:

  • programId: UUID of the loyalty program

Request Body:

  • data: Customer data to be added

Returns:

  • Customer details as a JSON object on successful creation.
  • HTTP 404 Not Found if the program template is not found.
post/v2/loyalty/programs/{programId}/customers

Path parameters

string required
OR
string required
Example:5eb7cf5a86d9755df3a6c593

Headers

authorizationstring nullable

Request body

firstNamestring nullable
lastNamestring nullable
phonestring phone nullable
pointsinteger
referrerIdstring
customFieldsobject nullable
initialConsentGrantedobject nullable

Example request

{
  "referrerId": "5eb7cf5a86d9755df3a6c593"
}

Response

Successful Response

{"stackTrail":"paths:/v2/loyalty/programs/{programId}/customers:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}