v2
You are reading v1 & v2. v1 and v2 are deprecated. They keep working and are still supported, but new integrations should use v3.

Retrieve transaction info of an order

User/Sell

GET/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 request
curl -X GET https://api.btcdirect.eu/api/v1/user/sell/orders/{id}/transaction-info \  -H "Authorization: Bearer $BTCD_PARTNER_TOKEN"
Choose an environment to run this.

Response

Transaction info retrieved successfully.
{  "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 retrieve the transaction info for.

Responses

200Transaction info retrieved successfully.
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.