Confirm voucher order
POST/order/voucher/confirm/:id/
Confirm an order by sharing the hash of the deposit transaction(s) with Chimera to generate a voucher.
Request
Path Parameters
id stringrequired
The id that identifies the placed order
- application/json
Body
txs undefined[]required
Responses
- 200
The updated details of your voucher order and the new voucher.
- 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
trade object
from_amount float
from_asset string
to_amount float
to_asset string
fee_amount float
price float
timestamp string
voucher object
code string
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
},
"trade": {
"from_amount": 0,
"from_asset": "string",
"to_amount": 0,
"to_asset": "string",
"fee_amount": 0,
"price": 0,
"timestamp": "string"
},
"voucher": {
"code": "string",
"amount": 0
}
}
{
"order": {
"id": "c593b1ab-7273-4121-a78b-87d1786d00d9",
"status": "COMPLETED",
"email": "user@example.com",
"refund_crypto_address": "bc1q7zp7qycuf0ukcgjs5nw8398cf3az64wn52lx2d",
"created_at": "2023-11-08T15:34:30.532063Z",
"confirmed_at": "2023-11-08T15:45:16.532063Z",
"approved_at": "2023-11-08T15:47:28.532063Z",
"completed_at": "2023-11-08T15:47:28.532063Z",
"deposit_crypto_address": "bc1q8u2y8r5r8a9p6vx3s3wz835zh6nxhdmd55lhhq",
"from_amount": 0.021,
"from_asset": "BTC",
"to_asset": "LEAF",
"funding": {
"txs": [
"3f65c9e141399ec1c6500fe745852d5aee35cca73bc2256237bc82763ad92bc2",
"4a34ddbe04fe5a683362403aa22c73fe5a4d8ce4fbcc372eef9cd72dcf868849"
]
},
"deposit_amount": 0.021
},
"trade": {
"from_amount": 0.021,
"from_asset": "BTC",
"to_amount": 1800,
"to_asset": "LEAF",
"fee_amount": 200,
"price": 85714.29,
"timestamp": "2023-11-08T15:46:00.532063Z"
},
"voucher": {
"code": "76e1d184-47cc-4d25-8c1e-c75c2031d755",
"amount": 1600
}
}
Loading...