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

Add an identity document to a registered user

This endpoint is used to upload identity documents for a registered user.

POST/api/v1/user/identity-document

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 POST https://api.btcdirect.eu/api/v1/user/identity-document \  -H "Authorization: Bearer $BTCD_PARTNER_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "documentType": "Passport",    "documentSide": "Front",    "data": "aGEgbWFkZSB5b3UgbG9vayE="  }'
Choose an environment to run this.

Response

User identity document uploaded successfully.
{  "emailAddress": "mail@example.com",  "firstName": "John",  "lastName": "Doe",  "region": "nl-nl",  "phoneNumber": "",  "registrationDate": "2019-01-01T14:13:55Z",  "activationDate": "2019-01-02T12:43:25Z",  "is_business": true,  "limits": {    "buy": {      "limit": {        "amount": 3000,        "currencyCode": "EUR"      },      "remaining": {        "amount": 3000,        "currencyCode": "EUR"      },      "interval": "P1D"    },    "sell": {      "limit": {        "amount": 3000,        "currencyCode": "EUR"      },      "remaining": {        "amount": 3000,        "currencyCode": "EUR"      },      "interval": "P1D"    }  },  "enabledIbanAccounts": [    {      "number": "string",      "holder": "string",      "verified": true    }  ],  "enabledWalletAddresses": [    {      "currency": "BTC",      "address": "3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5",      "destinationTag": {        "default": "ABC1234",        "XRP": 12341      },      "name": "My BTC wallet 1",      "status": "open",      "walletType": "unhosted",      "verificationStatus": "required",      "id": 189632    }  ],  "enabledAccounts": [    {      "type": "iban",      "name": "My bank account",      "identifier": "NL00BANK0123456789",      "verified": true,      "limitRaised": false    }  ],  "status": {    "status": "blocked",    "description": "Identification process did not succeed.",    "details": {      "amld5VerificationStatus": "verified",      "emailAddressVerificationStatus": "verified",      "identityVerificationStatus": "pending",      "privacyAgreementVerificationStatus": "failed",      "identityDocumentVerificationStatus": [        {          "documentType": "Passport",          "documentSide": "Front",          "status": "missing"        }      ],      "residentialAddressVerificationStatus": "present",      "taxResidencyDeclarationStatus": "present"    }  },  "verificationLevel": {    "id": "a1b2c3d4-0003-4000-8000-000000000003",    "level": "hero",    "buyLimit": {      "amount": 3000,      "currencyCode": "EUR"    },    "sellLimit": {      "amount": 3000,      "currencyCode": "EUR"    }  }}

Request

documentTypestringrequired

The document type.

Can be one ofPassportIdentityCardDrivingLicenceSelfieSecondSelfieProofOfResidencyResidencePermitIbanVerificationWalletVerificationLivenessCheck

documentSidestringrequired

The document side.

Can be one ofFrontBackSelfieSecondSelfieProofOfResidencyVideoProof

datastringrequired

The base64 encoded binary image data (max 5MB un-encoded).

ExampleaGEgbWFkZSB5b3UgbG9vayE=

Responses

200User identity document uploaded successfully.
400A list of possible errors for this endpoint.

Body of the success response

emailAddressstring

Email address of the user.

Examplemail@example.com

firstNamestring

First name of the user.

ExampleJohn

lastNamestring

Last name of the user.

ExampleDoe

regionstring

Region of the user.

Examplenl-nl

phoneNumberstring

Phone number of the user.

Example

registrationDatestring

Registration date of the user.

Example2019-01-01T14:13:55Z

activationDatestring

The date and time the user account was activated.

Example2019-01-02T12:43:25Z

is_businessboolean

limitsobject

enabledIbanAccountsobject[]

Deprecated: Use enabledAccounts instead. Enabled IBAN accounts of the user.

enabledWalletAddressesobject[]

Enabled wallet addresses of the user.

enabledAccountsobject[]

Enabled accounts of the user.

statusobject

verificationLevelobject

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