Skip to main content
POST
/
v1
/
vouchers
/
{code}
/
balance
Adjust Voucher Balance
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"
  }
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

Path Parameters

code
string
required
Example:

Body

application/json
amount
integer
required
source_id
string
reason
string

Response

amount
integer
required
total
integer
required
balance
integer
required
type
enum<string>
required
Available options:
gift_voucher,
loyalty_card
operation_type
enum<string>
required
Available options:
MANUAL
object
enum<string>
default:balance
required
Available options:
balance