Create Identity#

Description

Create single Identity owned by your account.

Note

By defining a certain id_number, you may reject or approve your address_verification task, please refer for more information here

Request#

HTTP Method: POST

URI Path: /v3/identities

Includes:

Value

Description

country

Country Object

proofs

Proofs Object

addresses

Addresses Object

addresses.country

Country Object

proofs.proof_type

Proof Types Object

permanent_documents

Permanent Documents Object

permanent_documents.template

Supporting Document Template Object

Request Body Object Attributes:

Name

Type

Is Required?

Description

first_name

string

Yes

First name of the personal identity.

last_name

string

Yes

Last name of the personal identity.

phone_number

string

Yes

Phone number of the personal identity.

personal_tax_id

string

Optional

Personal tax ID of the personal identity.

birth_date

string

Optional

Birth date of the personal identity in ISO 8601 format.

id_number

string

Optional

ID number of the personal identity.

description

string

Optional

Description of the personal identity.

external_reference_id

string

Optional

Identifier for identity in external system.

identity_type

string

Yes

Type of Identity. Write “Personal” to create a personal identity.

contact_email

string

Optional

Contact email address of identity.

Request Body Object Relationships:

Title

Type

Description

countries

Countries

Specifies the country for identity.

Examples#

http

 1POST /v3/identities HTTP/1.1
 2Host: api.didww.com
 3Content-Type: application/vnd.api+json
 4Accept: application/vnd.api+json
 5Api-Key: [API token]
 6
 7{
 8  "data": {
 9    "type": "identities",
10    "attributes": {
11      "first_name": "string",
12      "last_name": "string",
13      "phone_number": "string",
14      "birth_date": null,
15      "id_number": "string",
16      "description": "string",
17      "personal_tax_id": "string",
18      "external_reference_id": "string",
19      "identity_type": "Personal"
20    }
21  }
22}

curl

1curl -i -X POST https://api.didww.com/v3/identities -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"attributes": {"birth_date": null, "description": "string", "external_reference_id": "string", "first_name": "string", "id_number": "string", "identity_type": "Personal", "last_name": "string", "personal_tax_id": "string", "phone_number": "string"}, "type": "identities"}}'

response

 1HTTP/1.1 200 OK
 2Content-Type: application/vnd.api+json
 3
 4{
 5  "data": {
 6    "id": "39623bf9-381f-4da6-ab29-2d3eb8783d81",
 7    "type": "identities",
 8    "attributes": {
 9      "first_name": "string",
10      "last_name": "string",
11      "phone_number": "string",
12      "id_number": "string",
13      "birth_date": null,
14      "company_name": null,
15      "company_reg_number": null,
16      "vat_id": null,
17      "description": "string",
18      "personal_tax_id": "string",
19      "identity_type": "Personal",
20      "created_at": "2021-03-22T11:53:32.240Z",
21      "external_reference_id": null,
22      "verified": false
23    },
24    "relationships": {
25      "country": {
26        "links": {
27          "self": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/relationships/country",
28          "related": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/country"
29        }
30      },
31      "proofs": {
32        "links": {
33          "self": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/relationships/proofs",
34          "related": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/proofs"
35        }
36      },
37      "addresses": {
38        "links": {
39          "self": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/relationships/addresses",
40          "related": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/addresses"
41        }
42      },
43      "permanent_documents": {
44        "links": {
45          "self": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/relationships/permanent_documents",
46          "related": "https://api.didww.com/v3/identities/39623bf9-381f-4da6-ab29-2d3eb8783d81/permanent_documents"
47        }
48      }
49    }
50  },
51  "meta": {
52    "api_version": "2021-12-15"
53  }
54}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized