Natural entity data validation
Table of Contents
Introduction
This API is a natural person validation service that enables businesses to validate the personal information of individuals using their personal identification data. This documentation explains the features, benefits, and available endpoints of this API.
Authentication
To access the API, an access token must be included in the request. You can obtain an access token by following the instructions provided here.
The API has one scope: registries_naturalentityvalidation_api
, which provides access to the natural person validation endpoint.
Environments
The API has two environments: Sandbox
and Prod
. The base URLs and the available scopes for each environment are provided in the table below. Additionally, the Swagger URL for the API is also provided.
Environment | Swagger URL | Base URL | Scopes |
---|---|---|---|
Sandbox
|
| registries_naturalentityvalidation_api | |
Prod |
| registries_naturalentityvalidation_api |
Endpoints
The API has one endpoint: post /v1/natural/natural-entity-validations
.
This endpoint returns a match status of the requested person's information based on the parameters provided in the request. The request body includes various fields for validating the personal information of the individual, including name, address, gender, and document information.
Headers
Parameter | Type | Required | Description |
---|---|---|---|
Correlation-Id | string | no | A unique identifier assigned to the request. |
Application-Id | string | yes | Your application Id. Please contact support@ondato.com you don’t have one. |
Access token | string | yes | Described in the Authentication part |
Request body
Possible request fields differ from country to country.
To find out for possible request fields, please visit this page:
Field | Type | Description |
---|---|---|
| string | Source defining in which country and register to perform validation. Possible values are described on the page Request parameters for natural entity validation . |
| string | The first name of the person whose details need to be validated. |
| string | The middle name of the person whose details need to be validated. |
| string | The last name of the person whose details need to be validated. |
| string | The date of birth of the person whose details need to be validated. Date format: YYYY-MM-DD format. |
| string | The gender of the person whose details need to be validated. Possible values:
Description: f - female m - male |
| string | The address of the person whose details need to be validated. |
| string | The address of the person whose details need to be validated. |
| string | The address of the person whose details need to be validated. |
| string | The city of the person whose details need to be validated. |
| string | The country of the person whose details need to be validated. |
| string | The zip code of the person whose details need to be validated. |
| string | The document number of the person whose details need to be validated. The document type is described below. |
| string | The type of document of the person whose details need to be validated. Possible enum values:
|
| string | The phone number of the person whose details need to be validated. |
| string | The email of the person whose details need to be validated. |
| string | The marital status of the person whose details need to be validated. Possible values:
|
Response
The response from this API is an object containing the matched fields from the request.
The matched fields can have various results such as "Match," "Partial Match," "No Match," "No Data," and "No Input."
Field | Type | Description |
---|---|---|
| object | An object containing the fields that were matched in the request. |
data. | object | An object containing the result of the matching process for the first name. |
data.firstName. | string | The result of the matching process for the first name. Possible values:
|
data. | object | An object containing the result of the matching process for the middle name. |
data.middleName. | string | The result of the matching process for the middle name. Possible values:
|
data. | object | An object containing the result of the matching process for the last name. |
data.lastName. | string | The result of the matching process for the last name. Possible values:
|
data. | object | An object containing the result of the matching process for the date of birth. |
data.dateOfBirth. | string | The result of the matching process for the date of birth. Possible values:
|
data. | object | An object containing the result of the matching process for the gender. |
data.gender. | string | The result of the matching process for the gender. Possible values:
|
data. | object | An object containing the result of the matching process for the address. |
data.address. | string | The result of the matching process for the address. Possible values:
|
data. | object | An object containing the result of the matching process for the first line of the address. |
data.address1. | string | The result of the matching process for the first line of the address. Possible values:
|
data. | object | An object containing the result of the matching process for the second line of the address. |
data.address2. | string | The result of the matching process for the second line of the address. Possible values:
|
data. | object | An object containing the result of the matching process for the city. |
data.city. | string | The result of the matching process for the city. Possible values:
|
data. | object | An object containing the result of the matching process for the state. |
data.state. | string | The result of the matching process for the state. Possible values:
|
data. | object | An object containing the result of the matching process for the zip code. |
data.zip. | string | The result of the matching process for the zip code. Possible values:
|
data. | object | An object containing the result of the matching process for the ID number. |
data.idNum. | string | The result of the matching process for the ID number. Possible values:
|
data. | object | An object containing the result of the matching process for the phone number. |
data.phone. | string | The result of the matching process for the phone number. Possible values:
|
data. | object | An object containing the result of the matching process for the email address. |
data.email. | string | The result of the matching process for the email address. Possible values:
|
data. | object | An object containing the result of the matching process for the marital status. |
data.maritalStatus. | string | The result of the matching process for the marital status. Possible values:
|
Code Examples
Example request
Example response
Error Handling
The API returns error responses in the following formats:
400 Bad Request