Create subscription
Subscribes to a loyalty program
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program ID. A unique identifier for the loyalty program.
Request
Create Subscription Payload
contactId
Required contact ID; must be greater than 0.
loyaltySubscriptionId
Optional subscription ID (max length 64).
creationDate
Optional creation date in ISO 8601 format (YYYY-MM-DDThh:mm:ss.ffffff+HH:MM). Must be in the past.
meta
Optional metadata associated with the subscription.
Response
Successfully created subscription.
organizationId
Unique identifier of the organization.
loyaltyProgramId
Unique identifier of the loyalty program.
versionId
Version number of the subscription.
contactId
Unique identifier of the contact.
loyaltySubscriptionId
Unique identifier of the subscription.
meta
Metadata associated with the subscription.
createdAt
Timestamp when the subscription was created.
updatedAt
Timestamp when the subscription was last updated.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error