<- Loyalty API

Loyalty API

All versions ->

Create loyalty account

POST

 /v2/loyalty/accounts

Creates a loyalty account.

To create a loyalty account, you must provide the program_id and a mapping with the phone_number of the buyer.

Permissions:LOYALTY_WRITE
Try in API Explorer
Link to section

Request body

Example code

Link to section

loyalty_account

Required

The loyalty account to create.

Link to section

idempotency_key

string

Required

A unique string that identifies this CreateLoyaltyAccount request. Keys can be any valid string, but must be unique for every request.

Link to section

Response fields

Link to section

errors

Any errors that occurred during the request.

Link to section

loyalty_account

The newly created loyalty account.

Error descriptions