Bind the customer's on-chain transaction to this order
Nothing about this is direction-specific; only the legacy path said so.
POST/api/v3/orders/{id}/deposit-transaction
Send two credentials: your own, and the customer's.
How authentication works- Yours
x-api-keyorAuthorization: Bearer- The customer's
User-Authorization: BearerorUser-Identifier
When a customer sends crypto themselves, this is how you tell us which transfer belongs to which order. We then watch that transaction rather than trying to match an arrival to an open order by amount and timing.
Bind it as soon as you have the transaction id. Until something names it, an arrival has nothing to attribute it to, and attribution by amount alone is what makes a sell sit unmatched.
Nothing here is direction-specific
The legacy path said sell in its URL, which suggested a rule that never existed. This endpoint binds a transaction to an order, whichever way the order runs.
A 400 means the transaction id itself did not parse, not that the transaction
is unknown to the chain.
Language
Environment
Credentials
Your credential
The customer's credential
Choose an environment first.
curl -X POST https://api.btcdirect.eu/api/v3/orders/{id}/deposit-transaction \ -H "x-api-key: $BTCD_API_KEY" \ -H "User-Authorization: Bearer $BTCD_USER_TOKEN"Response
{ "message": "Bound."}Parameters
iduuid (path)required
Responses
200Bound.400Invalid transaction id.409The order already has a different transaction id, or the transaction id names a deposit that was not sent for this order: one we recorded before the order was created, or more than 10 minutes after it. Submit the transaction id of the deposit made for this order.503`maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`.Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.