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.
name
Required name of the loyalty program (max 128 chars).
description
Optional description of the loyalty program (max 256 chars).
documentId
Optional unique document ID.
meta
Optional metadata related to the loyalty program.
Response
Successfully created loyalty program.
id
Loyalty Program unique identifier.
name
Loyalty Program name.
description
Loyalty Program description.
meta
Loyalty Program metadata.
state
Current state of the loyalty program.
Allowed values:
subscriptionPoolId
Loyalty Program subscription pool ID.
subscriptionGeneratorId
Loyalty Program subscription generator ID.
pattern
Subscription code pattern.
codeCount
Number of available subscription codes.
documentId
Associated document identifier.
birthdayAttribute
Contact attribute name used for birthday tracking.
createdAt
Timestamp when the loyalty program was created.
updatedAt
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