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 |
Specifies the requirement ID. |
|
identities |
Specifies the identity ID. |
|
addresses |
Specifies the address ID. |
Examples
POST /v3/requirement_validations HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
{
"data": {
"type": "requirement_validations",
"relationships": {
"requirement": {
"data": {
"id": "ID_of_requirements",
"type": "requirements"
}
},
"address": {
"data": {
"id": "ID_of_Address",
"type": "addresses"
}
},
"identity": {
"data": {
"id": "ID_of_Identity",
"type": "identities"
}
}
}
}
}
curl -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"}}'
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/vnd.api+json
{
"errors": [
{
"title": "Identity Place of Birth must be Germany",
"detail": "Identity Place of Birth must be Germany",
"code": "100",
"source": {
"pointer": "/data"
},
"status": "422"
},
{
"title": "2 Identity Proof(s) (Drivers License, National ID, Passport, Residence Permit, Visa, Other) required",
"detail": "2 Identity Proof(s) (Drivers License, National ID, Passport, Residence Permit, Visa, Other) required",
"code": "100",
"source": {
"pointer": "/data"
},
"status": "422"
},
{
"title": "Address in Germany required",
"detail": "Address in Germany required",
"code": "100",
"source": {
"pointer": "/data"
},
"status": "422"
}
]
}
POST /v3/requirement_validations HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]
{
"data": {
"type": "requirement_validations",
"relationships": {
"requirement": {
"data": {
"id": "ID_of_requirements",
"type": "requirements"
}
},
"address": {
"data": {
"id": "ID_of_Address",
"type": "addresses"
}
},
"identity": {
"data": {
"id": "ID_of_Identity",
"type": "identities"
}
}
}
}
}
curl -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"}}'
HTTP/1.1 201 Created
Content-Type: application/vnd.api+json
{
"data":
{
"id": "3553253a-99eb-4303-a16a-6b1042d3f147",
"type": "requirement_validations"
},
"meta": {"api_version": "2021-12-15"}
}
Other Responses
Code |
Success |
Description |
---|---|---|
401 |
No |