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

pidstringRequiredformat: "uuid"
Loyalty Program Id
cidstringRequiredformat: "uuid"
Contact Id

Request

Create Balance Payload
balanceDefinitionIdstringRequired

Unique identifier (UUID) of the balance definition associated with the new balance.

Response

Successful creation of balance
amountdouble
The current amount available in the balance
balanceDefinitionIdstring
balance definition ID
consumedAtstring
Timestamp of when the balance was last consumed
contactIdinteger
contact ID
createdAtstring
Timestamp of when the balance was created
expiresAtstring
Expiration timestamp of the balance
idstring
Unique identifier for the balance
loyaltyProgramIdstring
loyalty program ID
organizationIdinteger
organization ID

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error