Skip to content
Exported spreadsheet format
Help · Lists and spreadsheets

Exported spreadsheet format

The worksheets and columns of the XLSX file CNPJá exports, how it splits into parts, how columns map to the API and how to open it in Excel or Google Sheets.

The spreadsheet of an export or a bulk lookup is an XLSX file with one worksheet for the registration of the establishments in the list and one worksheet for each set of items: the activities, the partners and, depending on the resources chosen for the export, the tax regime history and the registrations. It is downloaded on the list’s page, under Exports, as Export to a spreadsheet explains.

File and parts

ItemWhat it is
FormatXLSX, Excel’s format, the only one offered
File nameThe list’s name at the time of the download, such as Clientes.xlsx. Slashes in the name become hyphens
Name of each partThe list’s name, the part number and the number of parts: Clientes (1-3).xlsx, Clientes (2-3).xlsx and Clientes (3-3).xlsx

The export is split into parts when some worksheet would go past the maximum rows per worksheet, which is in Usage limits. In practice, the worksheets that reach that maximum are the ones with several rows per establishment, such as Activities and Partners.

Each part is a complete spreadsheet, with every worksheet, the title band and the header, and holds a slice of the list’s establishments. Each establishment sits whole in a single part, with its activities, partners and registrations. Parts are downloaded separately, and only all of them together hold the whole list.

Worksheets

The worksheet and column names below are those of a file in English. A file in Portuguese has them, and the values CNPJá writes, in Portuguese, as In the spreadsheet explains.

WorksheetWhen it appearsOne row per
EstablishmentsAlwaysEstablishment in the list
ActivitiesAlwaysEconomic activity of the establishment: the primary one and each secondary one
PartnersAlwaysPartner or administrator of the establishment’s company
Tax Regime TimelineWith Tax regime at the Detailed levelPrevious period or upcoming event of the company’s tax regime
State RegistrationsWith State registrationsState registration of the establishment in the states queried
SUFRAMA RegistrationsWith SUFRAMA registrationsRegistration of the establishment at SUFRAMA

Every worksheet follows the same layout:

  • Band and header: the first row holds the CNPJá logo and the worksheet’s title, and the second the column names, with filters.
  • Link between worksheets: every worksheet starts with the establishment’s CNPJ and Legal Name columns, which tie each item to its row in Establishments, and ends with Updated Date.
  • Frozen panes: the band, the header and the CNPJ and Legal Name columns stay visible as you scroll.

An establishment with no items for a worksheet, such as one with no partners, simply has no rows in it. A company’s partners repeat for each of its establishments in the list.

Establishments worksheet

The columns, in order. Those marked with a resource only appear when it is chosen for the export, and the last column gives the matching field in the CNPJ lookup response:

ColumnWhat it holdsAPI field
CNPJThe establishment’s CNPJtaxId
Legal NameThe company’s legal namecompany.legalName
Trade NameThe establishment’s trade nametradeName
TypeHead office or branchtype.label
Incorporation DateThe establishment’s incorporation dateincorporationDate
Registration StatusThe registration statusstatus.label
Status DateThe date of the registration statusstatusDate
Status ReasonThe reason, when the establishment is not activestatusReason.label
Special StatusThe special status, when there is onespecialStatus.label
Special Status DateThe date of the special statusspecialStatusDate
Company SizeThe company’s sizecompany.size.label
Share CapitalThe company’s share capitalcompany.shareCapital
Legal Nature CodeThe legal nature codecompany.legalNature.code
Legal NatureThe legal nature descriptioncompany.legalNature.label
Responsible Federative EntityThe federative entity, in public administrationcompany.federativeEntity.label
Tax RegimeWith Tax regime: the regime typecompany.taxRegime.type.label
Simples Nacional Start DateWith Tax regime: the start of the current Simples Nacional periodcompany.taxRegime.simplesNacionalStartDate
SIMEI Start DateWith Tax regime: the start of the current SIMEI periodcompany.taxRegime.simeiStartDate
IBS Regular Regime Start DateWith Tax regime at the Detailed level: the start in the IBS regular regimecompany.taxRegime.regularIbsStartDate
CBS Regular Regime Start DateWith Tax regime at the Detailed level: the start in the CBS regular regimecompany.taxRegime.regularCbsStartDate
Primary Activity CodeThe CNAE code of the primary activityprimaryActivity.code
Primary ActivityThe description of the primary activityprimaryActivity.label
StreetThe street of the addressaddress.street
NumberThe address numberaddress.number
ComplementThe address detailsaddress.details
DistrictThe districtaddress.district
CityThe municipality nameaddress.city
StateThe state abbreviationaddress.state
Postal CodeThe CEPaddress.postalCode
Municipality Code (IBGE)The municipality’s IBGE codeaddress.municipality
CountryThe countryaddress.country.label
LatitudeWith Address coordinates: the latitudeaddress.coordinates.latitude
LongitudeWith Address coordinates: the longitudeaddress.coordinates.longitude
PrecisionWith Address coordinates: Address, District or Municipality, as Precision explainsaddress.coordinates.precision
Primary PhoneThe first phone numberphones[0].number
Alternate PhoneThe second phone numberphones[1].number
EmailEvery email address, separated by commas in a single cellemails[].address
Interstate Restrictions (Issuer → Recipient)With State registrations: the interstate e-invoice restrictions, each written as the issuer’s state, an arrow and the recipient’s state, separated by commasstateRegistry.taxRestrictions
Updated DateThe registration’s last update from the Receita FederalupdatedAt

What each piece of data means is covered in the Data section, starting with Data formats.

Item worksheets

In the worksheets below, the CNPJ and Legal Name columns are the same as in Establishments and are left out of the tables. The API fields are relative to each worksheet’s item.

Activities

One row for the primary activity and one for each secondary activity, from primaryActivity and secondaryActivities.

ColumnWhat it holdsAPI field
TypePrimary or SecondaryprimaryActivity or secondaryActivities
CodeThe CNAE codecode
DescriptionThe activity’s descriptionlabel
Updated DateThe same as in EstablishmentsupdatedAt

Partners

One row per partner or administrator, from company.partners. The worksheet holds personal data, whose use follows Responsible use.

ColumnWhat it holdsAPI field
NameThe partner’s nameperson.legalName
TypeThe person typeperson.type.label
CPF/CNPJThe CNPJ of a partner company or the masked CPF of a personperson.taxId
Age GroupThe age group of an individualperson.ageGroup
CountryThe country of domicileperson.domicileCountry.label
Admission DateThe date the partner joinedadmissionDate
RoleThe partner’s rolerole.label
Legal RepresentativeThe legal representative’s name, when there is onelegalRepresentative.person.legalName
Legal Representative CPFThe legal representative’s masked CPFlegalRepresentative.person.taxId
Legal Representative RoleThe legal representative’s rolelegalRepresentative.role.label
Updated DateThe same as in EstablishmentsupdatedAt

Tax Regime Timeline

Only with Tax regime at the Detailed level: one row per previous period or upcoming event, from company.taxRegime.timeline, as Tax regime explains.

ColumnWhat it holdsAPI field
TypeThe type of the period or eventtype.label
Start DateThe startstartDate
End DateThe endendDate
DetailsThe detail of the period or event, such as the reason for an exclusiondetails
Updated DateThe tax regime’s last update, not the registration’scompany.taxRegime.updatedAt

State Registrations

Only with State registrations: one row per registration in the states queried, from stateRegistry.registrations, as State registration and CCC explains.

ColumnWhat it holdsAPI field
State RegistrationThe registration numbernumber
Registration StateThe registration’s statestate
StatusEnabled or Not EnabledisEnabled
TypeThe registration typetype.label
Status DateThe date of the statusstatusDate
Recipient RestrictionBlocked, when there is a restrictionhasRestriction
SublimitAt the Detailed level: Exceeded, when the sublimit was exceededhasExceededSublimit
Authorized Tax DocumentsAt the Detailed level: the authorized tax documents, separated by commasauthorizedTaxDocuments[].label
Activity Start DateAt the Detailed level: the start of activities in the stateactivityStartDate
Activity End DateAt the Detailed level: the end of activities in the stateactivityEndDate
Primary Activity Code and Primary ActivityAt the Detailed level: the activity recorded in the registrationprimaryActivity
Street to CountryAt the Detailed level: the nine address columns, as in Establishments, with the registration’s addressaddress
Updated DateThe registration’s last updateupdatedAt

SUFRAMA Registrations

Only with SUFRAMA registrations: one row per registration, from suframa.registrations.

ColumnWhat it holdsAPI field
SUFRAMA RegistrationThe registration numbernumber
Registration DateThe registration dateregistrationDate
StatusThe registration’s statusstatus.label
Approved ProjectWhether the project was approved, as Yes or NohasApprovedProject
Approval DateThe project’s approval dateapprovalDate
Primary Activity Code and Primary ActivityThe activity recorded in the registrationprimaryActivity
Street to CountryThe nine address columns, with the registration’s addressaddress
Primary Phone, Alternate Phone and EmailThe registration’s contacts, as in Establishmentsphones, emails
Updated DateThe registration’s last updateupdatedAt

How values are written

How each value appears in the cells, from identifiers and dates to the share capital and missing values, which language the worksheets, columns and labels come in and what to watch for when using those values in formulas are in In the spreadsheet, on the Data formats page.

Open in Excel and Google Sheets

  • Excel: open the downloaded file with a double click. Avoid saving the spreadsheet as CSV and reopening it with a double click: Excel reads again as a number whatever has digits only, such as registration numbers, and drops the leading zeros.
  • Google Sheets: upload the file to Google Drive and open it with Google Sheets, or use File > Import in an open spreadsheet. Google Sheets has a cell limit per file, and a very large export may not fit; in that case, use Excel.
  • Back to CNPJá: the CNPJs field reads every worksheet of an .xlsx file, and the CPF/CNPJ column of Partners holds the CNPJs of partner companies, which would go into the list too. To bring only the establishments, copy the CNPJ column of Establishments and paste it into the field, as Import CNPJs explains.

In the API

The export reads each establishment with the same options as CNPJ lookup: the additional resources, the detail levels, the states and the max age. In the API, the response is JSON and comes one CNPJ per request; in the spreadsheet, the whole list comes in one file or in parts, with the fields laid out in the columns above.

The API response also carries what the spreadsheet leaves out:

  • the code of classified values, such as status, company.size and role, except for the legal nature and the activities;
  • the type of each phone number and email address, in type, and the phone numbers from the third one on;
  • the CNPJ root, in company.id, and each person’s identifier, in person.id;
  • the last query of each registration source, in stateRegistry.updatedAt and suframa.updatedAt, since the spreadsheet carries each registration’s update;
  • the tax regime’s last update, in company.taxRegime.updatedAt, which only appears in Tax Regime Timeline.

Informational content that may change without notice. It is not tax, accounting or legal advice, and CNPJá's terms and policies prevail over this page.