TF Fiscal
Documentation

Companies

Register company

Registers the issuing company (or updates it when the body carries `id`) and returns the `empresaId` used by every later endpoint.

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

Submit the seller company data; the response carries the empresaId, the path variable of every later endpoint. The emissaoNFeProduto, emissaoNFeConsumidor, emissaoDCe and emissaoNFSe blocks are each optional, at least one is required: send the block of each document type the company will issue; omitting all of them returns 400 10001001. A body carrying id is treated as an update, see the section below.

Request body

id*
Required for update.
stringCompany identifier
cnpj*
stringCompany CNPJ
inscricaoMunicipal
stringMunicipal registration
inscricaoEstadual*
Required for NF-e / NFC-e / DC-e.
stringState registration
razaoSocial*
stringLegal name
nomeFantasia
stringTrade name
optanteSimplesNacional*
boolSimples Nacional member
mei*
boolIndividual micro-entrepreneur
email*
stringContact e-mail
telefoneComercial*
stringBusiness phone
*
objectCompany address
*
At least one of emissaoNFeProduto / emissaoNFeConsumidor / emissaoDCe / emissaoNFSe.
objectNF-e configuration
*
At least one of emissaoNFeProduto / emissaoNFeConsumidor / emissaoDCe / emissaoNFSe.
objectNFC-e configuration
*
At least one of emissaoNFeProduto / emissaoNFeConsumidor / emissaoDCe / emissaoNFSe.
objectDC-e configuration
*
At least one of emissaoNFeProduto / emissaoNFeConsumidor / emissaoDCe / emissaoNFSe.
objectNFS-e configuration

* Required field

200
Registration accepted and placed in the approval queue (or update applied). The same shape is returned in both cases.
empresaId
stringCompany identifier
dceHabilitado
boolDC-e enabled
nfseHabilitado
boolNFS-e enabled
nfceHabilitado
boolNFC-e enabled

  • Registration enters the platform approval queue; the company issues only after operations approve it and the certificate is linked (Link certificate). Issuing before that returns 10004004 (NF-e) or 10019004 (DC-e). Check progress with platform operations.
  • After registration the company is in the certification environment: integrate with ambienteEmissao=Homologacao (NF-e) / ambiente=Homologacao (DC-e). Switching to production is an operations action with no API; sending Producao before the switch returns 10004030 (NF-e) or 10019012 (DC-e). See Environments.
  • The tax regime comes from mei and optanteSimplesNacional; there is no field of its own.