br-nfse-v1
Extensions
CNAE code
The CNAE (National Classification of Economic Activities) code for a service. List of codes from the IBGE (Brazilian Institute of Geography and Statistics):br-nfse-cnae
br-nfse-cnae
Pattern:
^\d{2}[\s\.\-\/]?\d{2}[\s\.\-\/]?\d[\s\.\-\/]?\d{2}$NBS code
The NBS (Nomenclatura Brasileira de Serviços, Intangíveis e outras Operações que produzam Variações no Patrimônio) code for a service. NBS is the Brazilian classification system for services and intangibles, established by Decreto No. 7.708/2012 and maintained by the MDIC (Ministério do Desenvolvimento, Indústria, Comércio e Serviços). Official list of codes from the MDIC:br-nfse-nbs
br-nfse-nbs
Pattern:
^\d[\.\s]?\d{4}[\.\s]?\d{2}[\.\s]?\d{2}$Fiscal Incentive
Indicates whether a party benefits from a fiscal incentive.br-nfse-fiscal-incentive
br-nfse-fiscal-incentive
| Code | Name |
|---|---|
1 | Has incentive |
2 | Does not have incentive |
ISS Liability
Indicates the ISS liability status, i.e., whether the ISS tax is due or not and why. List of codes from the national NFSe ABRASF (v2.04) model:- https://abrasf.org.br/biblioteca/arquivos-publicos/nfs-e-manual-de-orientacao-do-contribuinte-2-04/download (Section 10.2, Field B-38)
br-nfse-iss-liability
br-nfse-iss-liability
| Code | Name |
|---|---|
1 | Liable |
2 | Not subject |
3 | Exempt |
4 | Export |
5 | Immune |
6 | Suspended Judicially |
7 | Suspended Administratively |
Service Code
The service code as defined by the municipality. Typically, one of the codes listed in the Lei Complementar 116/2003, but municipalities can make their own changes. For further details on the list of possible codes, see:br-nfse-service
br-nfse-service
Opting for “Simples Nacional” regime
Indicates whether a party is opting for the “Simples Nacional” (Regime Especial Unificado de Arrecadação de Tributos e Contribuições devidos pelas Microempresas e Empresas de Pequeno Porte) tax regimebr-nfse-simples
br-nfse-simples
| Code | Name |
|---|---|
1 | Opt-in |
2 | Opt-out |
Special Tax Regime
Indicates a special tax regime that a party is subject to.br-nfse-special-regime
br-nfse-special-regime
| Code | Name |
|---|---|
1 | Municipal micro-enterprise |
2 | Estimated |
3 | Professional Society |
4 | Cooperative |
5 | Single micro-entrepreneur (MEI) |
6 | Micro-enterprise or Small Business (ME EPP) |
Operation Indicator
Indicates the operation type for the determination of the IBS and CBS taxes by the tax authorities. Maps to thecIndOp field in the NFS-e national layout.
List of possible values:
br-nfse-operation
br-nfse-operation
Pattern:
^\d{6}$Tax Status Code (CST)
Indicates the tax status of the operation for the determination of the IBS and CBS taxes by the tax authorities. Maps to theCST field in the NFS-e national layout.
List of possible values:
br-nfse-tax-status
br-nfse-tax-status
Pattern:
^\d{3}$Tax Classification Code
Indicates the tax classification code for the determination of the IBS and CBS taxes by the tax authorities. Maps to thecClassTrib field in the NFS-e national layout.
List of possible values:
br-nfse-tax-class
br-nfse-tax-class
Pattern:
^\d{6}$Validation Rules
bill.Invoice
bill.Invoice
| Field | Test | Validation Code / Message |
|---|---|---|
series |
| GOBL-BR-NFSE-V1-BILL-INVOICE-01Series is required |
code |
| GOBL-BR-NFSE-V1-BILL-INVOICE-02Code must be a positive integer |
supplier |
| GOBL-BR-NFSE-V1-BILL-INVOICE-03Supplier is required |
supplier.tax_id |
| GOBL-BR-NFSE-V1-BILL-INVOICE-04Supplier tax ID is required |
supplier.tax_id.code |
| GOBL-BR-NFSE-V1-BILL-INVOICE-05Supplier tax ID code is required |
supplier.name |
| GOBL-BR-NFSE-V1-BILL-INVOICE-06Supplier name is required |
supplier.addresses |
| GOBL-BR-NFSE-V1-BILL-INVOICE-07Supplier must have at least one address |
supplier.addresses[*] |
| GOBL-BR-NFSE-V1-BILL-INVOICE-08Supplier address must not be empty |
supplier.addresses[*].street |
| GOBL-BR-NFSE-V1-BILL-INVOICE-09Supplier address requires a street |
supplier.addresses[*].num |
| GOBL-BR-NFSE-V1-BILL-INVOICE-10Supplier address requires a number |
supplier.addresses[*].locality |
| GOBL-BR-NFSE-V1-BILL-INVOICE-11Supplier address requires a locality |
supplier.addresses[*].state |
| GOBL-BR-NFSE-V1-BILL-INVOICE-12Supplier address requires a state |
supplier.addresses[*].code |
| GOBL-BR-NFSE-V1-BILL-INVOICE-13Supplier address requires a postal code |
supplier.ext |
| GOBL-BR-NFSE-V1-BILL-INVOICE-14Supplier requires ‘br-ibge-municipality’, ‘br-nfse-simples’, and ‘br-nfse-fiscal-incentive’ extensions |
charges |
| GOBL-BR-NFSE-V1-BILL-INVOICE-15Charges are not supported by NFS-e |
discounts |
| GOBL-BR-NFSE-V1-BILL-INVOICE-16Discounts are not supported by NFS-e |
bill.Line
bill.Line
| Field | Test | Validation Code / Message |
|---|---|---|
| Line |
| GOBL-BR-NFSE-V1-BILL-LINE-01Line taxes must include the ISS category |
org.Item
org.Item
| Field | Test | Validation Code / Message |
|---|---|---|
ext |
| GOBL-BR-NFSE-V1-ORG-ITEM-01Item requires ‘br-nfse-service’ extension |
ext |
| GOBL-BR-NFSE-V1-ORG-ITEM-02Item extensions ‘br-nfse-operation’, ‘br-nfse-tax-status’, and ‘br-nfse-tax-class’ must all be present or all absent |
tax.Combo
tax.Combo
| Field | Test | Validation Code / Message |
|---|---|---|
ext |
| GOBL-BR-NFSE-V1-TAX-COMBO-01ISS tax combo requires ‘br-nfse-iss-liability’ extension |