Documentation
Issue an NF-e
Issue the NF-e with POST /v1/fiscal-invoices and type NFE: recipient, CFOPs accepted from the official table, options and the SEFAZ response.
Before you start
The NF-e (model 55, Brazil's full e-invoice) goes through the same route as the NFC-e, POST /v1/fiscal-invoices, with "type": "NFE" and the same body: the same item fields, the same payment methods and the same recipient. It uses the same fiscal credential, with the same A1 certificate, and the same headers: Authorization with the organization's API token and X-Credential-Key with the credential's API Key. The CSC is not used. What each type requires from the body is in One body for every type; the service invoice is the NFS-e.
The NF-e has its own series and numbering, set on the credential under Numeração da NF-e (NF-e numbering; series 1 to 889). Issuing an NF-e never changes the POS NFC-e sequence.
The NF-e is available in all 27 states. Each invoice is sent to the authorizer of the credential's state:
| Authorizer | States |
|---|---|
| The state's own SEFAZ | Amazonas, Bahia, Goiás, Mato Grosso, Mato Grosso do Sul, Minas Gerais, Paraná, Pernambuco, Rio Grande do Sul, São Paulo |
| SEFAZ Virtual do Rio Grande do Sul (SVRS) | Acre, Alagoas, Amapá, Ceará, Distrito Federal, Espírito Santo, Pará, Paraíba, Piauí, Rio de Janeiro, Rio Grande do Norte, Rondônia, Roraima, Santa Catarina, Sergipe, Tocantins — and the issuer without state registration in any state |
| SEFAZ Virtual do Ambiente Nacional (SVAN) | Maranhão |
Before the first invoice in production, issue one in homologation ("environment": 2) with the same credential. The homologation invoice has no fiscal value and confirms the certificate, the state registration and the numbering are right in that state.
Operations (CFOP)
The invoice's operation is the CFOP (fiscal operation code) of each item, checked against the official CFOP table. The first digit gives direction and reach: 5 outgoing inside the state, 6 outgoing to another state, 7 abroad; 1, 2 and 3 are incoming — see Incoming invoice.
Every outgoing CFOP SEFAZ accepts on an NF-e is accepted (sale, transfer, shipment for repair, demonstration, bonus, sample, rental, return, devolution, export, service with ISSQN, other outgoing…). Where the recipient is decides the first digit: 5xxx requires a recipient in the issuer's state, 6xxx one in another state and 7xxx one abroad (see Export). An invoice may have items with different CFOPs. Before numbering, the API refuses only what SEFAZ itself would refuse — so a predictable error does not use up a number of the sequence — and the message cites SEFAZ's rejection code:
| Case | SEFAZ rejection |
|---|---|
incoming CFOP (1xxx, 2xxx, 3xxx) on an outgoing invoice | 518 — for an incoming invoice, send options.operationType: 0 |
| outgoing CFOP on an incoming invoice | 519 |
| CFOP the official table marks as "not used on NF-e" (transport services, on a CT-e; communication, on an NFCom) | 770 |
5xxx with a recipient in another state or abroad | 733 |
6xxx with a recipient in the issuer's state / abroad | 523 / 732 |
7xxx with a recipient in Brazil | 731 |
| CFOP outside the official table or without 4 digits | it does not exist |
With nothing sent, each item's tax is the default of the credential's tax regime, with PIS/COFINS not taxed. For operations with their own tax treatment (tax substitution, exemption, suspension, non-taxed shipment), choose the ICMS and PIS/COFINS codes on the item — see Item taxes — and check with your accountant before issuing.
Issuer's tax regime
The regime (CRT, the tax regime code) is the credential's, under Notas fiscais → Credenciais (Fiscal invoices → Credentials). Since Nov 16, 2026 SEFAZ checks the invoice's CRT against the CNPJ's regime at Receita Federal (the federal revenue service) and rejects it when they differ (rejection 180): register the company's real regime.
| Regime (CRT) | ICMS of each item | What changes |
|---|---|---|
Simples Nacional (1) | CSOSN 102, not shown | — |
Simples Nacional over the sublimit (2) | CST 00 at 18% | ICMS is paid outside Simples and shown like the regular regime |
Regular regime (3) | CST 00 at 18% | — |
MEI — individual micro-entrepreneur (4) | CSOSN 102 on a sale; CSOSN 900 on the other operations | only the CFOPs SEFAZ accepts from a MEI (rejection 337): 5102 and 6102 (sale), and 5202, 6202, 5904, 6904, 5501, 5502, 5504, 5505, 5551, 5933, 6501, 6502, 6504, 6505, 6551, 6933. Another CFOP answers 400 |
IBS and CBS (the tax reform). The IBSCBS group goes on every item that has a classification — the item's own or the invoice's (options). Without a classification, the invoice goes out without the group. The credential stores no IBS/CBS. See IBS and CBS.
Nature of the operation
options.natureOperation is free text, up to 60 characters. Without it, the official description of the first item's CFOP is used, upper case without accents (5915 → REMESSA DE MERCADORIA OU BEM PARA CONSERTO OU REPARO); 5102/6102, 5152/6152 and 5908/6908 keep VENDA DE MERCADORIA, TRANSFERENCIA DE MERCADORIA and REMESSA PARA LOCACAO.
Returns and referenced invoice
A devolution CFOP (e.g. 5202, 6202, 5411) makes the invoice a return (finNFe 4) and requires the referenced invoice: the access key (44 digits) of the returned invoice in options.referencedDocuments. A return invoice does not mix other CFOPs.
A single referenced invoice on a return. Since Nov 16, 2026 SEFAZ rejects a return NF-e that references more than one invoice (rejection 255). The API answers 400 before sending: issue one return NF-e per original invoice.
On other returns (5909, 5916, 5913…) the reference is optional and may have more than one key. From Dec 14, 2026 on, an outgoing NF-e that is not a return cannot reference an NFC-e or a CF-e SAT (rejection 679); the API refuses it with 400 from that date.
Issue the invoice
curl -X POST https://api.intopays.com/v1/fiscal-invoices \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "X-Credential-Key: $INTOPAYS_FISCAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "NFE",
"environment": 2,
"referenceCode": "order-2087",
"recipient": {
"document": "11222333000181",
"name": "Restaurante Exemplo LTDA",
"stateRegistration": "123456789",
"street": "Rua das Flores",
"streetNumber": "100",
"neighborhood": "Centro",
"cityCode": "2927408",
"cityName": "Salvador",
"uf": "BA",
"zipCode": "40010000",
"email": "[email protected]"
},
"items": [
{
"code": "OIL-20L",
"description": "Óleo de soja 20 L",
"ncm": "15079011",
"cfop": "5102",
"unit": "UN",
"quantity": 4,
"unitPrice": 180.00,
"totalPrice": 720.00
}
],
"payments": [
{ "method": "PIX", "amount": 720.00 }
],
"options": {
"additionalInfo": "Order 2087",
"authorizedDocuments": ["12345678000195"],
"sendEmail": true
}
}'
With a Regime Normal (CRT 3) credential, in homologation add options.ibsCbsCst and options.ibsCbsClassCode (see IBS and CBS); without them the API answers 400, because SEFAZ already rejects that invoice without the group (rejection 1115).
| Field | Required | Values |
|---|---|---|
type | yes | "NFE" (upper or lower case) |
environment | yes | 1 production, 2 homologation (test, no fiscal value). No default |
recipient | yes | recipient with full address, fields in the table below; a foreign one, in Export |
items | yes | the same item fields as the NFC-e; cfop required on all. Each item's ICMS, CEST, origin, PIS/COFINS and approximate taxes: Item taxes; discount, freight, insurance, taxable unit, batches: Item values and product data; the whole ICMS group: Complete ICMS; DIFAL and Selective Tax; a service item (issqn): Service with ISSQN |
payments | no | the same methods as the NFC-e; without payments (or NONE) the invoice goes "no payment" (tPag 90) |
referenceCode | no | the order's identifier in your system |
options | no | NF-e options, in the table below |
Options
| Field | Values |
|---|---|
natureOperation | nature of the operation, up to 60 characters; default: the CFOP's official description |
referencedDocuments | list of access keys (44 characters; digits only, or with the letters of the issuer's alphanumeric CNPJ) of the referenced invoices; on a return it is required and takes one key; otherwise, up to 500 |
freightMode | a number: 9 no freight (default), 0 paid by the issuer, 1 paid by the recipient, 2 third party, 3 the sender's own transport, 4 the recipient's own transport |
additionalInfo | text of the additional-data field of the DANFE (the printed invoice), up to 4900 characters; line breaks become one space |
consumerFinal | true or false: sale to the final consumer; default true on sale CFOPs (on an export too — send false if that is the case) and false on the others |
presential | true or false: in-person operation; default false |
authorizedDocuments | list of up to 10 CNPJs or CPFs (texts) allowed to download the XML, such as your accountant's (Bahia requires it); the check digit is verified |
ibsCbsCst, ibsCbsClassCode, simplesActivityCode, simplesIbsRate, simplesCbsRate | this invoice's IBS/CBS — see IBS and CBS |
export | only on an export (recipient abroad): { ufOfDeparture, exitPlace, dispatchPlace? } — see Export |
sendEmail | true sends the authorized invoice to recipient.email — see E-mail the invoice; default false |
operationType, purpose, presence, transport, billing, intermediary, pickup, delivery, purchase, additional, references | the note's groups with the official names — see Complete invoice |
Recipient
| Field | Required | Values |
|---|---|---|
document | yes (in Brazil) | CNPJ with 14 characters (numeric or alphanumeric, such as 12.ABC.345/01DE-35) or CPF (individual taxpayer ID) with 11 digits; the check digit is verified |
name | yes | name or legal name, at least 2 characters (the invoice carries the first 60) |
street, streetNumber, neighborhood | yes | street (2 to 60 characters), number (1 to 60; without a number, send S/N) and neighborhood (2 to 60) |
cityCode | yes | the city's IBGE code (7 digits), which must belong to uf |
cityName, uf, zipCode | yes | city name (2 to 60 characters), 2-letter state code and ZIP code (CEP, 8 digits) |
stateRegistration | no | state registration, 2 to 14 digits; send it when the recipient is an ICMS taxpayer |
ieExempt | no | true when the recipient is exempt from state registration |
complement | no | address complement, up to 60 characters |
email | no | recipient e-mail: goes in the XML and is the address the invoice is e-mailed to |
The recipient and the options are checked before the invoice takes a number: a missing or malformed field answers 400 and nothing is numbered. In the dashboard, the CEP fills in the street, neighborhood and city (with the IBGE code) by itself.
Export
An export NF-e has items with a 7xxx CFOP (7101, 7102…) and the recipient abroad. The invoice goes out as an operation with a foreign country (idDest 3) with the shipment group.
recipient field | Required | Values |
|---|---|---|
countryCode | yes | the country code in the Brazilian Central Bank table, 1 to 4 digits (2496 United States, 0639 Argentina); never 1058 (Brazil). It is what marks the recipient as foreign |
countryName | no | the country name, up to 60 characters |
foreignId | no | the customer's document in their country, 5 to 20 letters, digits or :.+-/(); may be blank |
name | yes | name, at least 2 characters |
street, streetNumber | yes | street and number, up to 60 characters each |
neighborhood, complement, cityName | no | neighborhood (2 to 60 characters; without it the invoice says EXTERIOR), complement and the foreign city (goes in the complement), up to 60 characters |
email | no | the recipient's e-mail |
A foreign recipient takes no document, stateRegistration, ieExempt, cityCode, uf or zipCode: the invoice goes out with city 9999999, EXTERIOR and state EX.
options.export field | Required | Values |
|---|---|---|
ufOfDeparture | yes | the Brazilian state of shipment or of exit from the country (SP) |
exitPlace | yes | the place of shipment: port, airport or border point, up to 60 characters |
dispatchPlace | no | the customs facility of the dispatch, up to 60 characters |
options.export is required on an export (without it SEFAZ rejects with 355) and only allowed there (356). Without an ICMS code on the item, the export goes out with what SEFAZ accepts with a 7xxx CFOP (rule of rejection 527): CSOSN 300 under Simples and CST 41 under the regular regime. Drawback and indirect export (detExport) are not built yet.
curl -X POST https://api.intopays.com/v1/fiscal-invoices \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "X-Credential-Key: $INTOPAYS_FISCAL_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "NFE",
"environment": 2,
"recipient": { "name": "Global Imports LLC", "countryCode": "2496", "countryName": "ESTADOS UNIDOS",
"foreignId": "EIN12-3456789", "street": "5th Avenue", "streetNumber": "350", "cityName": "New York" },
"items": [{ "code": "CAF-01", "description": "Café torrado 1 kg", "ncm": "09012100", "cfop": "7101",
"unit": "KG", "quantity": 100, "unitPrice": 45.00, "totalPrice": 4500.00 }],
"payments": [{ "method": "BANK_TRANSFER", "amount": 4500.00 }],
"options": { "export": { "ufOfDeparture": "SP", "exitPlace": "Porto de Santos" } }
}'
With a Regime Normal (CRT 3) credential, in homologation add options.ibsCbsCst and options.ibsCbsClassCode (see IBS and CBS); without them the API answers 400, because SEFAZ already rejects that invoice without the group (rejection 1115).
Service with ISSQN (conjugated invoice)
A service item taxed by the municipality (CFOP 5933 or 6933) carries ISS (the municipal service tax) instead of ICMS. On the NF-e the API does not require issqn on these CFOPs nor refuse it on others: the combination is up to the issuer (SEFAZ checks it). Send items[].issqn; a service item may use NCM 00.
items[].issqn field | Required | Values |
|---|---|---|
serviceListCode | yes | the item of the LC 116/2003 service list, as the text "NN.NN" ("14.01"; "1401" is also accepted) |
rate | yes | the municipality's ISS rate in %, a number from 0 to 100 with up to 4 decimals |
cityCode | no | the IBGE code of the municipality where the tax is due, 7 digits as text; default: the issuer's |
requirement | no | whether it is due: 1 due (default), 2 not levied, 3 exempt, 4 export, 5 immunity, 6 suspended by a court decision, 7 suspended by an administrative process |
incentive | no | true when there is a tax incentive; default false |
serviceCode | no | the service code in the municipality, up to 20 characters |
The ISS is the item value × the rate, rounded to the cent. A service item takes no ICMS code (icmsCsosn, icmsCst, icmsOrigin, icmsRate): the invoice accepts one or the other. vProd adds goods only; services go in the ISSQN totals (vServ), and the invoice total (vNF) adds both. SEFAZ may require the issuer's municipal registration on this invoice (rejection 530): register it on the fiscal credential.
Item taxes (ICMS, PIS/COFINS)
With no field, each item goes out with the default of the credential's tax regime, which fits an ordinary sale. When the operation is something else — a non-taxed shipment, a transfer between stores, goods under tax substitution — choose the code on the item. You classify, with your accountant: Intopays checks the format and writes the XML group.
| Item field | Required | Values |
|---|---|---|
icmsCsosn | no | the item's ICMS for a Simples Nacional issuer (CRT 1): "102" (default), "103", "300", "400" or "500" (ICMS already collected by tax substitution) |
icmsCst | no | the item's ICMS for a Simples over the revenue sublimit or regular regime issuer (CRT 2 and 3): "00" (default, taxed at 18%), "40" (exempt), "41" (not taxed), "50" (suspended) or "60" (ICMS already collected by tax substitution) |
cest | no | CEST, the code of the goods under tax substitution: 7 digits as text ("0301100"). SEFAZ requires it on an item under tax substitution |
icmsOrigin | no | origin of the goods, "0" to "8" as text (default "0", domestic; "1" and "2" foreign). An issuer without a state registration does not send it |
icmsRate | no | the item's ICMS rate in %, a number from 0 to 100 with up to 2 decimals (default 18). Only on a taxed item (CST 00) of a CRT 2 or 3 issuer; otherwise it answers 400 |
icmsBenefitCode | no | cBenef, the tax benefit code from your state's table: 8 or 10 characters (such as PR800000), or "SEM CBENEF". Some states require it for CST 40, 41 and 50 |
pisCst, cofinsCst | no | the PIS and COFINS CST without a rate: "04" to "09" (default "07") or "49" to "99" |
approximateTaxes | no | the item's approximate taxes in reais (Lei 12.741/2012) — see Approximate taxes |
The codes are text ("400", never 400). An empty field ("" or null) is the same as not sending it.
{ "code": "SKU-001", "description": "Cafeteira para demonstração", "ncm": "85167100", "cfop": "5912", "unit": "UN",
"quantity": 1, "unitPrice": 1500.00, "totalPrice": 1500.00,
"icmsCsosn": "400", "pisCst": "49", "cofinsCst": "49" }
| Situation | What happens |
|---|---|
A code that is not of the credential's regime (icmsCst under Simples, icmsCsosn under the regular regime) | 400 before the invoice takes a number — SEFAZ would reject it (590 / 591) |
| MEI | the CSOSN is set by the CFOP (102 on a sale, 900 on the other operations): do not send icmsCsosn |
| Issuer without state registration | the invoice carries no ICMS: icmsCsosn / icmsCst answer 400. pisCst, cofinsCst, icmsBenefitCode and approximateTaxes apply |
Codes that need a base, rate or amounts of their own (ICMS 10, 20, 51, 70, 90, CSOSN 101, 201, 202, 900…) | through the shortcuts, 400 — send the whole group in icms |
PIS/COFINS 01 to 03 (with a rate) | not accepted: in 2027 the CBS replaces PIS and COFINS |
CST 00 | the rate is icmsRate or, without it, 18% over the item value |
Export CFOP (7xxx) without a code | CSOSN 300 under Simples and CST 41 under the regular regime — the ones SEFAZ accepts on an export |
Service item (issqn) | takes no ICMS: ISS goes in its place — see Service with ISSQN |
In the invoice total, the ICMS base and amount (vBC, vICMS) add up only the CST 00 items (each one's amount at its own rate). Items with PIS/COFINS 49 to 99 go out with base, rate and amount zeroed.
Complete ICMS (icms)
For what the shortcuts do not cover — reduced base, tax substitution (ST), FCP, tax relief (desoneração), deferral, ICMS already withheld, single-phase (monofásico), the Simples credit, sharing between states —, send the whole ICMS group in items[].icms, using the official tag names of the NF-e 4.00 layout (the same as in the official taxpayer guide, the MOC). The group comes from the CST (regular regime) or the CSOSN (Simples):
{ "code": "REFRI-2L", "description": "Soft drink 2 L", "ncm": "22021000", "cfop": "5401", "unit": "UN",
"quantity": 10, "unitPrice": 10.00, "totalPrice": 100.00,
"icms": { "CST": "10", "modBC": "3", "vBC": 100.00, "pICMS": 18,
"modBCST": "4", "pMVAST": 40, "vBCST": 140.00, "pICMSST": 18, "vICMSST": 7.20 } }
| Group | Codes |
|---|---|
ICMS00, ICMS02, ICMS10, ICMS15, ICMS20, ICMS30, ICMS40 (40, 41, 50), ICMS51, ICMS53, ICMS60, ICMS61, ICMS70, ICMS90 | CST |
ICMSSN101, ICMSSN102 (102, 103, 300, 400), ICMSSN201, ICMSSN202 (202, 203), ICMSSN500, ICMSSN900 | CSOSN |
ICMSPart (sharing, CST 10 and 90) and ICMSST (pass-through of withheld ICMS-ST, CST 41 and 60) | "group": "ICMSPart" or "group": "ICMSST" + CST |
- Tag order, what is required and the accepted values come from the official XSD: a missing required field, a value outside the list (
modBC7) or a field the group does not have answer400naming the field (items[0].icms.pRedBC: obrigatório no grupo ICMS20 do leiaute.). An optional block (FCP, relief) goes in when you send one of its fields — and then whole. - Amounts in reais and percentages as numbers (
18,40.1234); codes as text ("10","3"). A missingorig= the item'sicmsOrigin, else"0". - A missing
vICMSorvFCPis computed (base × rate, rounded to the cent). Everything else — ST, relief, deferral, withheld — comes ready: the math depends on your state and your accountant. - Do not mix it with the shortcuts:
icmstogether withicmsCst,icmsCsosnoricmsRateanswers400. The regime rules still hold: aCSTin the Simples (rejection 590), aCSOSNin the regular regime (591) and ICMS for an issuer without state registration (161) are refused before the invoice takes a number; a MEI uses the CFOP's CSOSN.
The invoice total sums the items' groups: vBC, vICMS, vICMSDeson, vFCP, vBCST, vST, vFCPST, vFCPSTRet and, for single-phase, qBCMono/vICMSMono (and the withheld ones). vNF follows rule W16-10: products − discounts + freight + insurance + other expenses + vST + vFCPST − the vICMSDeson of items with indDeduzDeson "1". The IBS/CBS base leaves out the item's vICMS, vFCP and vICMSMono.
Approximate taxes (Lei 12.741)
Lei 12.741/2012 requires telling the consumer the approximate amount of taxes. Compute each item's amount in your application (the IBPT table gives the percentage per NCM) and send it in items[].approximateTaxes, in reais, with up to 2 decimals, from 0 up to the item value. The invoice carries the amount on each item (vTotTrib) and the sum in the total; the NF-e PDF shows "Valor aproximado dos tributos" (approximate tax amount) in the additional information. Without the field the invoice goes out without it — it is required on a sale to the final consumer; shipments and transfers do not need it.
DIFAL
On an interstate sale to a final consumer who is not a taxpayer (CFOP 6xxx, recipient without state registration), the destination state receives the rate difference (DIFAL). Send the ICMSUFDest group in items[].difal, with the official names:
"difal": { "vBCUFDest": 100.00, "pICMSUFDest": 18, "pICMSInter": 12, "pICMSInterPart": 100,
"vBCFCPUFDest": 100.00, "pFCPUFDest": 2 }
| Field | Required | Values |
|---|---|---|
vBCUFDest | yes | calculation base in the destination state |
pICMSUFDest | yes | the destination state's internal rate, in % |
pICMSInter | yes | interstate rate: 4, 7 or 12 |
pICMSInterPart | yes | share for the destination: 100 (since 2019 — any other value answers 400, rejection 699) |
vBCFCPUFDest, pFCPUFDest | no | base and rate of the destination state's FCP |
vICMSUFDest, vICMSUFRemet, vFCPUFDest | no | computed when missing: base × (destination − interstate) × share; the sender keeps the rest (zero at 100%); FCP = FCP base × rate |
The total carries vFCPUFDest, vICMSUFDest and vICMSUFRemet when an item has DIFAL; DIFAL does not change vNF and leaves the IBS/CBS base. When the invoice requires the group (the conditions and exceptions of rule NA01-20 — Simples and MEI, exempt or untaxed items, returns, among others) SEFAZ decides: without it, it rejects with 694.
Selective Tax (Imposto Seletivo)
The Selective Tax applies from February 2, 2027 (MP 1.399/2026) to vehicles, aircraft, vessels, tobacco products, alcoholic drinks and sugary drinks. Send the IS group in items[].selectiveTax, with the official names (NT 2025.002):
"selectiveTax": { "CSTIS": "000", "cClassTribIS": "000001", "vBCIS": 100.00, "pIS": 2.6 }
| Field | Required | Values |
|---|---|---|
CSTIS | yes | the IS CST, 3 digits as text |
cClassTribIS | yes | the IS tax classification, 6 digits as text |
vBCIS, pIS, vIS | together | base, rate in % and amount. A missing vIS = base × rate |
adRemIS | no | specific rate per unit; with it, send uTrib, qTrib and vIS (computed by you) too |
Classification and rates are yours, with your accountant. The invoice carries ISTot with the sum when an item has IS. The IS is charged "on top": it goes into the reform's grand total (vNFTot, not required by SEFAZ yet), not into vNF; it enters the IBS/CBS base.
Issuer data that comes from the credential
Company name, address, state registration, regime, phone and municipal registration come from the fiscal credential: your application does not send them. Phone and municipal registration are optional on the NF-e — an empty field on the credential means the tag is left out of the XML (enderEmit/fone, emit/IM).
Item values and product data
Discount, freight, insurance and other expenses are per item on the NF-e — the invoice total sums the items. Every field is optional; without them, the item goes out as always.
{ "code": "CX-24", "description": "Mineral water 500 ml", "ncm": "22011000", "cfop": "5102",
"unit": "CX", "quantity": 2, "unitPrice": 50.00, "totalPrice": 100.00,
"discount": 10.00, "freight": 7.50, "insurance": 1.25, "otherExpenses": 2.00,
"taxUnit": "UN", "taxQuantity": 48,
"purchaseOrder": "PC-2026-118", "purchaseOrderItem": "3",
"batches": [{ "number": "L2611", "quantity": 2, "manufacturedAt": "2026-11-01", "expiresAt": "2027-11-01" }],
"additionalInfo": "12-month warranty" }
| Item field | Values |
|---|---|
discount, freight, insurance, otherExpenses | the item's discount, freight, insurance and other expenses, in reais (up to 2 decimals). 0 = field left out. A discount above the item's value answers 400 (rejection 483) |
taxUnit, taxQuantity, taxUnitPrice | the taxable unit, when it differs from the commercial one (sold by the box, taxed by the unit): unit (up to 6), quantity (up to 4 decimals) and price (up to 10 decimals). Without taxUnitPrice, it is the item's value ÷ taxQuantity. On a normal invoice price × quantity must equal the item's value (rejection 630) |
customBarcode, customTaxBarcode | a barcode that is not a GTIN (up to 30 characters) |
purchaseOrder, purchaseOrderItem | the customer's purchase order number (up to 15) and the item in it (up to 6 digits) |
fciNumber | the FCI number (import content), as XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX |
batches | batches (up to 500): number (up to 20), quantity (up to 3 decimals), manufacturedAt and expiresAt (YYYY-MM-DD), optional aggregationCode |
additionalInfo | additional item information (up to 500 characters), printed under the description |
includeInTotal | false = the item's value does not go into the invoice total (indTot 0); on the NFC-e it answers 400 (rejection 774) |
unitPrice takes up to 10 decimals (12.345 goes into the XML whole). The invoice total sums the items' freight, insurance, other expenses and discounts; vNF is products − discounts + freight + insurance + other expenses (+ ST − relieved ICMS, see Complete ICMS), and the amount recorded on the invoice is the same. Each item's IBS/CBS base is value + freight + insurance + other − discount, without the taxes.
Complete invoice
Besides the items, the NF-e takes the layout's groups whole in options, with the official tag names (those of the official taxpayer guide, the MOC). Order, required fields and accepted values come from the official XSD: a missing field or a value outside the list answers 400 naming the field (options.transport.vol[0].pesoB inválido…).
options field | Group | What it carries |
|---|---|---|
transport | transp | modFrete, carrier (transporta), ICMS withheld on transport (retTransp), vehicle (veicTransp) and trailers, or vagao / balsa, volumes (vol, with lacres). Without it, the invoice carries only the freightMode |
billing | cobr | invoice (fat: nFat, vOrig, vDesc, vLiq) and up to 120 installments (dup: nDup, dVenc, vDup) |
intermediary | infIntermed | the marketplace or platform of the sale: CNPJ and idCadIntTran (the store's name there) |
pickup, delivery | retirada, entrega | the pickup or delivery place when it is not the issuer's or the recipient's address (CNPJ or CPF, xLgr, nro, xBairro, cMun, xMun, UF…) |
purchase | compra | commitment note (xNEmp), order (xPed) and contract (xCont) |
additional | infAdic | information for the tax authority (infAdFisco), taxpayer observations (obsCont, with the xCampo attribute) and tax-authority observations (obsFisco), referenced processes (procRef). The complementary information stays in additionalInfo |
references | NFref | other referenced documents: refNFe, refNFeSig, refNF (model 1/1A invoice), refNFP (producer invoice), refCTe, refECF (fiscal coupon) — together with the keys in referencedDocuments |
"options": {
"presence": 2,
"intermediary": { "CNPJ": "11222333000181", "idCadIntTran": "loja-exemplo" },
"transport": {
"modFrete": "0",
"transporta": { "CNPJ": "11222333000181", "xNome": "Transportes Exemplo LTDA", "UF": "BA" },
"vol": [{ "qVol": "2", "esp": "CAIXA", "pesoB": 11.25 }]
},
"billing": { "fat": { "nFat": "FAT-700", "vOrig": 100, "vLiq": 100 },
"dup": [{ "nDup": "001", "dVenc": "2026-12-26", "vDup": 50 }, { "nDup": "002", "dVenc": "2027-01-26", "vDup": 50 }] },
"additional": { "obsCont": [{ "xCampo": "Pedido", "xTexto": "77" }] }
}
Amounts and weights as numbers; codes (modFrete, indProc, mod) as text. freightMode and transport.modFrete sent together must match.
Presence and intermediary
options.presence is the invoice's indPres: 0 not applicable, 1 in person, 2 internet, 3 call center, 5 in person outside the establishment, 9 other (4, home delivery, is NFC-e only — rejection 794). Without it, presential decides (1 or 9). Presence 5 requires the referenced invoice (rejection 864). The intermediary indicator (indIntermed) only goes with presences 2, 3 and 9: 1 with intermediary, 0 without — SEFAZ requires it there (434) and forbids it elsewhere (435). intermediary with another presence answers 400.
Purpose: complementary and adjustment
options.purpose is the finNFe: 1 normal, 2 complementary, 3 adjustment, 4 return. Without it, the purpose comes from the CFOP (return → 4, the rest → 1).
| Purpose | Rules the API checks before sending |
|---|---|
2 complementary | requires one referenced invoice (NF-e, NFC-e or model 1 invoice) — rejections 254 and 255. Accepts return CFOPs |
3 adjustment | does not accept return CFOPs (rejection 328) |
4 return | return CFOPs only (327) and the referenced invoice (321) — not required for CFOPs 1201, 1202, 1410, 1411, 5921 and 6921 |
Incoming invoice
options.operationType: 0 issues an incoming NF-e (tpNF 0) — a purchase from someone who does not issue invoices (a farmer, an individual), a return the customer brings back, an import. Items use incoming CFOPs (1xxx in-state, 2xxx from another state, 3xxx from abroad); an outgoing CFOP answers 400 (rejection 519). The recipient is the sender (who sells or returns), with the same fields. The NFC-e has no incoming invoice (rejection 706).
Import
On an incoming import (CFOP 3xxx, sender abroad with recipient.countryCode), each item carries the Import Declaration and the Import Tax with the official names:
{ "code": "IMP-1", "description": "Imported machine", "ncm": "84798999", "cfop": "3102", "unit": "UN",
"quantity": 1, "unitPrice": 1000.00, "totalPrice": 1000.00,
"importDeclarations": [{ "nDI": "2612345678", "dDI": "2026-11-20", "xLocDesemb": "Porto de Santos", "UFDesemb": "SP",
"dDesemb": "2026-11-22", "tpViaTransp": "1", "vAFRMM": 25.00, "tpIntermedio": "1", "cExportador": "EXP001",
"adi": [{ "nAdicao": "1", "nSeqAdic": "1", "cFabricante": "FAB01" }] }],
"importTax": { "vBC": 1000.00, "vDespAdu": 50.00, "vII": 100.00, "vIOF": 0 } }
| Item field | Group | What it carries |
|---|---|---|
importDeclarations | DI (up to 100) | number, date and place of clearance, transport mode, intermediation, exporter and the additions (adi) |
importTax | II | base, customs expenses, II and IOF. vII goes into the invoice total (vNF) and the IBS/CBS base |
exportDetails | detExport (up to 500) | on exports: drawback (nDraw) and indirect export (exportInd: nRE, chNFe, qExport) |
The export group (options.export) is only for outgoing invoices abroad: on an incoming import SEFAZ refuses it (356).
SVC contingency
When your state's SEFAZ is down, the NF-e can be authorized by the SEFAZ Virtual de Contingência (SVC). Send options.contingency with the reason:
"options": { "contingency": { "reason": "SEFAZ do estado fora do ar desde as 10h" } }
The invoice goes to your state's SVC, from the official table of the NF-e portal: SVC-AN (tpEmis 6) or SVC-RS (tpEmis 7). The emission type goes into the access key and the XML, with the time contingency started (dhCont) and the reason (xJust, 15 to 256 characters). The query, cancellation and correction letter of that invoice go to the same SVC. Numbering is the usual one.
- Use it only while SEFAZ is down — the SVC only accepts invoices while it is switched on for your state (otherwise it refuses).
- The NFC-e is not authorized by the SVC (rejection 783): on an NFC-e,
options.contingencyis the offline contingency.
IBS and CBS (the tax reform)
IBS and CBS are the taxes of the Brazilian consumption tax reform (Lei Complementar 214/2025). On the NF-e and the NFC-e they go in their own group on each item (IBSCBS) and in the invoice totals (IBSCBSTot). You classify, with your accountant: Intopays provides the fields, checks the format and writes the XML — it never picks the classification for you.
The classification, the Simples activity and the Simples rates come on each issue request, never from the fiscal credential: they change (a company may have two business lines taxed differently; the effective Simples rate changes with revenue). Where each item's classification comes from, in this order:
- the item (
items[].ibsCbsCst+items[].ibsCbsClassCode) — the exception; - the invoice (
options.ibsCbsCst+options.ibsCbsClassCode) — applies to every item that brings none of its own, so you do not repeat the same classification on 200 items; - nothing: the item goes out without the group, as it always did. Only an issuer without state registration gets the default of the regulation,
410/410999.
Invoice fields (options)
| Field | Required | Values |
|---|---|---|
options.ibsCbsCst | no | default IBS/CBS CST of the items, 3 digits. Accepted: 000 (full taxation), 200 (reduced rate), 400 (exemption), 410 (immunity and non-incidence) |
options.ibsCbsClassCode | no | default cClassTrib of the items, 6 digits, from the official table. Always together with options.ibsCbsCst |
options.simplesActivityCode | no | Simples Nacional only: default activity code of the items (cAtivSN) — 01 resale or sale of what the company makes; 02 other goods, no ICMS; 03 and 04 Manaus Free Trade Zone; 90 non-taxable |
options.simplesIbsRate, options.simplesCbsRate | no | Simples Nacional only: the effective IBS and CBS rates under Simples, in %, numbers from 0 to 100 with up to 4 decimals (0.05, 0.35). They change with revenue: send the current ones on each invoice. Without them, the invoice carries no Simples amounts |
The IBS/CBS assessment regime (tpRegimeIBSCBS) does not come on the request: it is a fixed fact about the company, like the tax regime, and lives on the fiscal credential. options.ibsCbsRegime is ignored, like any field options does not know.
Item fields
| Field | Required | Values |
|---|---|---|
ibsCbsCst | no | this item's IBS/CBS CST, 3 digits, when it differs from the invoice's |
ibsCbsClassCode | no | this item's cClassTrib, 6 digits. Always together with ibsCbsCst |
simplesActivityCode | no | Simples Nacional only: this item's activity code; default: options.simplesActivityCode |
{
"type": "NFE",
"environment": 1,
"items": [
{ "code": "1", "description": "Camiseta", "ncm": "61091000", "cfop": "5102", "unit": "UN", "quantity": 2, "unitPrice": 50, "totalPrice": 100 },
{ "code": "2", "description": "Livro", "ncm": "49019900", "cfop": "5102", "unit": "UN", "quantity": 1, "unitPrice": 40, "totalPrice": 40, "ibsCbsCst": "410", "ibsCbsClassCode": "410999" }
],
"options": { "ibsCbsCst": "000", "ibsCbsClassCode": "000001" }
}
The first item takes the invoice's classification (000 / 000001); the second, its own. The example shows only the IBS/CBS fields: the recipient, required on the NF-e, is the one in Issue the invoice.
Who has to state it
| Credential's regime | NF-e and NFC-e |
|---|---|
MEI (4) | never: a MEI does not report IBS/CBS, and whatever you send is ignored |
Simples Nacional (1, 2) | optional until Feb 28, 2027; a legal obligation from Mar 1, 2027. In production SEFAZ only accepts the Simples fields from Dec 14, 2026 — before that the invoice goes out without the group, even with the fields sent |
Regular regime (3) | a legal obligation since Aug 3, 2026. In homologation SEFAZ already rejects an invoice without the group (rejection 1115), and Intopays answers 400 before sending; in production SEFAZ does not reject it yet |
| Without state registration | always (NF-e only): with nothing stated, 410 / 410999 applies |
In the dashboard, the Emitir nota fiscal (Issue invoice) page shows the IBS e CBS card only to whoever needs it, and remembers in your browser the last values used with each credential.
What the invoice carries, per regime
| Regime (CRT) | What the invoice carries | Since when |
|---|---|---|
Regular regime (3) | CST and cClassTrib; for CST 000 and 200, the tax base, the rates and the amounts of the state IBS, the municipal IBS and the CBS | a legal obligation since Aug 3, 2026; SEFAZ does not yet reject an invoice without the group in production, and already rejects it in homologation (rejection 1115) |
Simples Nacional (1) | CST, cClassTrib, the item's activity code and, when the effective rates are sent in options, the Simples IBS and CBS | a legal obligation on Mar 1, 2027; in production Intopays sends it from Dec 14, 2026 (before that SEFAZ does not accept those fields) |
Simples above the sublimit (2) | like the regular regime for the IBS (with the CBS zeroed) plus the Simples CBS | same |
MEI (4) | nothing: a MEI does not report IBS/CBS | — |
Amounts. The tax base is the item amount minus the ICMS shown on it. In 2026 the rates are 0.1% (state IBS), 0% (municipal IBS) and 0.9% (CBS); in 2027, 0.05% + 0.05% of IBS and the CBS rate the law sets. For CST 200, the reduction is the one in the official table for the cClassTrib sent (for example 200047, bars and restaurants: 40%). Under Simples, the amounts use the effective rates you send in options. The invoice total does not change: in 2026 IBS and CBS are not added to the amount due.
2027. The 2027 CBS rate has not been published yet. Until it is, a regular-regime invoice whose CST requires amounts goes out without the group in production (as today) — Intopays does not make up a rate.
Returns. On a return NF-e (devolução), the group must repeat the one of the returned invoice's item: send ibsCbsCst and ibsCbsClassCode on each item. In homologation, the return of an invoice issued before 2027 (by the key in options.referencedDocuments) is not refused for leaving without the group.
What is not issued yet. A CST that requires other groups — single-phase (620), deferral (510, 515), suspension (550), fixed rate (220, 221), base reduction or exclusion (222, 830), credit transfer and adjustments (800, 810, 811) — answers 400. The Selective Tax (Imposto Seletivo), presumed credit and the reform's events are not sent. Intopays does not check whether the cClassTrib exists or matches the CST: SEFAZ does (rejections 1023, 1024 and 1025).
Without state registration
The credential's state registration (IE) is optional on the NF-e. Without an IE, the issuer is an IBS/CBS-only taxpayer (NT 2026.007) and the invoice changes like this:
| What | How it goes |
|---|---|
| Authorizer | SVRS, whatever the state — issue, consultation, sync and cancellation |
<emit> | without the <IE> tag ("ISENTO" is refused by SEFAZ) |
| Items | without the ICMS group and with the IBSCBS group: the item's, the invoice's (options) or, with neither, CST 410 and cClassTrib 410999 |
| Total | ICMS zeroed and the IBSCBSTot group with the sum of the items (zeroed for CST 410) |
The regulation requires the IBSCBS group; CST 410 and classification 410999 are the default when neither the item nor the invoice says otherwise. For another classification, send options.ibsCbsCst and options.ibsCbsClassCode, or ibsCbsCst (3 digits) and ibsCbsClassCode (6 digits) per item — check with your accountant; the rules are those of IBS and CBS. The NFC-e requires an IE.
Cancellation without an IE. The cancellation also goes to the SVRS. For an issuer from a state the SVRS does not serve in normal issuance (the ones with their own SEFAZ — AM, BA, GO, MG, MS, MT, PE, PR, RS, SP — and MA), the SVRS still refuses the cancellation event: we checked in the test environment (homologação) on 2026-11-25, with an issuer from Goiás, and it answered rejection 584. The API returns 400 with Cancelamento rejeitado pela SEFAZ: 584 - … — A nota continua autorizada… and nothing changes on the invoice. It depends on SEFAZ; until then, check the data before issuing in production. For issuers from the states the SVRS serves the cancellation follows the general rule (not yet checked with a real invoice).
CFOPs allowed without an IE. An IBS/CBS-only taxpayer may only use the CFOPs flagged for it in the official table (rejection 159): fixed assets and consumables (5551 to 5557, 6551 to 6557), free lease and rental (5908, 5909), demonstration, exhibition, repair (5912 to 5916) and return of containers (5921), with their 6xxx equivalents. The sale of goods (5102, 6102) is not on the list: whoever sells goods is an ICMS taxpayer and needs the state registration on the credential. The restriction does not apply to a return NF-e. Another CFOP answers 400 with O CFOP … não pode ser usado por emitente sem inscrição estadual….
Response
The API answers 201 with the invoice and SEFAZ's reply, in the same format as the NFC-e, with type set to NFE and the operation data:
{
"id": "0193a8f9-2b7d-7c11-8e4f-1a2b3c4d5e6f",
"type": "NFE",
"typeName": "NF-e",
"natureOperation": "VENDA DE MERCADORIA",
"status": "AUTHORIZED",
"accessKey": "29261111222333000181550030000007001578054410",
"protocol": "129260000000001",
"reason": "100 - Autorizado o uso da NF-e",
"invoiceNumber": 700,
"series": 3,
"environment": 2,
"totalAmount": 720,
"referenceCode": "order-2087",
"recipient": { "document": "11222333000181", "name": "Restaurante Exemplo LTDA", "email": "[email protected]" },
"customerEmail": "[email protected]",
"credentialUf": "BA",
"createdAt": "2026-11-15T14:25:41.902Z"
}
Check status: a refused invoice also comes back 201, with REJECTED and SEFAZ's reason in reason. The A4 DANFE, with the access-key barcode, is at GET /v1/fiscal-invoices/<id>/pdf (see Query invoices). An authorized NF-e can be cancelled within the state's deadline. With no answer from SEFAZ, the same as the NFC-e applies: 503 and the attempt PENDING (No answer from SEFAZ).
Errors
| Status | Response | Fix |
|---|---|---|
400 | items[0].discount: o desconto é maior que o valor do item — a SEFAZ recusa (rejeição 483). / items[0]: taxUnitPrice × taxQuantity tem de dar o valor do item (totalPrice) — a SEFAZ recusa a diferença (rejeição 630). / items[0].batches[0].expiresAt inválido: uma data AAAA-MM-DD. | Fix the item value — see Item values and product data |
400 | items[0].icms.pRedBC: obrigatório no grupo ICMS20 do leiaute. / items[0].icms.modBC inválido: valores aceitos pelo leiaute: 0, 1, 2, 3. / items[0].icms: o grupo ICMS00 do leiaute não tem "foo"… / items[0]: informe o ICMS por icms OU pelos atalhos — remova icmsCst. | Complete or fix the group — see Complete ICMS |
400 | items[0].difal.pICMSInterPart: desde 2019 a partilha é 100% para a UF de destino — a SEFAZ recusa outro valor (rejeição 699). / items[0].selectiveTax.vIS: obrigatório no grupo IS do leiaute. | See DIFAL and Selective Tax |
400 | items[0].cest inválido: o CEST tem 7 dígitos, como texto… / items[0].icmsOrigin inválido… / items[0].icmsRate inválido… / items[0].icmsRate: a alíquota do ICMS só vale no item tributado (CST 00)… / items[0].icmsOrigin: emitente sem inscrição estadual não leva ICMS no item… | Fix the item field — see Item taxes |
400 | Informe o documento (CPF ou CNPJ) e o nome do destinatário da NF-e. | Send the recipient with document and name |
400 | recipient.document inválido: um CNPJ alfanumérico tem 14 posições (12 letras ou números e 2 dígitos verificadores) e o dígito verificador deve conferir. | The document has letters and is not a valid alphanumeric CNPJ: check what was typed |
400 | recipient.document inválido: informe um CPF (11 dígitos) ou CNPJ (14 posições) válido do destinatário — o dígito verificador deve conferir. | Check the recipient's CPF or CNPJ |
400 | Informe o endereço completo do destinatário da NF-e (rua, número, bairro, município IBGE e nome, UF e CEP). Falta: recipient.streetNumber, recipient.neighborhood. | Complete the recipient's address: the answer lists the missing fields |
400 | recipient.street deve ter de 2 a 60 caracteres. / recipient.streetNumber deve ter de 1 a 60 caracteres. / recipient.neighborhood… / recipient.cityName… / recipient.complement… | Adjust the length of the field |
400 | recipient.cityCode inválido: use o código IBGE do município (7 dígitos). / recipient.cityCode: o município 2927408 não é da UF SP. Corrija o código IBGE ou a UF do destinatário. / recipient.uf inválida: use a sigla de 2 letras do estado. / recipient.zipCode inválido: use os 8 dígitos do CEP. | Fix the recipient's city, state or ZIP code |
400 | recipient.name deve ter ao menos 2 caracteres. / recipient.stateRegistration inválida: use de 2 a 14 dígitos (destinatário isento: recipient.ieExempt true, sem a inscrição). / recipient.ieExempt deve ser true ou false. | Fix the recipient field |
400 | options.freightMode inválido: use um número — 0 (frete por conta do emitente), 1 (do destinatário), 2 (de terceiros), 3 (transporte próprio do remetente), 4 (transporte próprio do destinatário) ou 9 (sem frete). | Send one of the codes, as a number |
400 | options.consumerFinal deve ser true ou false. / options.presential deve ser true ou false. / options.additionalInfo deve ser um texto. / options.additionalInfo deve ter até 4900 caracteres. | Send the right type in options |
400 | options.authorizedDocuments deve ser uma lista de CPF ou CNPJ (textos). / options.authorizedDocuments aceita até 10 documentos. / options.authorizedDocuments[0] inválido: informe um CPF (11 dígitos) ou CNPJ (14 posições) válido de quem pode baixar o XML — o dígito verificador deve conferir. | Send a list of texts with valid CPFs or CNPJs |
400 | Informe ao menos um item. / Informe o CFOP em todos os itens. | Send the items, with a CFOP |
400 | O CFOP 1102 é de entrada (1xxx, 2xxx, 3xxx): a SEFAZ não o aceita numa nota de saída (rejeição 518)…, A SEFAZ não aceita o CFOP 5351 em NF-e nem NFC-e (rejeição 770)…, O CFOP 5998 não existe na tabela oficial de CFOP. | Use an outgoing CFOP from the table |
400 | O CFOP 5102 é de operação dentro do estado (5xxx), mas o destinatário é de outro estado: a SEFAZ recusa (rejeição 733). Use um CFOP que comece com 6. (and rejections 523, 732 and 731) | Change the first digit to match where the recipient is |
400 | Exportação exige options.export com a UF e o local de embarque (a SEFAZ recusa sem eles — rejeição 355)… / options.export só vale com destinatário no exterior… / recipient.countryCode inválido… / Destinatário no exterior não leva recipient.document… | See Export |
400 | items[0].issqn.serviceListCode inválido… / items[0].issqn.rate inválido… / items[0]: o item de serviço (com issqn) não leva ICMS… | See Service with ISSQN |
400 | NF-e de devolução exige a nota referenciada… | Send the returned invoice's key in options.referencedDocuments |
400 | NF-e de devolução aceita uma só nota referenciada (regra da SEFAZ desde 16/11/2026, rejeição 255)… | Send one key; issue one return per original invoice |
400 | options.referencedDocuments[0] é a chave de uma NFC-e: uma NF-e de saída que não é devolução não pode referenciar NFC-e… | Remove the NFC-e key (rule in force on Dec 14, 2026) |
400 | O CFOP … não é aceito na NF-e de um MEI. Aceitos: … | Use a CFOP allowed to a MEI |
400 | O CFOP … não pode ser usado por emitente sem inscrição estadual… | Use a CFOP allowed without an IE, or register the IE |
400 | items[0].ibsCbsCst inválido: use os 3 dígitos do CST do IBS/CBS (ex.: 000). / items[0].ibsCbsClassCode inválido… / Informe o CST e o cClassTrib do IBS/CBS de items[0] juntos… | Send both item fields, in the format, or neither — see IBS and CBS |
400 | O CST 620 (Tributação Monofásica) do IBS/CBS ainda não é emitido pela Intopays. Aceitos: 000…, 200…, 400… e 410… | Use one of the accepted CSTs |
400 | O cClassTrib … não está na tabela de redução de alíquota desta versão… | Check the cClassTrib of CST 200 with your accountant |
400 | Em homologação a SEFAZ já rejeita a nota do regime normal sem o grupo IBS/CBS (regra UB12-10, rejeição 1115)… | Send options.ibsCbsCst and options.ibsCbsClassCode, or the fields on the item |
400 | options.ibsCbsCst inválido… / Informe o CST e o cClassTrib do IBS/CBS da nota (options) juntos… / options.simplesIbsRate inválida: informe a alíquota efetiva em % como número… | Fix the options field — see IBS and CBS |
400 | items[0].icmsCst: emitente do Simples Nacional (CRT 1) usa CSOSN — informe icmsCsosn, não icmsCst (rejeição 590 da SEFAZ). / items[0].icmsCsosn: emitente do regime normal… usa CST… | Use the field of the credential's regime — see Item taxes |
400 | items[0].icmsCsosn inválido: use o CSOSN como texto — 102, 103, 300, 400, 500. / items[0].icmsCst inválido… / items[0].pisCst inválido: use 04 a 09 ou 49 a 99… / items[0].icmsBenefitCode inválido… | Send one of the accepted codes, as text |
400 | items[0]: emitente sem inscrição estadual não leva ICMS no item (rejeição 161 da SEFAZ) — remova icmsCsosn / icmsCst. | Remove the ICMS fields from the item |
400 | items[0].icmsCsosn: no MEI o CSOSN é definido pelo CFOP… | Do not send icmsCsosn |
400 | items[0].approximateTaxes inválido: informe os tributos aproximados do item em reais (Lei 12.741), um número com até 2 casas, de 0 até o valor do item. | Send a number in reais, up to the item value |
400 | Uma nota de devolução só pode ter CFOPs de devolução… | Split the return from the other items |
400 | options.natureOperation deve ter até 60 caracteres. | Shorten the nature |
400 | environment deve ser 1 (produção) ou 2 (homologação). | Send environment as 1 or 2 |
400 | Falha na emissão: … | The invoice could not be built or SEFAZ refused the submission; the text has the reason |
503 | A SEFAZ não respondeu; a situação da nota nº … é desconhecida… | SEFAZ did not answer; check the invoice (PATCH …/sync or the list by referenceCode) before issuing again |
Header, credential and payment errors are the same as the NFC-e.
Missing something on this page? Contact support from the dashboard and we'll update the docs.
