Create voucher order
POST/order/voucher/
Place a new order to exchange your funds for a voucher that you can collect and convert later with other vouchers for your preferred amount and asset.
Request
- application/json
Body
email emailrequired
from_amount floatrequired
from_asset stringrequired
refund_crypto_address stringrequired
Responses
- 200
The details of the new order for your voucher request.
- application/json
- Schema
- Example (from schema)
- Example
Schema
order object
id string
status string
Possible values: [WAITING_FOR_DEPOSIT
, DEPOSIT_RECEIVED
, DEPOSIT_CONFIRMED
, APPROVED
, COMPLETED
, CANCELED
, EXPIRED
, REJECTED
, REFUNDED
]
email email
refund_crypto_address string
created_at string
expires_at string
confirmed_at string
approved_at string
completed_at string
deposit_crypto_address string
not null if from_asset
is 'crypto'
deposit_bank_address string
not null if from_asset
is 'fiat'
deposit_bank_name string
not null if from_asset
is 'fiat'
deposit_beneficiary string
not null if from_asset
is 'fiat'
deposit_beneficiary_address string
not null if from_asset
is 'EUR'
deposit_sepa_address string
not null if from_asset
is 'EUR'
deposit_swift_address string
not null if from_asset
is 'fiat'
deposit_swift_intermediary_address string
not null if from_asset
is 'fiat'
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
destination_bank_routing_number string
funding object
txs undefined[]
deposit_amount float
{
"order": {
"id": "string",
"status": "WAITING_FOR_DEPOSIT",
"email": "user@example.com",
"refund_crypto_address": "string",
"created_at": "string",
"expires_at": "string",
"confirmed_at": "string",
"approved_at": "string",
"completed_at": "string",
"deposit_crypto_address": "string",
"deposit_bank_address": "string",
"deposit_bank_name": "string",
"deposit_beneficiary": "string",
"deposit_beneficiary_address": "string",
"deposit_sepa_address": "string",
"deposit_swift_address": "string",
"deposit_swift_intermediary_address": "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",
"destination_bank_routing_number": "string",
"funding": {
"txs": [
null
]
},
"deposit_amount": 0
}
}
{
"order": {
"id": "c593b1ab-7273-4121-a78b-87d1786d00d9",
"status": "WAITING_FOR_DEPOSIT",
"email": "user@example.com",
"refund_crypto_address": "bc1q7zp7qycuf0ukcgjs5nw8398cf3az64wn52lx2d",
"created_at": "2023-11-08T15:34:30.532063Z",
"expires_at": "2023-11-08T16:34:30.532063Z",
"deposit_crypto_address": "bc1q8u2y8r5r8a9p6vx3s3wz835zh6nxhdmd55lhhq",
"from_amount": 0.021,
"from_asset": "BTC",
"to_asset": "LEAF"
}
}
Loading...