Create subscription balances
Creates a balance for a contact
Authentication
api-keystring
The API key should be passed in the request headers as api-key for authentication.
Path parameters
pid
Loyalty Program Id
cid
Contact Id
Request
Create Balance Payload
balanceDefinitionId
Unique identifier (UUID) of the balance definition associated with the new balance.
Response
Successful creation of balance
id
Unique identifier for the balance.
amount
The current amount available in the balance.
loyaltyProgramId
Loyalty program ID.
organizationId
Organization ID.
contactId
Contact ID.
balanceDefinitionId
Balance definition ID.
createdAt
Timestamp of when the balance was created.
expiresAt
Expiration timestamp of the balance.
consumedAt
Timestamp of when the balance was last consumed.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error