Attach a registered identifier to the signed-in customer
Completes the link. The customer is always the one holding the session — an identifier can never be attached to an account named in the request. Send exactly one of `identifier` (your own value) or `linkId` (the handle our link URL carries). Sending both is refused rather than resolved, because they can name different registrations.
POST/api/v3/users/me/identifiers
Send two credentials: your own, and the customer's.
How authentication works- Yours
x-api-keyorAuthorization: Bearer- The customer's
User-Authorization: BearerorUser-Identifier
Language
Environment
Credentials
Your credential
The customer's credential
Choose an environment first.
curl -X POST https://api.btcdirect.eu/api/v3/users/me/identifiers \ -H "x-api-key: $BTCD_API_KEY" \ -H "User-Authorization: Bearer $BTCD_USER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "linkId": "9c2f4b7a-1e83-4d55-b0a6-3f7c81e2d904" }'Response
{ "returnUrl": "https://your.app/checkout/return"}Request
identifierstring
linkIduuid
Example3fa85f64-5717-4562-b3fc-2c963f66afa6
Responses
200Linked.400Invalid request.401An authenticated customer is required.404Unknown or expired identifier.409The identifier already belongs to another account.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`.Body of the success response
returnUrlstring
Where to send the customer now, as supplied at registration. Empty when none was given.
Examplehttps://your.app/checkout/return
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.