Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
A code that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u.
"2CpRCE2c"
Body
Provide the amount to be added to/subtracted from the voucher.
Request body schema for vouchers/{code}/balance.
The incremental amount to be added to or removed from the current balance on the gift card or loyalty card. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00. To remove balance, simply add a minus sign before the value, i.e. to remove $20, use -2000.
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.
Reason why the transaction occurred.
Response
Returns a balance object if the operation succeeded.
Response body schema for vouchers/{code}/balance.
The incremental amount added (positive integer) or subtracted (negative integer) to the current balance on the gift card or loyalty card. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00.
Total income incurred over the lifespan of the gift card or loyalty card.
The balance after adding or subtracting a specified amount. The value is multiplied by 100 to represent 2 decimal places. For example 10000 cents for $100.00.
The type of voucher being modified.
gift_voucher, loyalty_card The type of the operation being performed.
MANUAL The type of the object represented by JSON. Default is balance.
balance Defines the resource that is being modified with the values that are returned in the balance object.

