This method gives adds or removes balance to an existing loyalty card that is assigned to a holder. The removal of points will consume the points that expire the soonest.
๐ง Async Action
This is an async action. If you want to perform several add or remove loyalty card balance actions in a short time and their order matters, set up sufficient time-out between the calls.
๐ Alternative endpoint This endpoint is an alternative to this endpoint. The URL was re-designed to allow you to add or remove loyalty card balance without having to provide the
campaignIdas a path parameter.
The access token received from the authorization server in the OAuth 2.0 flow.
Unique loyalty card assigned to a particular customer.
"MmFAzfDe"
Specify the point adjustment along with the expiration mechanism.
Request Body schema for POST v1/loyalties/members/{memberId}/balance and POST v1/loyalties/{campaignId}/members/{memberId}/balance.
Incremental balance to be added to/subtracted from the loyalty card.
Set the type of expiration for added points.
PROGRAM_RULES: Inherit rules from campaign.
NON_EXPIRING: Points never expire.
CUSTOM_DATE: Points expire on a particular date. Requires expiration_date parameter.
PROGRAM_RULES, CUSTOM_DATE, NON_EXPIRING Set expiration date for added points, i.e. YYYY-MM-DD. This parameter is required only when expiration_type is set to CUSTOM_DATE.
Reason for the transfer.
The merchant's transaction ID if it is different from the Voucherify transaction ID. It is really useful in case of an integration between multiple systems. It can be a transaction ID from a CRM system, database or 3rd-party service.
Returns a balance object.
Response schema for POST v1/loyalties/members/{memberId}/balance and for POST v1/loyalties/{campaignId}/members/{memberId}/balance.
The incremental points removed or added to the current balance on the loyalty card.
The total of points accrued over the lifetime of the loyalty card.
The balance after adding/removing points.
x >= 0The type of voucher being modified.
loyalty_card, gift_voucher The type of the object represented by JSON. Default is balance.
balance Defines the object that is being modified with the values that are returned in the balance object.
The type of operation being performed.
MANUAL, AUTOMATIC