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
idstringformat: "uuid"
Unique identifier for the balance.
amountdouble
The current amount available in the balance.
loyaltyProgramIdstringformat: "uuid"
Loyalty program ID.
organizationIdlong
Organization ID.
contactIdlong
Contact ID.
balanceDefinitionIdstringformat: "uuid"
Balance definition ID.
createdAtdatetime
Timestamp of when the balance was created.
expiresAtdatetime
Expiration timestamp of the balance.
consumedAtdatetime
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