PATCH
/
v1
/
voucher
/
redeem-and-withdraw

Authorizations

X-Api-User
string
headerrequired
X-Api-Key
string
headerrequired

Body

application/json
email
string
required

Email that was used to create the voucher

voucherCode
string
required

Voucher code to be redeemed

network
string
required

Supported crypto network

currency
enum<string>
required

Cryptocurrency to send to the provided wallet details

Available options:
USDC,
USDT
merchantFee
string

In USD (optional) with a precision of 2 decimal places (max). Can be supplied if the merchant want to withdraw a portion of the voucher amount into their Ventogram balance. This must be a fraction or all of voucher value (ie received amount - voucher fee)

cryptoAddress
string
required

Must be provided along with newtwork. The crypto wallet address on the provided network, to which crypto equivalent will be sent

rateKey
string

This is a Ventogram-signed rate key. This will be returned in response if the signed rate was used for conversion.

Response

200 - application/json
success
boolean
message
string
data
object