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.
creationDate
Optional custom date-time format.
loyaltySubscriptionId
Optional subscription ID (max length 64).
Response
Successfully created subscription.
contactId
Unique identifier of the contact.
createdAt
Timestamp when the subscription was created.
loyaltyProgramId
Unique identifier of the loyalty program.
loyaltySubscriptionId
Unique identifier of the subscription.
organizationId
Unique identifier of the organization.
updatedAt
Timestamp when the subscription was last updated.
versionId
Version number of the subscription.