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>"
}
}
Redeems an existing unused voucher and transfers crypto to the provided wallet address
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>"
}
}
successful operation
The response is of type object
.