Create a sell onboarding link
Returns a link that onboards a customer for selling, without placing an order: they sign in or register, let you act for them when you pass your identifier, verify a payout account (bank account, card or PayPal) and are sent to your returnUrl. Afterwards you sell for the customer through the API, with your identifier as their User-Identifier. Requires a partner access token (POST /api/v3/auth/tokens); an api-key is refused, because it is public and the link binds your identifier to whoever opens it. Use the url exactly as returned.
POST/api/v3/sell-onboardings
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/sell-onboardings \ -H "x-api-key: $BTCD_API_KEY" \ -H "User-Authorization: Bearer $BTCD_USER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "identifier": "your-customer-8842", "returnUrl": "https://your.app/sell/onboarded", "locale": "nl-NL", "payoutMethods": [ "bankTransfer", "paypal" ] }'Response
{ "url": "https://your.app/callback", "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "expiresAt": "2026-08-25T11:42:07Z", "identifierAlreadyLinked": false}Request
identifierstringrequired
Your own identifier for the customer. Required (400 `identifier_required`): the onboarding links it, together with a payout account. The User-Identifier header may carry it instead; both at once must be equal (400 `identifier_mismatch`). Already linked, the `url` signs that customer in on the page (a one-time login, 15 minutes, single use); not yet, they register (which links it) or sign in and are asked once to connect. Not carried in the url.
Exampleyour-customer-8842
returnUrlurirequired
Where the customer is sent once done, typically a deep link into your app: an absolute http(s) URL, or an app link whose scheme is enabled for your account (ask your account manager). Opened as-is.
Examplehttps://your.app/checkout/return
localestring
The language the link opens in: a language subtag with an optional region (nl, nl-NL, en-GB). Omitted means English.
Examplenl-NL
payoutMethodsstring[]
The payout types you accept payouts on. The customer is offered these, further limited to what is enabled for you; when only one is left it is chosen for them. Omit the field to offer every enabled type. An empty list means no payout step: the customer signs in or registers, links your identifier and is sent back.
expiresInint64
How long the link stays valid, in seconds. Omitted is a day, which is also the most.
Responses
201The sell onboarding link.400A missing or malformed returnUrl, an unsupported locale, an identifier that is too long, an unknown payout method, or an expiresIn out of range.403The call was made with an api-key instead of a partner access token.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
urlurirequired
The link to send the customer to.
Examplehttps://your.app/callback
iduuidrequired
Example3fa85f64-5717-4562-b3fc-2c963f66afa6
expiresAtdate-timerequired
Example2026-08-25T11:42:07Z
identifierAlreadyLinkedbooleanrequired
True when your identifier already belongs to an account; the link still works.
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.