Retrieve the status of an order
User/Sell
GET/api/v1/user/sell/orders/{id}
Send two credentials: your own, and the customer's.
How authentication works- Either
Authorization: BearerorUser-Authorization: Bearer
Language
Environment
Credentials
Your credential, or the customer's
Choose an environment first.
curl -X GET https://api.btcdirect.eu/api/v1/user/sell/orders/{id}?returnReceived= \ -H "Authorization: Bearer $BTCD_PARTNER_TOKEN"Response
{ "id": 12345, "date": "2019-06-18T07:32:28Z", "currencyPair": "BTC-EUR", "status": "completed", "feeAmount": { "amount": 3000, "currencyCode": "EUR" }, "partnerFee": { "amount": 3000, "currencyCode": "EUR" }, "feePercentage": 1.5, "paymentMethodFee": { "amount": 3000, "currencyCode": "EUR" }, "networkFee": { "amount": 3000, "currencyCode": "EUR" }, "btcdirectFee": { "amount": 3000, "currencyCode": "EUR" }, "partnerOrderIdentifier": "4ea2b5e9-a413-4359-a8f6-9263ae8a0ee7", "spreadFee": { "amount": 0.42, "currencyCode": "EUR" }, "orderNotCompletedReasons": [ { "code": "011", "description": "Your IBAN account is not verified.", "solution": "Verify your IBAN account.", "url": "https://my.btcdirect.eu/nl-nl/iban-verification/", "userActionRequired": true, "supportActionRequired": false } ], "price": { "amount": 0.5, "currencyCode": "BTC" }, "value": { "amount": 3000, "currencyCode": "EUR" }, "walletAddress": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "destinationTag": { "default": "ABC1234", "XRP": 12341 }, "blockchainInfo": { "walletAddress": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "walletExplorer": "https://www.blockchain.com/btc/address/3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "transactionId": "f5d8ee39a430901c91a5917b9f2dc19d6d1a0e9cea205b009ca73dd04470b9a6", "transactionExplorer": "https://www.blockchain.com/btc/tx/f5d8ee39a430901c91a5917b9f2dc19d6d1a0e9cea205b009ca73dd04470b9a6" }, "bankAccount": "NL37BUNQ2025406444", "quotedCrypto": { "amount": 0.5, "currencyCode": "BTC" }, "quotedFiat": { "amount": 0.5, "currencyCode": "BTC" }, "sourceCurrency": {}, "targetCurrency": {}}Parameters
idstring (path)required
The id or the partner order identifier of the order to retrieve.
returnReceivedboolean (query)
Will return the crypto amount that has been received thus far and the fiat amount into the `price` and `value` fields.
Responses
200Order status retrieved successfully.400A list of possible errors for this endpoint.Body of the success response
idintegerrequired
The order id.
datedate-timerequired
The date and time of the order.
Example2019-06-18T07:32:28Z
currencyPairstringrequired
The currency pair of the order.
ExampleBTC-EUR
statusstringrequired
The current status of the order.
Can be one ofcancelledpendingin progressblockedcompletedrefunded
Examplecompleted
feeAmountobjectrequired
partnerFeeobject
feePercentagenumber
The fee earned by the partner in terms of a percentage for this order.
paymentMethodFeeobjectrequired
networkFeeobjectrequired
btcdirectFeeobjectrequired
partnerOrderIdentifierstring
Unique identifier provided by the partner.
Example4ea2b5e9-a413-4359-a8f6-9263ae8a0ee7
spreadFeestring
U
Defaultnull
orderNotCompletedReasonsobject[]required
reasons as of why the order is not yet completed.
Default
priceobjectrequired
valueobjectrequired
walletAddressstring
The address to which the coins should be sent.
Example3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5
destinationTagstring|integer
The destination tag which should be used to send the coins. This depends on the coin type and can be a string or an integer. For XRP it is an integer, for other coins it is a string.
blockchainInfoone of
The blockchain information involved in this order.
bankAccountstringrequired
The IBAN account number to which fiat is paid out to.
ExampleNL37BUNQ2025406444
quotedCryptoobjectrequired
quotedFiatobjectrequired
sourceCurrencyone of
The source currency (crypto) of the order, including optional CAIP-19 identifier.
Defaultnull
targetCurrencyone of
The target currency (fiat) of the order, including optional CAIP-19 identifier.
Defaultnull
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.