Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Unique loyalty card assigned to a particular customer.
"MmFAzfDe"
Body
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.
- To add points: 100
- To subtract points, add a minus: -100
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.
Response
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 >= 0
The 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