Skip to content

Errors

No 4xx or 5xx response uses a credit or generates overage charges.

Error format

Every error comes as JSON with error and, in most cases, message. Some also carry code, the stable value to handle in your code.

402 Payment Required

1{2 "error": "Payment Required",3 "message": "Limite de créditos excedido",4 "code": "CREDITS_EXHAUSTED"5}
StatusErrorWhen it happensWhat to do
400Invalid CPF formatThe CPF does not have 11 numeric digits.Fix the CPF before resending.
400Invalid birthdatebirthdate is missing or not in YYYY-MM-DD format.Send a valid date.
400INVALID_BATCH · INVALID_QUERYEmpty batch, more than 1,000 items or malformed body; or invalid pagination parameters.Fix the body or the query.
401Invalid or missing API keyx-api-key header missing, key invalid or revoked, or a key from another environment (code WRONG_ENVIRONMENT).Check the key in the dashboard.
402CREDITS_EXHAUSTEDFree plan with no credits left in the cycle, or a batch larger than the balance.Wait for renewal or subscribe to a plan.
403ACCOUNT_BLOCKEDAccount suspended or blocked.Contact support.
404CPF not foundValid CPF with no match in the official source (or a different date of birth).This is a normal result. Do not retry with the same data.
400INVALID_DOCUMENTDocument validation: the body has no text `document` field.Send the CPF or CNPJ in the document field.
400INVALID_CNPJ_FORMATThe CNPJ does not have 14 characters or the check digits do not match.Fix the CNPJ. To only check a number, use POST /v1/validate.
404CNPJ not foundValid CNPJ, but no record in the open data (code CNPJ_NOT_FOUND).This is a normal result. Do not retry with the same data.
404BATCH_NOT_FOUNDBatch does not exist, belongs to another account or has expired (24 hours).Send the batch again.
422Invalid check digitThe CPF check digits do not match.Fix the CPF.
429Rate limit exceededYou went over your plan’s requests-per-second limit.Wait for the time in the Retry-After header.
429Too many attempts for this CPFToo many different birth dates were tried for this CPF (code CPF_ATTEMPTS_EXCEEDED). The lock applies to that CPF only.Confirm the birth date with the holder and wait for Retry-After. No credit is charged.
429Too many unsuccessful lookupsThe account had too many lookups with no result (404) in a short time (code ACCOUNT_MISS_BUDGET_EXCEEDED).Validate the data before looking up and wait for Retry-After. If this is a mistake, contact support.
429Batch rate limit exceeded / Too many batches in progressBatches sent too many items per minute, or too many items are waiting to be processed (codes BATCH_RATE_LIMITED and BATCH_BACKLOG).Wait for the batches in progress to finish, then send the next one.
500 · 503Service unavailableTemporary failure in our infrastructure or the official source.Retry with growing intervals.