br-nfe-v4
Module: github.com/invopop/gobl.br.nfe
Correction Definitions
Auto-generation of corrective invoices or credit and debit notes is supported.Invoice Types
The types of invoices that can be created with a preceding definition:credit-notedebit-note
Stamp Keys
Stamp keys from the previous invoice that need to be referenced:sefaz-key
Scenarios
bill/invoice
standard, credit-note, debit-note
standard, credit-note, debit-note
Filters:
- Types:
standard,credit-note,debit-note
- Extensions:
br-nfe-model:55
standard, credit-note, debit-note, #simplified
standard, credit-note, debit-note, #simplified
Filters:
- Types:
standard,credit-note,debit-note - Tags:
simplified
- Extensions:
br-nfe-model:65
standard
standard
Filters:
- Types:
standard
- Extensions:
br-nfe-operation-type:1,br-nfe-purpose:1
Extensions
Fiscal Document Model Code
Code used to identify the fiscal document model. It will be determined automatically by GOBL during normalization according to the scenario definitions.br-nfe-model
br-nfe-model
Buyer Presence Indicator
Indicator of the buyer’s presence at the commercial establishment at the time of the operation. This field is used to classify the type of commercial transaction according to Brazilian tax regulations.br-nfe-presence
br-nfe-presence
Payment Method
Code used to identify the payment method used for the transaction.br-nfe-payment-means
br-nfe-payment-means
CFOP (Fiscal Operations and Services Code)
Four-digit code that classifies the nature of goods movements and service provisions for ICMS purposes in Brazil. The first digit indicates the operation origin/destination (1–3 for entries; 5–7 for exits), and the remaining digits identify the specific type of operation.br-nfe-cfop
br-nfe-cfop
Pattern:
^[1-7]\d{3}$Fiscal Incentive Indicator
Indicates whether a party benefits from a fiscal incentive.br-nfe-fiscal-incentive
br-nfe-fiscal-incentive
Tax Regime Code
Indicates the tax regime that a party is subject to. Defaults to3
(normal regime) during normalization when not provided.
br-nfe-regime
br-nfe-regime
Special Tax Regime Code
Indicates a special tax regime that a party is subject to.br-nfe-special-regime
br-nfe-special-regime
ICMS Tax Status Code (CST)
ICMS tax status code (CST) for the line item, used by issuers under the normal regime (br-nfe-regime 3). Simples Nacional issuers must use the CSOSN code
(br-nfe-icms-csosn) instead. Defaults to 00 (taxed in full) during
normalization when not provided.
br-nfe-icms-cst
br-nfe-icms-cst
ICMS Simples Nacional Status Code (CSOSN)
ICMS status code (CSOSN) for the line item, used by issuers under the Simples Nacional regime (br-nfe-regime 1, 2 or 4). Normal-regime issuers must
use the CST code (br-nfe-icms-cst) instead.
br-nfe-icms-csosn
br-nfe-icms-csosn
ICMS Goods Origin
Origin of the goods for ICMS purposes. Defaults to0 (national) during
normalization when not provided.
br-nfe-icms-origin
br-nfe-icms-origin
PIS Tax Status Code (CST)
PIS tax status code for the line item. Simples Nacional issuers typically use49 or 99, as PIS is settled within the unified DAS collection. Defaults to
01 (standard-rate taxable operation) during normalization when not provided.
br-nfe-pis-cst
br-nfe-pis-cst
COFINS Tax Status Code (CST)
COFINS tax status code for the line item. Simples Nacional issuers typically use49 or 99, as COFINS is settled within the unified DAS collection.
Defaults to 01 (standard-rate taxable operation) during normalization when
not provided.
br-nfe-cofins-cst
br-nfe-cofins-cst
Purpose Code
Code that identifies the purpose of the fiscal document (SEFAZ fieldfinNFe,
B25). Standard invoices are set to 1 (normal) via a tax scenario.
br-nfe-purpose
br-nfe-purpose
Operation Type Code
Code that identifies the type of operation, indicating whether it is inbound or outbound (SEFAZ fieldtpNF, B11). Standard invoices are set to 1
(outbound) via a tax scenario.
br-nfe-operation-type
br-nfe-operation-type
Credit Note Type Code
Code that identifies the type of credit note (SEFAZ fieldtpNFCredito,
B25.2) according to the RTM (applies to IBS/CBS only).
br-nfe-credit-note-type
br-nfe-credit-note-type
Debit Note Type Code
Code that identifies the type of debit note (SEFAZ fieldtpNFDebito, B25.1)
according to the RTM (applies to IBS/CBS only).
br-nfe-debit-note-type
br-nfe-debit-note-type
Validation Rules
bill.Invoice
bill.Invoice
bill.Line
bill.Line
tax.Combo
tax.Combo
pay.Instructions
pay.Instructions
pay.Record
pay.Record