# State registration and CCC

> How state registrations work on CNPJá: the CCC, types and status, restrictions, authorized tax documents and what to check before issuing an NF-e invoice.

CNPJá shows an establishment's [state registrations](https://cnpja.com/en-us/docs/glossary#inscrição-estadual--state-registration) as the [CCC](https://cnpja.com/en-us/docs/glossary#ccc) reports them: number, state, type, status and restrictions and, at the detailed level, activity, address and authorized tax documents. They are not part of the open data and only reach CNPJá through live queries at the CCC, which adds up when many states are queried at the detailed level.

> **Important:** this page describes the data and does not constitute tax, accounting or legal advice, as the [Terms of Use](https://cnpja.com/en-us/legal/terms#data) state.

## State registration and CCC

A state registration (inscrição estadual) is a taxpayer's registration with the tax authority (Secretaria da Fazenda) of a [state](https://cnpja.com/en-us/docs/glossary#uf), required for operations subject to [ICMS](https://cnpja.com/en-us/docs/glossary#icms), the state tax on the circulation of goods and services, such as selling goods and issuing NF-e invoices. Each state keeps its own registry, so the same CNPJ can have registrations in several states, and sometimes more than one in the same state, each with its own number, type and status.

The registration belongs to the establishment, not the company: each branch has its own registrations, in the states where it operates, as explained in [What belongs to the company and what to the establishment](https://cnpja.com/en-us/docs/data/company-and-establishment#what-belongs-where).

The CCC ([Cadastro Centralizado de Contribuintes](https://dfe-portal.svrs.rs.gov.br/Nfe/Ccc)) brings the states' taxpayer registries together in a national database, queried state by state. It is the only source of state registrations on CNPJá. This data is not part of [CNPJ open data](https://cnpja.com/en-us/docs/glossary#dados-abertos-do-cnpj--cnpj-open-data): CNPJá only knows it after a [live query](https://cnpja.com/en-us/docs/data/freshness#live) at the CCC, keeps the latest reading and uses it while it is within the accepted [max age](https://cnpja.com/en-us/docs/data/freshness#max-age).

## Types and status

Each registration has a type, as reported by the CCC:

| Type | Meaning |
|---|---|
| State taxpayer | Registration of an [ICMS taxpayer](https://cnpja.com/en-us/docs/glossary#contribuinte-do-icms--icms-taxpayer) in the state, the most common case for companies that sell goods |
| Tax substitution | Registration used to pay the ICMS due under [tax substitution](https://cnpja.com/en-us/docs/glossary#substituição-tributária--tax-substitution) in the state, common for companies based in another state |
| Non-taxpayer | Registration in the state of someone who is not an ICMS taxpayer, such as construction sites and virtual registrations |
| Interstate taxpayer | Interstate taxpayer registration, as reported by the CCC |
| Rural producer | [Rural producer](https://cnpja.com/en-us/docs/glossary#produtor-rural--rural-producer) registration, typical of natural persons |

The status tells whether the registration is enabled as a taxpayer in the state, with the date of its current status. CNPJá only reports whether it is enabled or not, without the reason: to understand why a registration is not enabled, check with the state's tax authority.

## Restrictions and interstate blocking

The CCC reports two kinds of restriction:

- *Restriction on the registration:* the CNPJ or CPF has a restriction as a recipient in the registration's state.
- *[Interstate restriction](https://cnpja.com/en-us/docs/glossary#bloqueio-interestadual--interstate-restriction):* a state stops its suppliers from issuing invoices to the CNPJ in another state, blocking it as a recipient. Each restriction names the state that blocks and the state blocked.

An interstate restriction usually points to registry or tax issues, and both kinds of restriction matter most in interstate operations. Every known interstate restriction is shown, even those involving states that were not queried.

## Authorized tax documents

At the detailed level, each registration lists the electronic [tax documents](https://cnpja.com/en-us/docs/glossary#documento-fiscal--tax-document) it is authorized to issue:

| Document | What it is |
|---|---|
| NF-e | Electronic invoice, for the sale and circulation of goods |
| NFC-e | Electronic consumer invoice |
| CT-e | Electronic bill of lading, for road, air, waterway, rail, pipeline and multimodal transport |
| CT-e OS | Electronic bill of lading for other services |
| BP-e, BP-e TA and BP-e TM | Electronic passenger ticket and its air and metropolitan transport variants |
| NFCom | Electronic invoice for communication services |
| NF3-e | Electronic electricity invoice |
| NFAg | Electronic water and sanitation invoice |
| NFGas | Electronic gas invoice |

The list matters when the establishment looked up is the one issuing the document, such as a hired carrier that must issue CT-e.

## Before issuing an invoice

Before issuing an NF-e, these are the registration details usually checked. The list helps you read the data and does not replace the tax analysis of each operation.

- *Reading date:* registrations only change on CNPJá after a new query at the CCC. If the latest reading is too old for the decision, query live before issuing. When the query fails, the previous reading stands, and it may be old, as explained in [Partial result](https://cnpja.com/en-us/docs/data/freshness#partial).
- *Registration in the customer's state:* whether there is a registration in the customer's state and whether it is enabled.
- *Type:* whether the recipient is an ICMS taxpayer in the state, a non-taxpayer or another type.
- *Restrictions:* the restriction on the registration and the interstate restrictions, especially in interstate operations.
- *Authorized documents:* when the establishment looked up is the issuer, such as a hired carrier, whether the expected document is among the authorized ones, which requires the detailed level.
- *Record of the check:* to keep the reading you used, issue the state registrations certificate. It holds the registrations in the establishment's state as of the query date, as the source's original PDF or as a reproduction generated by CNPJá, as explained in [What a certificate is](https://cnpja.com/en-us/docs/data/certificates#what-it-is).

## Individuals with a registration

Natural persons can also have a state registration, such as a rural producer, who needs one to issue producer invoices and sell their production. On CNPJá, a CPF with a state registration or a [SUFRAMA](https://cnpja.com/en-us/docs/data/suframa) registration is an [individual](https://cnpja.com/en-us/docs/glossary#indivíduo--individual).

- Looking up an individual is not a CPF lookup at the Receita Federal: Receita Federal CPF data is not part of CNPJá.
- Only CPFs with at least one state or SUFRAMA registration are available.
- With no establishment address, there is no state of origin: the lookup names the states, and the CCC is queried only in them. Finding no registration in the states queried does not mean the CPF has none in another state.
- The [masked CPF](https://cnpja.com/en-us/docs/data/partners-and-qsa#masked-cpf) of partners does not work for this lookup, which needs the full CPF.
- Today, lookups by CPF are only available in the API.

## Summary and detailed

Registrations can be read at two [levels of detail](https://cnpja.com/en-us/docs/glossary#nível-de-detalhe--level-of-detail):

| Level | What it holds |
|---|---|
| Summary | Number, state, type, status and restriction of each registration, plus the interstate restrictions |
| Detailed | The same, plus activity start and end in the state, primary activity registered in the state, registration address, Simples Nacional [sublimit](https://cnpja.com/en-us/docs/glossary#sublimite-estadual--state-sublimit) and authorized tax documents |

The sublimit tells whether a Simples Nacional company exceeded the state's gross revenue sublimit and now pays ICMS outside the Simples Nacional. The Simples Nacional option itself is covered in [Tax regime](https://cnpja.com/en-us/docs/data/tax-regime).

The two levels reach the CCC in different ways, which sets when each state is refreshed:

- *Summary:* the live query is made in the establishment's state. If it has a registration there, the same query also refreshes the registrations in the other states; if not, the other states stay as they were at the latest reading. The age that counts is that of the latest query at the CCC, in any state.
- *Detailed:* each state is read separately, with its own age, and only the states older than the max age are queried again. A state with no registration never counts as up to date, so it is queried live every time.
- *Natural persons:* at the summary level, a single query refreshes every registration of a CPF that already has a known state registration. While no registration is known, as on its first lookup, each state is read separately, as at the detailed level.

## All states: mind the cost

Querying every state costs little at the summary level and can cost a lot at the detailed level:

- *Summary:* the number of states queried does not change consumption.
- *Detailed:* each state is read separately, and each state with no registration is queried live on every export or request, whatever the max age. With all states, an establishment with no registration at all can consume up to 27 live queries every time.

The figures for each operation are in the metering rules, for [exports and bulk lookups](https://cnpja.com/en-us/legal/metering#platform-exports) and for the [API](https://cnpja.com/en-us/legal/metering#api-cnpj).

> **Tip:** to find out in which states an establishment is registered, use the summary level with all states and then the detailed level only in the states where the registration exists or matters to the operation. At the summary level, the other states are refreshed only when the establishment has a registration in its own state.

## Where it appears in the app

- *Company record:* the **State registrations** section shows a map of the states, the **Interstate restrictions** and the registrations in every state the CCC reports, grouped by state, the address state first, with status, type and restriction. The details of each state are queried separately, live. See [The company record](https://cnpja.com/en-us/docs/companies/record#state-registrations) and [State registrations by state](https://cnpja.com/en-us/docs/companies/live-refresh#state-registrations-by-state).
- *Refreshing:* the **CCC** source sits in the **Sources** popover. [Automatic updates](https://cnpja.com/en-us/docs/companies/live-refresh#automatic-updates) are on by default with the **Older than 7 days** rule and, when a record opens, query live the CCC of the establishment's state, with the details of its registrations, if the latest reading is older than that, consuming the organization's live queries per registration, as the [Metering Rules](https://cnpja.com/en-us/legal/metering#auto-refresh) state.
- *Exports and bulk lookups:* the **State registrations** resource, at the **Summary** or **Detailed** level, with the **States queried**: **Origin**, **All** or the states marked on the map. See [States for state registrations](https://cnpja.com/en-us/docs/lists/export#states).
- *Certificates:* the **State registrations** certificate covers the establishment's state and shows as **Unavailable abroad** when the establishment has no state. See [Issue certificates as PDF](https://cnpja.com/en-us/docs/companies/certificates).

## In the API

Registrations come in `stateRegistry`, requested in `expand` in Lookup CNPJ, and in Lookup CPF for natural persons. The states go in `stateRegistry.states` (`ORIGIN`, state abbreviations or `ALL`), the level in `stateRegistry.view` (`SUMMARY` or `DETAILED`) and the resource's own max age in `stateRegistry.maxAge`. The fields behind each pre-invoice check and the `CCC_REGISTRATIONS` certificate are in [State registrations in the API](https://cnpja.com/en-us/docs/api/state-registrations).

## Limitations

- There is no lookup by registration number: lookups are by CNPJ or, in the API, by CPF.
- Company search does not filter by state registration, as shown in [What cannot be filtered](https://cnpja.com/en-us/docs/data/search-matching#what-cannot-be-filtered).
- CNPJá shows what the CCC reported at the latest reading. A change the state has not yet passed on to the CCC does not appear.
- The registration's address and activity come from the state's registry and may differ from the Receita Federal record. Corrections are made at the state's tax authority, as explained in [How to correct data at the source](https://cnpja.com/en-us/docs/data/sources#correct-at-source).
- Establishments abroad have no state: the summary reading, which starts from the establishment's state, does not happen, and the state registrations certificate is not available.
