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".
| Field | Values | Default | Description |
|---|---|---|---|
| model | "55" NF-e; "65" NFC-e | None, required | 55 for an NF-e |
| transaction_type | "0" inbound; "1" outbound; "2" import; "3" export | None, required | 1 for a sale. Any other value is currently issued as 0 (inbound) |
| ambiente | "1" production; "2" test | None, required | See "Environments and testing" |
| issuance_type | "1" | None, required | Only 1 is sent. When the tax authority is unavailable, the platform switches to contingency issuance automatically |
| finalidade | "1" normal; "2" complementary; "3" adjustment; "4" return | 1 | 2 and 4 require ref_nfe_chave (the 44-digit access key of the original invoice) |
| ind_final | "0" business-to-business transaction; "1" final consumer | 1 | 0 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.ie | Identification number; the state registration contains digits only | None | Determines 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, required | Product 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 included | None, required | Normally 1 |
| products[].category_id / products[].impostos | One of the two | None | The two ways of specifying product taxes; see "Two ways of specifying product taxes" in "Issue a new invoice" |