Menu
Update Voucher Balance
Adjust Voucher Balance
POST
/v1/vouchers/{code}/balanceUse it in a workflow
- Add a step and choose the Voucherify connector.
- Pick the Update Voucher Balance action (under Vouchers).
- Fill in the fields below, then reference the result from later steps as
{{updateVoucherBalance.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"amount": 0,
"source_id": "string",
"reason": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{updateVoucherBalance.response.data.<field>}}.
{
"amount": 0,
"total": 0,
"balance": 0,
"type": "gift_voucher",
"operation_type": "MANUAL",
"object": "balance",
"related_object": {
"type": "voucher",
"id": "v_abCdEfghI1JKLMNPqRS2Tu3vWXyza4bc"
}
}
Need more? See the Voucherify guide for connection setup and behaviour shared by every action.
Was this page helpful?