Migrate from Infosimples
How to replace Infosimples lookups for CNPJ, Simples Nacional, state registrations (CCC and SINTEGRA), SUFRAMA and CEP with the CNPJá API.
This guide shows how to replace calls to the Infosimples Consultas API with calls to the CNPJá API. It covers the lookups that have an equivalent in CNPJá, at the Receita Federal, the Simples Nacional, the CCC and the state SINTEGRA sites, SUFRAMA and the Correios (DNE), plus the response envelope and codes, the field format and the behavior differences.
Overview
- The Infosimples CNPJ lookups at the Receita Federal, the Simples Nacional, the CCC, the SINTEGRA sites and SUFRAMA become a single operation, Lookup CNPJ. Each source beyond the registration is requested as an optional resource in
expand, and one request can bring all of them. - The per-state SINTEGRA lookups and SINTEGRA / Unificada become the
stateRegistry.parameter. Every UF comes from the CCC, in the same format, and not from each SEFAZ site.states - The state registration and SUFRAMA lookups by CPF become Lookup CPF. Receita Federal CPF data has no equivalent.
- The
POSTwith a form body becomes aGET, with the document in the path, and thetokenleaves the body and goes, on its own, in theAuthorizationheader. - The HTTP status now gives the result, instead of the
codeInfosimples returns in the body of every response. The response has no envelope: the body is the record itself, with noheaderand nodatalist. - Each field comes once, without the
normalizado_pairs: CNPJ, CEP and CNAE without punctuation,* YYYY-MM-DDdates, numeric share capital, E.164 phones and classifications ascodeandlabelpairs. - You choose the maximum data age with
maxAge, and billing separates cached queries from live queries. - The
site_receipts become PDFs from Issue CNPJ dossier.receipts - Looking up by state registration number and the lookups that require the taxpayer’s login or digital certificate have no equivalent.
Effort: medium. Switching the URL and authentication is direct; most of the work is merging the lookups for the same CNPJ into one request, rewriting the field mapping and replacing the response code handling.
Prerequisites
- Account and key: sign up and create a key in API keys. The walkthrough is in First request.
- Authentication: send the key as the entire value of the
Authorizationheader, with no prefix:Authorization: YOUR_. WithAPI_ KEY Bearer, the request is rejected with401API_. See Authentication and Keys and security.KEY_ INVALID - Base URL:
https:/./ api. cnpja. com/ v2 - What changes: nothing from the Infosimples account carries over. The token and the balance purchased there don’t work at CNPJá, and usage now follows your organization’s plan quotas, renewed every month.
Matching operations
The Infosimples column uses the name of each lookup in the Infosimples catalog. The matching service goes in the /api/ path, such as receita-federal/.
| Infosimples | CNPJá | Notes |
|---|---|---|
| Receita Federal / CNPJ | Lookup CNPJ | No expand. See CNPJ lookup. |
| Receita Federal / Simples Nacional | Lookup CNPJ with expand=company. | With company. for previous periods and future events. Without the history, Lookup company returns taxRegime by CNPJ root, from cached data only. See Tax regime. |
| Receita Federal / MEI | Lookup CNPJ with expand=company. | Only the registration and the SIMEI option and periods, with no portal login; the periods require company.. The CCMEI and finding the CNPJ from the CPF have no equivalent. |
SEFAZ / Cadastro Centralizado de Contribuinte (CCC), by cnpj | Lookup CNPJ with expand=stateRegistry | The same source, the CCC. Choose the UFs in stateRegistry.. See State registrations. |
SINTEGRA / Unificada, per-UF SINTEGRA and SEFAZ / PR, by cnpj | Lookup CNPJ with expand=stateRegistry | The UF goes in stateRegistry., such as stateRegistry.. The data comes from the CCC, with the same fields for every UF. |
CCC and SINTEGRA, by cpf | Lookup CPF with expand=stateRegistry | stateRegistry. is required and accepts ALL or UF abbreviations, with no ORIGIN. It serves CPFs with a state registration, such as rural producers. |
CCC, SINTEGRA, SEFAZ / PR and SEFAZ / GO / Produtor Rural, by ie | No equivalent | The API doesn’t look up by state registration number. |
SINTEGRA / SUFRAMA, by cnpj | Lookup CNPJ with expand=suframa | SUFRAMA registrations. See SUFRAMA. |
SINTEGRA / SUFRAMA, by cpf | Lookup CPF with expand=suframa | |
site_ for a CNPJ | Issue CNPJ dossier | certificates chooses the documents: RFB_, RFB_, SIMPLES_, CCC_ and SUFRAMA_. See Certificates. |
site_ for a CPF | Issue CPF dossier | certificates=CCC_ or SUFRAMA_. |
Correios / CEP, by cep, and Correios / Completa CEP | Lookup CEP | Already returns the municipality’s IBGE code. See CEP and addresses. |
Correios / CEP, by endereco | Search CEP | With search, with a key. |
| IBGE / Código de Município and IBGE / Área territorial brasileira | Search CEP | No operation of its own: search for the municipality’s name with state., check city and read municipality. |
| Receita Federal / CPF | No equivalent | Lookup CPF doesn’t return Receita Federal CPF data. |
| Account balance and usage information | No equivalent in the API | Use Requests and Usage in the app. |
Request example
Infosimples, Receita Federal / CNPJ:
POST /api/v2/consultas/receita-federal/cnpj HTTP/1.1
Host: api.infosimples.com
Content-Type: application/x-www-form-urlencoded
cnpj=37335118000180&token=YOUR_TOKEN&timeout=300 CNPJá:
GET /v2/establishments/37335118000180 HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY CNPJá, with what used to take the Receita Federal, Simples Nacional, CCC and SUFRAMA lookups:
GET /v2/establishments/37335118000180?expand=company.taxRegime,stateRegistry,suframa HTTP/1.1
Host: api.cnpja.com
Authorization: YOUR_API_KEY Parameters
Request
| Infosimples | CNPJá | Notes |
|---|---|---|
token | Authorization header | Key with no prefix. |
POST with a form body | GET with parameters in the URL | The document goes in the path. |
timeout | No equivalent | The request and each live query have a time limit, given in Timeout and size, and a live query that runs past its own limit results in 206 with the cached resource, when cached data exists. See Partial success. |
ignore_ | No parameter | Responses carry no receipts. Request the PDF from the dossier operations only when you need it. |
login_, login_, pkcs12_, pkcs12_ | No equivalent | CNPJá doesn’t ask for a login or a digital certificate in its lookups. |
| No equivalent | maxAge | Maximum accepted data age, default 45d. See Max age and partial success. |
Lookups by CNPJ
| Infosimples | CNPJá | Notes |
|---|---|---|
cnpj | taxId in the Lookup CNPJ path | 14 characters without punctuation, with uppercase letters in alphanumeric CNPJs. |
| Receita Federal / CNPJ | No expand | The CNPJ registration always comes back. |
| Receita Federal / Simples Nacional | expand=company. | company. adds timeline and, for SIMPLES_, regularIbsStartDate and regularCbsStartDate. |
| CCC and SINTEGRA | expand=stateRegistry | stateRegistry. adds the address, activity, dates and tax documents of each registration. |
uf in the CCC and SINTEGRA / Unificada, and the UF of each SINTEGRA lookup | stateRegistry. | ORIGIN (default, the establishment’s UF), abbreviations such as SP, or ALL. Values add up, such as ORIGIN,SP. |
| SINTEGRA / SUFRAMA | expand=suframa | |
ie, ie_ | No equivalent | |
| No equivalent | company., stateRegistry., suframa. | Maximum age for a single resource; requires the resource in expand. |
Send multiple expand values comma-separated or by repeating the parameter. See Response expansion.
Lookups by CPF
| Infosimples | CNPJá | Notes |
|---|---|---|
cpf | taxId in the Lookup CPF path | 11 digits, without punctuation. |
| CCC and SINTEGRA | expand=stateRegistry | expand is required, with stateRegistry, suframa or both. |
uf | stateRegistry. | Required with stateRegistry; accepts ALL or UF abbreviations, with no ORIGIN. |
| SINTEGRA / SUFRAMA | expand=suframa | |
birthdate in Receita Federal / CPF | No equivalent |
CEP
| Infosimples | CNPJá | Notes |
|---|---|---|
cep | code in the Lookup CEP path | 8 digits without a hyphen, keeping leading zeros. |
endereco | search in Search CEP | Requires a key. Filter with state. and municipality., and page with limit and cursor. |
municipio and uf in IBGE / Código de Município | search and state. in Search CEP | Check city in the record returned and read municipality. |
nome_ and codigo_ in IBGE / Área territorial brasileira | search and state. in Search CEP | Send the state in state. as the UF abbreviation. |
Response fields
The paths on the right are from Lookup CNPJ, unless stated otherwise. Format differences that apply to all fields:
- Dates come as
YYYY-MM-DD, and date-times in ISO 8601 UTC. - Classified values, such as status and size, come as
codeandlabel. Base your logic oncode;labelis for display only and changes with the language. - Identifiers and codes come as text, without punctuation. There are no
normalizado_pairs: each field comes once, already in its final format.* - Missing values may come as
nullor be left out of the response, depending on the field. See Response format.
Response envelope
| Infosimples | CNPJá | Notes |
|---|---|---|
code | HTTP status and, for errors, code | See Errors. |
code_ | message, for errors | |
errors[] | errors[], for validation errors | Present in 400 REQUEST_, with the reason in errors[].. |
data[], data_ | The response body | A single record, not a list. Search CEP returns the list in records[] and the total in total. |
site_ | Issue CNPJ dossier or Issue CPF dossier | The PDF in the response, instead of URLs available for 7 days. |
header., header. | No equivalent | Responses don’t report the cost. See Billing. |
Other header fields, such as header. | No equivalent | For errors, traceId identifies the request. |
Identification and status
| Infosimples (Receita Federal / CNPJ) | CNPJá | Notes |
|---|---|---|
cnpj, normalizado_ | taxId | 14 characters, without punctuation. |
matriz_ | type. and type. | Codes: HEAD and BRANCH. |
razao_ | company. | |
nome_ | tradeName | May be null. |
abertura_, normalizado_ | incorporationDate | YYYY-MM-DD. |
situacao_ | status. and status. | Codes: ACTIVE, CLOSED, NONCOMPLIANT, SUSPENDED and VOID, for the active, closed, noncompliant, suspended and void statuses. |
situacao_, normalizado_ | statusDate | YYYY-MM-DD. |
situacao_ | specialStatus. and specialStatus. | 3-character code. Present only when the establishment is active and has a special status. |
situacao_, normalizado_ | specialStatusDate | Present under the same conditions as specialStatus. |
certidao_ | No equivalent | For a closed CNPJ, status. equal to CLOSED, statusDate and statusReason give the status, the date and the reason. |
origem | No equivalent | |
consulta_, normalizado_ | updatedAt | Last update from the Receita Federal. When the registration comes from the cache, it is earlier than the request. The other resources carry their own updatedAt. |
Address and contacts
| Infosimples (Receita Federal / CNPJ) | CNPJá | Notes |
|---|---|---|
endereco_ | address. | May be null. |
endereco_ | address. | May be null. |
endereco_ | address. | May be null. |
endereco_ | address. | May be null. |
endereco_, normalizado_ | address. | 8 digits, without punctuation. |
endereco_ | address. | The 7-digit IBGE code is in address.. |
endereco_ | address. | UF abbreviation. |
telefone | phones[]. | A list, with each number in E.164, such as +5511971564144, and the type in phones[]. (LANDLINE or MOBILE). |
email | emails[]. | A list, with the type in emails[].. |
The country is in address., and the coordinates are in address., with expand=address.. See Location and maps.
Activities
| Infosimples (Receita Federal / CNPJ) | CNPJá | Notes |
|---|---|---|
atividade_ | primaryActivity. and primaryActivity. | Code and description in separate fields. 7-digit CNAE, without punctuation. |
atividade_, atividade_ | secondaryActivities[]. and secondaryActivities[]. | A list. 7-digit CNAE, without punctuation. |
Company and partners
| Infosimples (Receita Federal / CNPJ) | CNPJá | Notes |
|---|---|---|
natureza_ | company. | 4-character code, such as 2062. |
natureza_ | company. | |
porte | company. and company. | Codes: MICRO, SMALL and OTHER. |
capital_, normalizado_ | company. | A number, such as 99999., not text. |
efr | company. and company. | Present only for public-administration legal natures. |
qsa[] | company. | See Partners and people. |
qsa[]. | company. | |
qsa[]. | company. and company. | 2-character code, such as 49. |
qsa[]. | company. | legalRepresentative only appears when there is a legal representative. |
qsa[]. | company. and .label | |
qsa[]. | company. and .label | Alpha-2 country code, such as US. |
licenciamento_ | No equivalent |
Partners gain new fields, such as the person type, the masked CPF or the CNPJ in person., the age group and a stable person. for Lookup person.
Simples Nacional and SIMEI
They require expand=company.. Periods and events also require company.. With DETAILED, the age counts only from the last live query at the Simples Nacional, which can require a live query where SUMMARY would come from the cache. See Tax regime.
| Infosimples (Receita Federal / Simples Nacional) | CNPJá | Notes |
|---|---|---|
cnpj, normalizado_ | taxId | |
razao_ | company. | |
simples_ | company. equal to SIMPLES_, SIMPLES_ or SIMPLES_, and company. | SIMPLES_ identifies optants that also opt into the IBS or CBS regular regime, and SIMPLES_ identifies MEIs, which are also Simples Nacional optants. simplesNacionalStartDate is present only with these three codes. Without an annual return, SIMPLES_ is also assigned to newly opened sole proprietorships, with simplesNacionalStartDate and simeiStartDate equal to null. The type also carries the other regimes, such as PRESUMED_. |
simei_ | company. equal to SIMPLES_ and company. | A code and a date, instead of text. simeiStartDate is present only with SIMPLES_. |
consulta_ | company. | A single value for the Simples Nacional and the SIMEI. |
simples_ | company. with type. equal to SIMPLES_ | The same list carries actual, presumed and arbitrated profit periods, SIMEI periods, IBS and CBS regular regime periods and future events. Filter by type.. |
simei_ | company. with type. equal to SIMEI_ | |
inicio_, normalizado_ of simples_ and simei_ | timeline[]. | YYYY-MM-DD. |
fim_, normalizado_ of simples_ and simei_ | timeline[]. | May be null. |
detalhamento of simples_ and simei_ | timeline[]. | May be null. |
simples_ | company. with type. equal to SIMPLES_ or SIMPLES_ | |
simei_ | company. with type. equal to SIMEI_ | |
data_, normalizado_ of simples_ and simei_ | timeline[]. | The event date. For events, endDate is always null. |
descricao_ of simples_ and simei_ | timeline[]. | |
simples_ | No equivalent | |
regime_ and regime_ | company. equal to SIMPLES_, company. and company. | The dates require company., as the paragraph below the table explains. |
regime_ | company. with type. equal to REGULAR_ or REGULAR_ | The tax in tributo is part of the code. |
conseguiu_, origem | No equivalent | |
nome_ in Receita Federal / MEI | company. | |
atividade_ in Receita Federal / MEI | secondaryActivities[]. and secondaryActivities[]. | A list. 7-digit CNAE, without punctuation. |
consulta_, normalizado_ in Receita Federal / MEI | updatedAt | Last update from the Receita Federal. |
peridos_ in Receita Federal / MEI | company. with type. equal to SIMEI_ and company. | timeline holds the closed periods, with data_ and data_ in startDate and endDate; the start of the current period is in simeiStartDate. |
When company. is SIMPLES_, company. also returns company. and company., the start of the current IBS and CBS regular regime periods, which come only from live queries at the Simples Nacional. Either may be null when the company opts into only one of the two. The previous periods and upcoming events of these regimes come in company. with type. equal to REGULAR_, REGULAR_, REGULAR_, REGULAR_, REGULAR_ or REGULAR_.
The other registration fields of Receita Federal / MEI, such as nome_, capital_, atividade_, situacao_ and endereco_, follow the Receita Federal / CNPJ tables above, except endereco_, which has no equivalent.
State registrations (CCC and SINTEGRA)
They require expand=stateRegistry. Fields marked DETAILED require stateRegistry.. In Lookup CNPJ, with SUMMARY, the default, the age of stateRegistry. applies and only the establishment’s UF is queried live; registrations in other UFs are refreshed in that query when the CNPJ has a registration in the establishment’s UF and, otherwise, come only from the cache. With DETAILED, each requested UF has its age checked and is queried live separately. In Lookup CPF, with SUMMARY and a registration already known, a single live query refreshes all registrations and stateRegistry. only filters what comes back; with no known registration, such as on the first lookup, each requested UF is queried live separately.
SINTEGRA lookups return different fields in each UF. In CNPJá, every UF comes from the CCC with the fields below, and fields specific to one SEFAZ have no equivalent.
| Infosimples (CCC and SINTEGRA) | CNPJá | Notes |
|---|---|---|
cnpj, cpf, normalizado_, normalizado_ | taxId | In Lookup CPF, the 11-digit CPF. |
razao_, nome | company. or, in Lookup CPF, legalName | |
nome_ | tradeName | Comes from the Receita Federal registration. |
porte | company. | Comes from the Receita Federal registration. |
consulta_, consulta_ | stateRegistry. | stateRegistry. gives the last live CCC query, in any UF. |
inscricao_, normalizado_ | stateRegistry. | Only the UFs requested in stateRegistry.. |
The registration’s UF, outras_ | stateRegistry. | |
inscricao_, outras_ | stateRegistry. and .label | Codes: STATE_, TAX_, NON_, INTERSTATE_ and RURAL_. |
situacao_, outras_, SINTEGRA situacao_ | stateRegistry. | Boolean: true when enabled as a taxpayer. It doesn’t separate statuses such as inactive and closed. |
CCC situacao_, outras_ | stateRegistry. | Boolean for a restriction as recipient in the UF: false when the CCC returns Sem restrição. |
situacao_, normalizado_ | stateRegistry. | YYYY-MM-DD. |
abertura_, normalizado_ | stateRegistry. | DETAILED. |
fim_, normalizado_ | stateRegistry. | DETAILED. May be null. |
atividade_ | stateRegistry. and .label | DETAILED. |
endereco_, endereco_, endereco_, endereco_ | stateRegistry., .number, .details, .district | DETAILED. |
CCC endereco_, SINTEGRA endereco_ | stateRegistry. | DETAILED. |
SINTEGRA / PE endereco_, the code in CCC endereco_ | stateRegistry. | DETAILED. 7-digit IBGE code, without the name. |
endereco_ | stateRegistry. | DETAILED. |
endereco_, normalizado_ | stateRegistry. | DETAILED. 8 digits, without punctuation. |
dfe_, documentos_ | stateRegistry. and .label | DETAILED. Codes such as NFE, NFCE and CTE_. |
outras_ | The other items of stateRegistry. | Request the UFs in stateRegistry., or ALL. |
SINTEGRA telefone, email, atividade_, natureza_ and capital_ | phones[], emails[], secondaryActivities[], company. and company. | They come from the Receita Federal registration, not from the SEFAZ. Lookup CPF has no such fields. |
CCC regime_ | stateRegistry. | DETAILED. Boolean: true when the regime indicates an exceeded sublimit, and false for the others, such as the normal one. |
regime_ | No equivalent | The federal regime is in company., with expand=company.. |
historico[], credito_, tipo_, completo, informacao_ | No equivalent | |
consulta_, codigo_ | No equivalent | The CCC certificate comes from the dossier operations with certificates=CCC_. In Issue CNPJ dossier, it covers only the establishment’s UF; in Issue CPF dossier, a single UF with a known registration, which can’t be chosen. |
Fields from a single SEFAZ, such as posto_, ocorrencia_, credenciamento_, efd_ and unidade_ | No equivalent |
SUFRAMA
They require expand=suframa, in Lookup CNPJ or in Lookup CPF.
| Infosimples (SINTEGRA / SUFRAMA) | CNPJá | Notes |
|---|---|---|
cnpj, cpf, cpf_, normalizado_, normalizado_ | taxId | |
razao_ | company. or, in Lookup CPF, legalName | |
inscricao_, normalizado_ | suframa. | A list, instead of a single registration. |
situacao_ | suframa. | ACTIVE, INACTIVE, BLOCKED or CANCELLED. |
projeto_ | suframa. | Boolean. |
aprovacao_, normalizado_ | suframa. | May be null. |
email | suframa. | A list. |
telefone | suframa. | A list, in E.164. |
endereco_, endereco_, endereco_, endereco_ | suframa., .number, .details, .district | |
endereco_, endereco_, endereco_ | suframa., .state, .postalCode | The IBGE code is in address.. |
atividade_ | suframa., .label | An object; 7-digit CNAE. |
atividade_, atividade_ | suframa., .label | 7-digit CNAE. |
codigo_ | company., .label | Comes from the Receita Federal registration. |
incentivos, incentivos_ | Mapa dos Incentivos Fiscais | SUFRAMA no longer publishes the incentives of each registration and now points to this official spreadsheet, so the API doesn’t return them. The criteria SUFRAMA applied are in Estimate incentives, to estimate the incentives and confirm them in the spreadsheet. |
situacao_, situacao_, situacao_, observacao | No equivalent | |
atividade_, atividade_, inscricao_ | No equivalent | |
matriz, tipo_ | No direct field | The establishment type is in type., and the operation, Lookup CNPJ or Lookup CPF, gives the person type. |
Each registration also carries updatedAt, with the last update at SUFRAMA.
CEP
The paths in this table are from Lookup CEP and the Search CEP records.
| Infosimples (Correios / CEP and Completa CEP) | CNPJá | Notes |
|---|---|---|
cep, normalizado_ | code | 8 digits. |
logradouro | street | |
bairro | district | |
cidade | city | |
uf | state | |
codigo_ | municipality | 7 digits. Lookup CEP already returns the code, with no second lookup. |
codigo_ in IBGE / Código de Município and IBGE / Área territorial brasileira | municipality | In the Search CEP records. |
cep_, cpc, normalizado_, localidade_, mensagem | No equivalent | A nonexistent CEP results in 404 POSTAL_. |
| No equivalent | status, number, details, updatedAt | CEP status, street number, street complement or stretch, and last update from the Correios. See CEP and addresses. |
Behavior differences
Freshness and caching
Infosimples states that it runs every lookup live at the original source. In CNPJá, each resource comes from the cache while it is within maxAge and is queried live, before the response, when it is older or was never fetched. maxAge ranges from 5m to 1y, with a 45d default, and each resource reports its last update in its own updatedAt. Each resource also accepts a limit of its own, such as stateRegistry.. The smallest value, 5m, is the closest to always querying the source. Lookup CEP doesn’t accept maxAge and serves cached data only, updated with each DNE edition. See Max age and partial success.
Tip: to refresh only the state registrations or the Simples Nacional, keep
maxAgehigh and use the resource’s own limit, such asstateRegistry.. That way, the registration data keeps coming from the cache.maxAge=1d
Partial success
In Infosimples, a source failure results in an error code, such as 613, 614 or 615. In CNPJá, when a live query fails or runs past its time limit, the response is 206, with the same shape as 200: the affected resource keeps its cached data, or comes back empty if it was never fetched, and is not billed. With no cached data to fall back on, such as on a CNPJ’s first lookup, the request fails instead of returning 206. Treat 206 as success and compare each resource’s updatedAt with the limit you asked for. See Partial success.
Errors
Infosimples reports the result of every response in code, code_ and errors in the body; in CNPJá, the HTTP status gives the result. Every error body carries status, code, message and traceId. Handle errors by code, which is stable, and use message for display only. See Limits and errors.
Infosimples code | CNPJá |
|---|---|
200 | 200, or 206 on partial success |
600 Unexpected error | 500 UNEXPECTED_ |
601 Authentication with the token failed | 401 API_, API_ or API_ |
602 Invalid service in the URL | 404 NOT_ |
603 Token not authorized or with a usage limit | 402 when the quota or the overage budget is used up, with one of the codes in Error codes, or 401 API_ |
604, 606 and 607 Parameters not validated, missing or invalid | 400 REQUEST_, not charged |
605 Timeout exceeded | 206 when a live query runs past its time limit and cached data exists, or 504 REQUEST_ when the request itself runs past its limit, not charged |
612 No data at the source, in Receita Federal / CNPJ | 404 ESTABLISHMENT_, billed as described in What is charged even without a useful result |
612 No data at the source, in the CCC or SINTEGRA, by cnpj | 200 with an empty stateRegistry. |
612 No data at the source, in SINTEGRA / SUFRAMA, by cnpj | 200 with an empty suframa. |
612 No data at the source, by cpf | 404 INDIVIDUAL_ when the CPF has no registration in the sources and UFs queried, billed as described in What is charged even without a useful result; a CPF already known through the other source returns 200 with an empty registrations |
612 No data at the source, in Correios / CEP | 404 POSTAL_ |
609, 610, 613, 614, 615 and 618 Source instability | 206 with the cached resource; with no cache, the request fails and should be retried later |
617 Usage overload | 429 RATE_ or CONCURRENCY_ |
622 Same lookup repeated | No error: within maxAge, the repeat comes from the cache |
Limits
Infosimples rejects with 622 the same lookup repeated many times in a row. With a key, the requests-per-second and concurrent-request limits apply to the whole organization, across all of its keys, and follow its plan; without a key, they apply to each source IP. The values are in Usage limits. Above them, the response is 429, not billed. Each request has a maximum duration, and the client timeout must stay above it, as shown in Timeout and size.
Billing
Infosimples debits from a prepaid balance, in reais, each request whose response code is billable, such as 200 and 612. The price is that of the monthly volume tier plus each API’s extra price, when it has one, with a monthly minimum, and comes in header.. In CNPJá, each resource in the response is billed separately, as a live query, which costs more, or a cached query, and each unit has its own quota in the plan, renewed every month. On Pro, the quota of each unit can grow with packs, and the organization can set a budget to pay for each query beyond the quota at the per-query overage price, so an exhausted quota does not have to stop the integration. When a quota runs out with no overage budget, or the month’s budget runs out, every request made with one of the organization’s keys gets 402, as explained in Quota used up; on Free, which has no packs or budget, this happens as soon as the quota runs out. Requests without a key, rejected requests and server failures are not billed, as listed in What is not charged. Requesting the registration, company., stateRegistry and suframa in one request bills each resource separately, and registration data is always billed, even when you only need the state registrations or the Simples Nacional. With stateRegistry., billing grows with the registrations and the requested UFs, including those with no registration, so request only the UFs you need instead of ALL. A 404 is billed too, as detailed in What is charged even without a useful result. Responses carry no cost headers: track usage under Usage. See Queries and quota, what each operation consumes in the Metering Rules and Pricing.
Public access
Infosimples requires the token on every lookup. In CNPJá, Lookup CNPJ and Lookup CEP accept requests without a key, as long as the URL has no query parameters at all; any parameter results in 401 API_. These requests use the default values, such as maxAge=45d with no expand, are not billed and follow limits of their own, counted per source IP. Public access serves low-volume or low-criticality integrations; use a key when volume grows, when a limit rejection is not acceptable or when you need other parameters. See Public access, which also explains the behavior for CNPJs not in cached data.
Language and labels
label values and error messages come in Portuguese by default; send Accept-Language: en-US to get them in English. Codes, field names and official source data are never translated. Use code in your logic and label for display only. See Language.
No equivalent
- Lookup by state registration number (
ieandie_), including SEFAZ / GO / Produtor Rural.produtor - Receita Federal / CPF: the CPF status, the birth date and the other Receita Federal CPF data.
- Lookups with the taxpayer’s login, access code or digital certificate, such as Receita Federal / Situação Fiscal, Receita Federal / Comprovante de Pagamento and the MEI installment payment slips. The registration data and partner names from Situação Fiscal are in Lookup CNPJ, without the capital share.
- Issuing payment slips, such as the MEI DAS.
- The CCMEI and the Receita Federal / MEI fields about the entrepreneur, such as
nome_,empresario cpf,identidade_,numero nire,ocupacao_,principal forma_andatuacao recibo_.numero - Tax clearance certificates. Certificates reproduce registrations at the source; the API does not issue tax clearance certificates, such as the certidão negativa de débitos.
- Temporary receipt URLs (
site_). The dossier operations return the PDF in the response.receipts certidao_,baixa licenciamento_anddispensado origemfrom Receita Federal / CNPJ andendereco_from Receita Federal / MEI.referencia - The response
header, with price, signature and execution time, thetimeoutand the account balance lookup. - The other lookups in the Infosimples catalog, such as vehicles, lawsuits, state and municipal certificates, invoices, tax debt, professional councils, sanctions lists and rural properties.
Step by step
- Sign up and create a key in API keys.
- List the Infosimples lookups your integration uses and check the equivalent of each one in Matching operations.
- Replace the
POSTto/api/withv2/ consultas/ GET https:/followed by the CNPJ without punctuation, or with/ api. cnpja. com/ v2/ establishments/ /v2/for a CPF andindividuals/ /v2/for a CEP.postal-codes/ - Remove
tokenandtimeoutfrom the body, send the key inAuthorization, with no prefix, and set the client timeout above a request’s maximum duration, given in Timeout and size. - Merge into one request the lookups you made in sequence for the same CNPJ, with
expand, and replace the per-UF SINTEGRA lookups withstateRegistry..states - Set
maxAgeand each resource’s own limit according to how current the data must be. - Rewrite the response parsing without the envelope and without
data[], with the tables in Response fields, basing your logic oncode. - Handle errors by HTTP status and
code, accept206as success, and retry429,500and504with a delay. - Replace reading
site_with the dossier operations in the flows that store receipts.receipts - Review the flows that looked up by state registration number, by CPF at the Receita Federal or with the taxpayer’s login, which have no equivalent.
- Validate the integration with the key, compare the responses with the Infosimples ones and follow usage in Usage during the first weeks.
Sources for this comparison
What this page says about Infosimples comes from its public API documentation and the page of each lookup:
- Consultas API documentation: the request format, the common parameters, the response structure and codes and, through the link of each lookup, its parameters and fields, including the state SINTEGRA sites and SEFAZ / PR.
- The pages of the Receita Federal / CNPJ, Receita Federal / Simples Nacional and Receita Federal / MEI lookups.
- The pages of the SEFAZ / Cadastro Centralizado de Contribuinte (CCC), SINTEGRA / Unificada and SINTEGRA / SUFRAMA lookups.
- The pages of the Correios / CEP, Correios / Completa CEP, IBGE / Código de Município and IBGE / Área territorial brasileira lookups.
- Lookup catalog: the names of the other lookups mentioned.
- Pricing: the prepaid balance, billing by volume tier, the extra price of each API and the monthly minimum.
- Home page: lookups run live at the original source.
Sources accessed on November 19, 2026.
Third-party trademarks on this page are used only to identify them, with no affiliation or endorsement (Terms of Use).