Redeem vouchers
POST/voucher/redeem/
Spend one or multiple vouchers for the selected amount and asset. If some change is produced, a new voucher worth that amount is created.
Request
Responses
- 200
The order representing the redeemed vouchers and the eventual voucher created for the change.
- application/json
- Schema
- Example (from schema)
Schema
order object
id string
status string
Possible values: [WAITING_FOR_DEPOSIT, DEPOSIT_RECEIVED, DEPOSIT_CONFIRMED, APPROVED, COMPLETED, CANCELED, EXPIRED, REJECTED, REFUNDED]
email email
created_at string
expires_at string
confirmed_at string
approved_at string
completed_at string
from_amount float
from_asset string
to_asset string
destination_type string
Possible values: [crypto, sepa, swift, us]
destination_crypto_address string
destination_bank_address string
destination_bank_name string
destination_bank_account_number string
trade object
from_amount float
from_asset string
to_amount float
to_asset string
fee_amount float
price float
timestamp string
voucher object
id string
code string
value float
currency string
created_at string
expires_at string
redeemed boolean
{
"order": {
"id": "string",
"status": "WAITING_FOR_DEPOSIT",
"email": "user@example.com",
"created_at": "string",
"expires_at": "string",
"confirmed_at": "string",
"approved_at": "string",
"completed_at": "string",
"from_amount": 0,
"from_asset": "string",
"to_asset": "string",
"destination_type": "crypto",
"destination_crypto_address": "string",
"destination_bank_address": "string",
"destination_bank_name": "string",
"destination_bank_account_number": "string"
},
"trade": {
"from_amount": 0,
"from_asset": "string",
"to_amount": 0,
"to_asset": "string",
"fee_amount": 0,
"price": 0,
"timestamp": "string"
},
"voucher": {
"id": "string",
"code": "string",
"value": 0,
"currency": "string",
"created_at": "string",
"expires_at": "string",
"redeemed": true
}
}
Loading...