Requirement Validations#

Description

Checks if the Address and / or Identity created is valid against the Requirement.

Request#

HTTP Method: POST

URI Path: /v3/requirement_validations

Request Body Object Relationships:

Title

Type

Description

requirements

Requirement

Specifies the requirement ID.

identities

Identities

Specifies the identity ID.

addresses

Addresses

Specifies the address ID.

Examples#

http

 1POST /v3/requirement_validations 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": "requirement_validations",
10    "relationships": {
11      "requirement": {
12        "data": {
13          "id": "ID_of_requirements",
14          "type": "requirements"
15        }
16      },
17      "address": {
18        "data": {
19          "id": "ID_of_Address",
20          "type": "addresses"
21        }
22      },
23      "identity": {
24        "data": {
25          "id": "ID_of_Identity",
26          "type": "identities"
27        }
28      }
29    }
30  }
31}

curl

1curl -i -X POST https://api.didww.com/v3/requirement_validations -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"relationships": {"address": {"data": {"id": "ID_of_Address", "type": "addresses"}}, "identity": {"data": {"id": "ID_of_Identity", "type": "identities"}}, "requirement": {"data": {"id": "ID_of_requirements", "type": "requirements"}}}, "type": "requirement_validations"}}'

response

 1HTTP/1.1 422 Unprocessable Entity
 2Content-Type: application/vnd.api+json
 3
 4{
 5    "errors": [
 6        {
 7            "title": "Identity Place of Birth must be Germany",
 8            "detail": "Identity Place of Birth must be Germany",
 9            "code": "100",
10            "source": {
11                "pointer": "/data"
12            },
13            "status": "422"
14        },
15        {
16            "title": "2 Identity Proof(s) (Drivers License, National ID, Passport, Residence Permit, Visa, Other) required",
17            "detail": "2 Identity Proof(s) (Drivers License, National ID, Passport, Residence Permit, Visa, Other) required",
18            "code": "100",
19            "source": {
20                "pointer": "/data"
21            },
22            "status": "422"
23        },
24        {
25            "title": "Address in Germany required",
26            "detail": "Address in Germany required",
27            "code": "100",
28            "source": {
29                "pointer": "/data"
30            },
31            "status": "422"
32        }
33    ]
34}

Other Responses#

Code

Success

Description

401

No

Unauthorized