Store a transaction id of an order
User/Sell
POST/api/v1/user/sell/orders/{id}/transaction-info
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 POST https://api.btcdirect.eu/api/v1/user/sell/orders/{id}/transaction-info \ -H "Authorization: Bearer $BTCD_PARTNER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "transactionId": "8ae994e962f3014cf2ddf05fc7f86972977f5fb6327b74b81ae94ed61417d61f" }'Response
{ "transactionId": "c6fefe8d7ac0f4113876d634e8d15f65947f1b62d4859fffcd2464d2be58b2d8", "address": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5", "destinationTag": { "default": "ABC1234", "XRP": 12341 }, "amount": { "amount": 0.5, "currencyCode": "BTC" }, "finishedAt": "2019-06-18T07:32:28Z"}Parameters
idstring (path)required
The id or partner order identifier of the order to store the transaction info for.
Responses
201Transaction ID stored succesfully.400A list of possible errors for this endpoint.Body of the success response
transactionIdstring
The transaction id of the order.
Examplec6fefe8d7ac0f4113876d634e8d15f65947f1b62d4859fffcd2464d2be58b2d8
addressstring
The address to which the coins have been 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.
amountone of
The amount of the transaction
finishedAtdate-time
The date and time when the transaction was finished.
Example2019-06-18T07:32:28Z
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.