cURL
curl --request POST \ --url https://{cluster}.voucherify.io/v1/vouchers/{code}/balance \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'X-App-Id: <api-key>' \ --header 'X-App-Token: <api-key>' \ --data '{ "amount": 10000 }'
{ "amount": 10000, "total": 20100, "balance": 20100, "type": "gift_voucher", "object": "balance", "related_object": { "type": "voucher", "id": "v_abCdEfghI1JKLMNPqRS2Tu3vWXyza4bc" } }
Add balance to an existing gift card or loyalty card. For loyalty cards, it must be assigned to a holder.
gift_voucher
loyalty_card
MANUAL
balance
Show child attributes
Was this page helpful?