Guides
Errors
Errors share one shape: a list of messages, each with the field it refers to, where relevant.
Response shape
{
"erori": [
{"mesaj": "NIS inexistent în dosarul clădirii: ABCDEF-99", "camp": "nis"}
]
}Messages are in Romanian; use camp and the HTTP code in your logic, not the text.
HTTP codes
400Invalid request- A field is missing or wrong; the field is in erori[].camp.
401Unauthenticated- Missing or expired token, or wrong credentials. Request a new token.
403Forbidden- The account is not allowed this operation or document type, or the building is outside the account's access area (ZONA_001).
404Not found- The transaction, file or resource does not exist.
409Ambiguous- The lookup matched several results where one was expected.
503Service unavailable- An internal service is not responding; retry after a few seconds.
Retries
Retry only on 503 and network errors, with increasing pauses (for example 2, 4, 8, 16 seconds). When registering, reuse the same idempotency_key, so the retry does not create a second transaction. 4xx errors are not fixed by retrying.