PATCH
/
v1
/
voucher
/
redeem-and-withdraw
curl --request PATCH \
  --url https://staging-vouchers.ventogram.com/api/v1/voucher/redeem-and-withdraw \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Api-User: <api-key>' \
  --data '{
  "email": "<string>",
  "voucherCode": "<string>",
  "network": "<string>",
  "currency": "USDC",
  "merchantFee": "<string>",
  "cryptoAddress": "<string>",
  "rateKey": "<string>"
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": "<string>",
    "email": "<string>",
    "voucherCode": "<string>",
    "merchant": "<string>",
    "fromCurrency": "<string>",
    "voucherFee": 123,
    "feeBearer": "merchant",
    "toAmount": 123,
    "fromAmount": 123,
    "toCurrency": "<string>",
    "rate": 123,
    "merchantFee": 123,
    "withdrawalFee": 123,
    "previousBalance": 123,
    "convertedVoucherFee": 123,
    "convertedVoucherFeeCurrency": "<string>",
    "toAccount": "<string>",
    "currentBalance": 123,
    "reference": "<string>",
    "creditCurrency": "<string>"
  }
}

Authorizations

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

Body

application/json

Response

200
application/json
successful operation

The response is of type object.