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

Register a new user identifier

This endpoint registers a user identifier and returns a URL to register an account which will be linked to the registered identifier.

POST/api/v1/user/register-identifier

Send your own credential. No customer is involved.

How authentication works
Yours
Authorization: Bearer

Language

Environment

Credentials

Your credential

Choose an environment first.

cURL request
curl -X POST https://api.btcdirect.eu/api/v1/user/register-identifier \  -H "Authorization: Bearer $BTCD_PARTNER_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "identifier": "c6fefe8d7ac0f4113876d634e8d15f65947f1b62d4859fffcd2464d2be58b2d8",    "returnUrl": "https://example.com?action=buy"  }'
Choose an environment to run this.

Response

User identifier registered successfully.
{  "redirectUrl": {    "en-gb": "https://my.btcdirect.eu/en-gb/user/settings",    "fr-fr": "https://my.btcdirect.eu/fr-fr/user/settings",    "nl-nl": "https://my.btcdirect.eu/nl-nl/user/settings"  }}

Request

identifierstringrequired

The user identifier you want to register.

Examplec6fefe8d7ac0f4113876d634e8d15f65947f1b62d4859fffcd2464d2be58b2d8

returnUrlstringrequired

The URL which will be used to return to your client.

Examplehttps://example.com?action=buy

Responses

200User identifier registered successfully.
400A list of possible errors for this endpoint.

Body of the success response

redirectUrlstring

The redirect URL per locale.

Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.