TF Fiscal
Documentation

Companies

Register company automatically

Just CNPJ, A1 certificate and password: the platform creates the company, links the certificate and lists anything missing.

POST/openapi/v2/empresas/cadastro-automatico
Requires the token, timestamp and sign signature headers, see Authentication.

One call replaces Register company + Link digital certificate. The certificate proves ownership; legal name, address and CNAE come from the public CNPJ registry data; state registration comes from the SEFAZ taxpayer registry, queried with the certificate itself; the tax regime crosses that registry with the Simples Nacional and MEI options in the public data.

With a complete profile the company goes straight to review. If something is missing, it is created as a draft with the certificate linked, the fields are listed in camposPendentes and nothing is filled in by guesswork: issuance stays blocked until you complete it with Register company (body with id). Track the company with Query company.

Headers

Content-Type*
stringBody type

* Required field

Request body

cnpj*
stringCompany CNPJ
senha*
stringCertificate password
arquivoBase64*
stringCertificate in Base64

* Required field

200
Company created and certificate linked. Check status and camposPendentes to see whether it is already under review.
empresaId
stringCompany identifier
cnpj
stringCompany CNPJ
status
stringCompany status
camposPendentes
arrayPending fields
razaoSocial
stringLegal name
nomeFantasia
stringTrade name
inscricaoEstadual
stringState registration
optanteSimplesNacional
boolSimples member
mei
boolMEI
email
stringRegistered e-mail
telefoneComercial
stringRegistered phone
objectAddress used for the profile

FieldSourceIf not obtained
CNPJRequest, checked against the certificateRejected 10003010
Legal namePublic CNPJ data; else SEFAZ registry; else certificate nameAlways obtained
Trade name, e-mail, phonePublic CNPJ data (trade name also from SEFAZ)Left empty, not blocking
Main CNAEPublic CNPJ data; else SEFAZLeft empty, not blocking
State and citySEFAZ IBGE code; else state and city name from public dataRejected 10003053
Address (street, number, complement, district, postal code)Whole block from the active SEFAZ state registration when complete; else whole block from public data, never mixing both sourcesDraft, listed in camposPendentes; a value over the NF-e limit (60 characters, number 16) is left empty, not cut
State registrationSEFAZ, only the active registration of the same CNPJDraft, listed in camposPendentes
Tax regimeApuração regime of the active state registration (SEFAZ) crossed with the Simples and MEI options in the public dataDraft with regime pending; optanteSimplesNacional and mei in camposPendentes
NF-e numberingNot created, same as Register company without emissaoNFeProdutoCreate it with Register company carrying id and emissaoNFeProduto
EnvironmentHomologation, same as Register company—