Errors
Failed requests use a matching HTTP status and the same envelope as successful ones, with success: false and an error object. Branch on error.code; messages are for people and may change. Failed requests are not billed.
{
"success": false,
"error": {
"code": "invalid_registry_code",
"message": "A registry code has 8 digits, e.g. 10421629.",
"details": {
"parameter": "registry_code"
}
},
"meta": {
"request_id": "9d2f6c1e-5b7a-4e0c-8f3d-2a1b0c9e8d7f"
}
}The request is invalid. error.details.parameter names the parameter at fault.
invalid_parameterinvalid_registry_codeinvalid_vat_numberunknown_sectioninvalid_json
The API key is missing, unknown or revoked.
api_key_requiredinvalid_api_key
The key is valid, but API access for its organisation is not active: the API plan is off, or an invoice is overdue. Switch it on under Dashboard › Services.
api_plan_inactive
The endpoint or record does not exist.
not_foundcompany_not_foundperson_not_foundannual_report_not_foundclassifier_not_foundemtak_code_not_found
The endpoint does not accept this method.
method_not_allowed
The request body is larger than 256 KB.
body_too_large
Too many requests for this key. Wait for the Retry-After seconds.
rate_limited
Something failed on our side. Retry with backoff.
internal_error
The API is briefly unavailable. Retry shortly.
service_unavailable
The request took too long. Ask for less at once (fewer includes, smaller pages).
timeout
A search or lookup that finds nothing is not an error: it returns an empty list, or an empty matches for that query.