Personal code validator

post
validatePersonalCode

https://in.bisnode.ee/rest/validatePersonalCode
This endpoint allows you to validate a personal code and extract personal information from it such as: * Country empty if Estonia or Lithuania (identical codes) - country can`t be detected Latvia (LVA) Finland (FIN) * Birthday empty if Latvia - can`t be detected * Gender: Male (M) Female (F) If response is empty array [ ] - this means your code is invalid. Example request: { "code": "11111111111" }
Request
Response
Request
Query Parameters
code
required
string
Personal code.
Response
200: OK
Country = 'EST' or 'LTU' (lines 1-4 in example response) Country = 'LVA' (lines 6-9) Country = 'FIN' (lines 11-15) 'not valid code' (returns empty array [ ] , line 17) see example responses below:
{
"gender": "F",
"birthdate": "1990-06-15"
}
or
{
"birthdate": "1980-10-03",
"country": "LVA"
}
or
{
"gender": "F",
"birthdate": "1977-04-26",
"country": "FIN"
}
or
[]
400: Bad Request
Invalid country code
{
"error": "error",
"code": 400,
"message": "Code is mandatory"
}
401: Unauthorized
Invalid token
{
"error": "error",
"code": 401,
"message": "Token is wrong"
}
402: Payment Required
Not enough credit
{
"error": "error",
"code": 402,
"message": "Monthly requests limit exceeded"
}
403: Forbidden
{
"error": "error",
"code": 403,
"message": "This request is not allowed for you"
}
409: Conflict
{
"error": "error",
"code": 409,
"message": "Something went wrong"
}
422: Unprocessable Entity
Validation failed
{
"error": "error",
"code": 422,
"message": "Schema validation error"
}
423: Locked
{
"error": "error",
"code": 423,
"message": "Locked. Wait for previous request to complete"
}
500: Internal Server Error
{
"error": "error",
"code": 500,
"message": "Internal Server Error"
}