TF Fiscal
Documentation

NF-e

Issue NF-e

Accepts the issuance request immediately; authorization with SEFAZ happens asynchronously.

POST/openapi/v2/empresas/{empresaId}/nf-e
Requires the token, timestamp and sign signature headers, see Authentication.

Accepted requests return HTTP 200 with no body and enter the asynchronous issuance flow; the result arrives via webhook or the query endpoint. Re-submitting the same id reuses the original task; if the previous attempt was denied (Negada), resending the same id with corrected fields issues again with the new payload, no new id needed; changing key fields such as the recipient while the previous attempt is still processing or already authorized is rejected with 10004032. Authentication errors (10009xxx) are listed under Authentication.

Path parameters

empresaId*
stringIssuing company identifier

* Required field

Request body

id*
stringRequest identifier
ambienteEmissao*
stringEnvironment
finalidade
stringPurpose
*
required for returns, complementary and adjustment
objectOriginal invoice
naturezaOperacao
stringNature of operation
consumidorFinal
boolFinal consumer flag
informacoesAdicionais
stringAdditional information
informacoesAdicionaisFisco
stringTax authority remarks
*
objectOrder
*
objectBuyer
*
arrayItems
objectTransport
objectBilling
*
required for export invoices
objectExport

* Required field

200
Request accepted; no body. The invoice stays in AguardandoAutorizacao until SEFAZ replies.

No response body

A Simples Nacional shop (CRT 1) selling online to an individual. Only the five blocks of the example are needed; the table below lists only the fields to send, anything not listed stays out.

json
{
"id": "NFe-000014553",
"ambienteEmissao": "Homologacao",
"pedido": {
"presencaConsumidor": "OperacaoPelaInternet",
"pagamento": { "formas": [ { "tipo": "PagamentoInstantaneoPix", "valor": 56.94 } ] }
},
"cliente": {
"tipoPessoa": "F", "nome": "Cliente Demo", "email": "cliente.demo@mail.com", "cpfCnpj": "88533234775",
"endereco": { "uf": "PR", "cidade": "4106902", "logradouro": "Rua Presidente Wilson", "numero": "911", "bairro": "Uberaba", "cep": "81570440" }
},
"itens": [
{
"cfop": "6102", "codigo": "000068", "descricao": "Pendrive 16GB", "ncm": "85235190",
"quantidade": 2, "unidadeMedida": "UN", "valorUnitario": 28.47,
"impostos": {
"icms": { "situacaoTributaria": "102" },
"pis": { "situacaoTributaria": "49" },
"cofins": { "situacaoTributaria": "49" }
}
}
]
}
id*
stringRequest identifier
ambienteEmissao*
stringEnvironment
*
objectOrder data
*
objectBuyer
*
arrayItems

* Required field