This API endpoint allows you to verify the validity of identification documents for different countries.
{{base_url}}/api/v1/verify-document
Method: POST
Headers:
Body Parameters:
Parameter | Type | Description | Required |
---|---|---|---|
document.id | String | The identification number of the document to verify | Yes |
document.type | String | The type of document (e.g., "RUT" for Chilean Tax ID) | Yes |
country | String | Country code in ISO 3166-1 alpha-3 format (e.g., "CHL" for Chile) | Yes |
Example Request:
{
"document": {
"id": "XXXXXXXX-X",
"type": "RUT"
},
"country": "CHL"
}
Success Response:
{
"status": "success",
"status_code": 200,
"message": "Request successful",
"data": {
"valid": true
}
}
The valid
field will be:
true
if the document is validfalse
if the document is invalid