PATCH
/
v1
/
vouchers
curl --request PATCH \
  --url https://staging-vouchers.ventogram.com/api/v1/vouchers \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Api-User: <api-key>' \
  --data '{
  "email": "<string>",
  "voucherCode": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "email": "<string>",
    "voucherCode": "<string>",
    "amount": 123,
    "fee": 123,
    "wavedFee": 123,
    "merchant": "<string>",
    "currency": "NGN",
    "feeBearer": "client",
    "toAmount": 123,
    "fromAmount": 123,
    "fromCurrency": "<string>",
    "toCurrency": "<string>",
    "rate": 123,
    "previousBalance": 123,
    "currentBalance": 123
  }
}

Authorizations

X-Api-User
string
header
required
X-Api-Key
string
header
required

Body

application/json
email
string
required

Email that was used to create the voucher

voucherCode
string
required

Voucher code to be redeemed

Response

200
application/json
successful operation
success
boolean
message
string
data
object