TF Fiscal

Key fields

The fields that determine the nature of an invoice: values, defaults and the consequences of incorrect values

The following fields determine the direction, purpose and tax treatment of an invoice. A value outside the listed values currently does not cause an error; it is treated as the default value, which may result in an invoice different from the one intended. The platform will progressively return an error instead. The complete field list is given in "Issue a new invoice".

FieldValuesDefaultDescription
model"55" NF-e; "65" NFC-eNone, required55 for an NF-e
transaction_type"0" inbound; "1" outbound; "2" import; "3" exportNone, required1 for a sale. Any other value is currently issued as 0 (inbound)
ambiente"1" production; "2" testNone, requiredSee "Environments and testing"
issuance_type"1"None, requiredOnly 1 is sent. When the tax authority is unavailable, the platform switches to contingency issuance automatically
finalidade"1" normal; "2" complementary; "3" adjustment; "4" return12 and 4 require ref_nfe_chave (the 44-digit access key of the original invoice)
ind_final"0" business-to-business transaction; "1" final consumer10 when selling to a business for resale or production
ind_pres"0", "1", "2", "3", "4", "5", "9"2 (internet)The meanings are given under "Final consumer and buyer presence" in "Issue a new invoice"
cliente.cpf / cliente.cnpj / cliente.ieIdentification number; the state registration contains digits onlyNoneDetermines whether the buyer is an ICMS taxpayer: a CNPJ with a state registration is a taxpayer; a CPF, or a CNPJ without a state registration, is a non-taxpayer, and DIFAL is calculated on interstate operations
products[].origem"0" to "8"None, requiredProduct origin: 0 domestic; 1 directly imported; 2 imported goods purchased in the domestic market; 3 to 8, see the knowledge base. The interstate rate for 1, 2, 3 and 8 is 4%
products[].indicador_total"1" included in the invoice total; "0" not includedNone, requiredNormally 1
products[].category_id / products[].impostosOne of the twoNoneThe two ways of specifying product taxes; see "Two ways of specifying product taxes" in "Issue a new invoice"