Create loyalty program

Creates loyalty program

Authentication

api-keystring

The API key should be passed in the request headers as api-key for authentication.

Request

Payload for creating a new loyalty program.
namestringRequired<=128 characters

Required name of the loyalty program (max 128 chars).

descriptionstringOptional<=256 characters

Optional description of the loyalty program (max 256 chars).

documentIdstringOptional
Optional unique document ID.
metamap from strings to anyOptional
Optional metadata related to the loyalty program.

Response

Successfully created loyalty program.
idstringOptionalformat: "uuid"
Loyalty Program unique identifier.
namestringOptional
Loyalty Program name.
descriptionstringOptional
Loyalty Program description.
metamap from strings to anyOptional
Loyalty Program metadata.
stateenumOptional
Current state of the loyalty program.
subscriptionPoolIdstringOptionalformat: "uuid"
Loyalty Program subscription pool ID.
subscriptionGeneratorIdstringOptionalformat: "uuid"
Loyalty Program subscription generator ID.
patternstringOptional
Subscription code pattern.
codeCountlongOptional
Number of available subscription codes.
documentIdstringOptionalformat: "uuid"
Associated document identifier.
birthdayAttributestringOptional
Contact attribute name used for birthday tracking.
createdAtdatetimeOptional
Timestamp when the loyalty program was created.
updatedAtdatetimeOptional
Timestamp when the loyalty program was last modified.

Errors

401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
422
Unprocessable Entity Error
500
Internal Server Error