Check Identifier

POST endpoint for checking whether a DNI or passport identifier is blocked.

/api/fraud/check-identifier

Endpoint:

POST {url}/api/fraud/check-identifier

Headers:

Content-Type: application/json

📥 Request body:

Content-Type: application/json

CampoTipoDescripciónObligatorioEjemplo
api_keystringAPI key for authentication."abc123xyz"
identifierstringDNI or passport number of the person to check."12345678Z"

Example Request

{
  "api_key": "abc123xyz",
  "identifier": "12345678Z"
}

📤 Responses
✅ 200 - OK

Description: Returns whether the identifier is blocked.

Example Response:

{
  "blocked": true
}

❌ 401 - Unauthorized

Description: Invalid credentials or unauthorized access.

Example Response:

{
  "result": "ko",
  "error": {
    "error_code": 1001,
    "msg": "Unauthorized"
  }
}

💥 500 - Internal Server Error

Description: Unexpected error during identifier check.

Example Response:

{
  "message": "Error interno del servidor"
}

Did this page help you?