About this endpoint
What it does
Validates a batch of identification or data values in a single request. You send an array of items to validate, and the response returns a data field plus optional request metadata.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| items | Object Array | Yes | Batch of validation items. Minimum 1 item, maximum 100 items. |
| items[].type | ENUM | Yes | Validation type. Allowed values: egypt-national-id, saudi-id, emirates-id, iban, mobile, tax-number, company-registration. |
| items[].value | String | Yes | Value to validate. Minimum length 1, maximum length 64. |
| items[].country | String | No | Country code associated with the item. Maximum length 6. |
Response
Returns a JSON object with a data object holding the validation result and a meta object with the request_id and API version. data.results has one result per item you sent. Invalid values still return 200 with valid: false and the reasons in problems. Requests with a missing or wrong-type field return 422 with an error object.
| Parameter | Type | Description |
|---|---|---|
| data | Object | The validation result. |
| data.results | Object Array | One result per item, in the order you sent them. Each result has the same fields as the matching single endpoint (for example bank for iban or e164 for mobile). |
| data.results[].type | String | The type you sent for the item, e.g. saudi-id, iban, mobile. |
| data.results[].valid | Boolean | true if the item passes all checks. |
| data.results[].input | String | The value you sent for the item. |
| data.results[].normalized | String | The item value after cleanup. |
| data.results[].problems | String Array | Problem codes for the item. Empty when valid. |
| meta | Object | Request details. |
| meta.request_id | String | Unique id of this request, useful for support. |
| meta.version | String | API version, e.g. v1. |