Error responses you can act on
An error code is a support conversation you do not have to have. Here is the shape we use.
Code
company_not_foundRetryable
NoNext step
Check the identifierMost API errors tell you that something failed. Good errors say what to do next. We treat every error response as part of the interface.
The shape
Errors are application/problem+json, following RFC 9457:
{
"type": "https://corpoapi.com/errors/free_tier_exhausted",
"title": "Free tier exhausted",
"status": 402,
"code": "free_tier_exhausted",
"detail": "The first 25 free paid calls are used up. Add prepaid credit to continue.",
"retryable": false
}
The code is stable. Branch on it, not on the human-readable detail, which can change wording.
Codes worth branching on
invalid_identifier: the number you passed failed the registry's check digit. Fix the input, do not retry.company_not_found: no company matched. Free, and not retryable without a different input.free_tier_exhausted: the first 25 free paid calls are used up and the balance is empty. Add prepaid credit; retrying will not help until you do.rate_limited: back off usingRetry-After.registry_unavailable/registry_budget_exhausted: the upstream register is down or capped. A cached copy is served when we have one.
Retries
Retries are the norm in production, so two things keep them safe. A repeat of the same endpoint for the same company on the same UTC day is free, so a retry that re-reads a company does not bill it twice. And rate limits are reported on every response through RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset, so a well-behaved client can pace itself instead of discovering the limit by hitting it.