Documentation
Issue an NFS-e
Issue Brazil's national NFS-e with POST /v1/fiscal-invoices and type NFSE: service taker, items, service data, cancellation and Sefin rejection codes.
Before you start
The NFS-e is Brazil's service e-invoice. Intopays issues the national NFS-e: a single API, that of the Sefin Nacional (the national NFS-e environment), for every state and municipality. What changes from one municipality to another is whether the city hall has an agreement with the national issuer, in each environment. Without the agreement, the Sefin refuses the invoice with code E0037 and the invoice has to be issued in the city hall's own system.
It goes through the same route as the NFC-e and the NF-e, POST /v1/fiscal-invoices, with "type": "NFSE" and the same headers. The body is compared across the three types in One body for every type.
| Header | Value |
|---|---|
Authorization | Bearer <token> — the organization's API token (Authentication) |
X-Credential-Key | the fiscal credential's API Key |
Content-Type | application/json |
The fiscal credential needs, for the NFS-e:
| On the credential | Note |
|---|---|
| The issuer's CNPJ or CPF (company or individual taxpayer ID) | the service provider |
| A1 certificate (a file-based ICP-Brasil certificate) and its password | the connection to the Sefin is authenticated with the certificate (mTLS), and it signs the invoice |
| City IBGE code and state | the issuing municipality, which needs the agreement with the national issuer |
| Legal name | required for every invoice type |
| Tax regime and Opção pelo Simples Nacional (Simples Nacional option) | tell whether the provider is in Simples Nacional (ME/EPP or MEI) |
| Municipal registration, special tax regime and Simples assessment regime | optional — see Fiscal credentials |
The NFS-e uses neither the state registration (IE) nor the CSC (the NFC-e security code). The invoice's series and number come from the credential's NFS-e counter.
Before the first production invoice in a municipality, issue one with "environment": 2 (restricted production, the Sefin's test environment, with no legal value). The same body works in both environments. The invoice is built in the Sefin Nacional's NT 009 layout, which production accepts from December 1, 2026: before that date, an emission with "environment": 1 is rejected by the Sefin (E1235). Error messages of the fiscal routes are in Portuguese; they are quoted below as the API returns them.
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": "NFSE",
"environment": 2,
"referenceCode": "pedido-1001",
"recipient": {
"document": "123.456.789-09",
"name": "Maria de Teste",
"street": "Rua das Flores",
"streetNumber": "100",
"complement": "Sala 2",
"neighborhood": "Centro",
"cityCode": "2927408",
"cityName": "Salvador",
"uf": "BA",
"zipCode": "40000-000",
"phone": "71999990000",
"email": "[email protected]"
},
"items": [
{ "description": "Manutenção de computadores", "quantity": 2, "unitPrice": 75.00, "totalPrice": 150.00 },
{ "description": "Visita técnica", "quantity": 1, "unitPrice": 50.00, "totalPrice": 50.00 }
],
"payments": [
{ "method": "PIX", "amount": 200.00 }
],
"options": {
"additionalInfo": "Contrato 12/2026",
"sendEmail": true,
"service": {
"nationalTaxCode": "140101",
"nbsCode": "120011000",
"description": "Manutenção de computadores — novembro/2026",
"locationCityCode": "2927408",
"competenceDate": "2026-11-24",
"issqnWithholding": 1,
"operationIndicator": "100301",
"ibsCbsCst": "000",
"ibsCbsClassCode": "000001"
}
}
}'
| Field | Required | Values |
|---|---|---|
type | yes | "NFSE" |
environment | yes | 1 production, 2 restricted production (test, no legal value) |
items | yes | one or more items (up to 1000 of them with ncm), fields in the table below |
options.service | yes | the service's tax data — see Service data |
referenceCode | no | the invoice's identifier in your system; sending the same value again after a 503 returns the invoice when the pending one is resolved within that call; check the list by referenceCode before issuing again |
recipient | no | the service taker (tomador); without it, the invoice has no identified taker |
payments | no | the same vocabulary as the payment methods; they are validated but not transmitted — the NFS-e has no payment group |
options.additionalInfo | no | additional information, up to 2000 characters |
options.consumerFinal | no | true or false: the taker is a final consumer. Default: true with a CPF taker or no taker, false with a CNPJ taker |
options.sendEmail | no | true sends the authorized invoice to recipient.email |
Items
The invoice accepts many items, but the NFS-e has a single service block: the service amount is the sum of items[].totalPrice, and the service description is built from the items (2 x Manutenção de computadores; 1 x Visita técnica, up to 2000 characters) when options.service.description is not sent.
| Field | Required | Values |
|---|---|---|
description | yes | the item's description |
totalPrice | yes | the item's amount in reais; the sum of the items must be greater than zero |
quantity | no | quantity; default 1 |
ncm | only in rentals of movable goods | NCM (goods classification code), 8 digits, of the rented good. Only accepted with code 99.04.01, where at least one item needs it; the item's quantity must be an integer from 1 to 999 — see Rental invoices |
Only these four fields are read. code, cfop, unit, unitPrice and any other item field are ignored, without an error.
Service taker
recipient is the service taker. When it is sent, document and name are required.
| Field | Required | Values |
|---|---|---|
document | yes | CPF (11 digits) or CNPJ (14 characters, numeric or alphanumeric), with or without punctuation; the check digit is verified |
name | yes | name or legal name, up to 300 characters |
street, neighborhood, cityCode, zipCode | all or none | the address is optional; if one of these fields is sent — or streetNumber, or complement —, all four are required. cityCode is the IBGE code (7 digits) and zipCode the CEP (8 digits) |
streetNumber | no | number; default S/N |
complement | no | address complement |
cityName, uf | no | stored with the invoice; not transmitted |
phone | no | 6 to 20 digits |
email | no | up to 80 characters; receives the invoice when options.sendEmail is true |
Service data
options.service carries the service's classification and taxation. Confirm the codes with your accountant: they depend on the activity and on the municipality.
| Field | Required | Values |
|---|---|---|
nationalTaxCode | yes | national tax code (cTribNac), 6 digits; both "14.01.01" and "140101" are accepted |
operationIndicator | yes | IBS/CBS operation indicator (cIndOp), 6 digits |
ibsCbsCst | yes | IBS/CBS CST (tax situation code), 3 digits |
ibsCbsClassCode | yes | IBS/CBS tax classification (cClassTrib), 6 digits |
municipalTaxCode | no | municipal tax code (cTribMun), 3 digits |
nbsCode | no | NBS, 9 digits; "1.2001.10.00" is accepted too |
description | no | service description, up to 2000 characters; default: built from the items |
locationCityCode | no | IBGE code (7 digits) of the municipality where the service is provided; default: the taker's cityCode or, without it, the issuer's municipality |
competenceDate | no | competence date, YYYY-MM-DD, never after today (Brasília time); default: today |
issqnTaxation | no | ISSQN (municipal service tax) taxation: 1 taxable operation (default), 2 immunity, 3 service export, 4 non-incidence. For 99.xx.xx codes the default and only accepted value is 4 |
issqnWithholding | no | ISSQN withholding: 1 not withheld (default), 2 withheld by the taker, 3 withheld by the intermediary |
issqnRate | no | ISSQN rate in percent, 0 to 9.99 |
unconditionalDiscount, conditionalDiscount | no | discounts in reais, zero or more |
deductionAmount or deductionPercent | no | deduction or reduction of the ISSQN base: an amount in reais or a percent from 0 to 100 — only one of the two |
withheldIrrf, withheldCp, withheldCsll | no | federal withholdings in reais (IRRF, social security contribution and CSLL) |
realEstate | in operations with real estate | the property of the rental (99.03.xx) or of an operation with a 02xxxx indicator — see Rental of real estate |
National tax code and NBS
nationalTaxCode (cTribNac) identifies the service in the national service list of Complementary Law 116/2003: 2 digits for the item, 2 for the subitem and 2 for the breakdown. 140101, for example, is item 14, subitem 01, breakdown 01. municipalTaxCode (cTribMun) is the municipality's own breakdown of that code, when it has one. The NBS (Nomenclatura Brasileira de Serviços) is the national service classification, with 9 digits.
Competence and place of service
competenceDate is the day the service was provided; it can be earlier than the issue date, never later. locationCityCode is the municipality where the service was provided, which can differ from the issuer's municipality.
Withheld ISS
issqnWithholding says who pays the ISSQN: with 1, the provider; with 2, the taker withholds and pays it; with 3, the intermediary. Send issqnRate only when the municipality of incidence does not have its rate registered in the national system.
IBS and CBS
operationIndicator (cIndOp) comes from the official IBS/CBS operation-indicator table; a code outside the table is refused by the Sefin with E1000. ibsCbsCst and ibsCbsClassCode (cClassTrib) are the IBS/CBS tax situation and classification, the same fields the NF-e items accept.
You send only the classification. The tax base, rates and amounts of IBS and CBS are calculated by the Sefin Nacional (through the official tax calculator) and come back in the authorized invoice's XML; the API does not take a rate or an amount for these taxes. This does not change in 2027, when CBS moves to its full rate and IBS to its test rate: the same invoice simply comes out with that year's amounts.
Rental invoices
A rental is not an ISS service, but it is an operation taxed by IBS and CBS — and its document is the national NFS-e, with the national tax codes 99.xx.xx. Ato Conjunto RFB/CGIBS nº 7/2026 set January 1, 2027 as the start of the obligation for rentals of movable goods and for the rental, onerous assignment and lease of real estate, including Simples Nacional taxpayers. In production, the Sefin Nacional accepts these codes from the layout change of December 1, 2026; before that, test with "environment": 2.
| Operation | nationalTaxCode | What the invoice needs |
|---|---|---|
| Rental of movable goods | 99.04.01 | at least one item with ncm (the rented good) |
| Rental of real estate | 99.03.01 | options.service.realEstate |
| Onerous assignment of real estate | 99.03.02 | options.service.realEstate |
| Lease (arrendamento) of real estate | 99.03.03 | options.service.realEstate |
| Easement, assignment of use or of space | 99.03.04 | options.service.realEstate |
| Permission of use or right of way | 99.03.05 | options.service.realEstate |
No 99.xx.xx code has ISSQN: issqnTaxation defaults to 4 (non-incidence), and any other value is refused. The operationIndicator, ibsCbsCst, ibsCbsClassCode and nbsCode values in the examples are illustrative — the classification is yours; confirm it with your accountant.
Rental of movable goods
The rented good is an item with ncm. Each item with ncm becomes a good in the IBS/CBS movable-goods group, with the item description (up to 150 characters) and the quantity (an integer from 1 to 999). Items without ncm only add to the amount.
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": "NFSE",
"environment": 2,
"referenceCode": "locacao-1001",
"recipient": {
"document": "123.456.789-09",
"name": "Maria de Teste",
"street": "Rua das Flores",
"streetNumber": "100",
"neighborhood": "Centro",
"cityCode": "2927408",
"zipCode": "40000-000"
},
"items": [
{ "description": "Locação de smartphone", "quantity": 2, "totalPrice": 300.00, "ncm": "85171300" }
],
"options": {
"service": {
"nationalTaxCode": "990401",
"nbsCode": "111019000",
"operationIndicator": "100301",
"ibsCbsCst": "000",
"ibsCbsClassCode": "000001"
}
}
}'
With 99.04.01, an invoice without any item with ncm is refused; with any other code, an item with ncm is refused. In the official correlation table (Sefin's Anexo VIII, which has no validation rule yet), rentals of movable goods use the indicators 010101, 010102, 010103 or 010106; in restricted-production tests, the indicator the IBS/CBS calculator accepted was 100301. Test your case with "environment": 2 before issuing in production.
Rental of real estate
In the rental, onerous assignment or lease of real estate (99.03.xx), the operation indicator is a 02xxxx (020101, the property's location, is the usual one) and the property goes in options.service.realEstate:
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": "NFSE",
"environment": 2,
"referenceCode": "aluguel-2026-11",
"recipient": { "document": "44.555.666/0001-81", "name": "Empresa Locatária LTDA" },
"items": [
{ "description": "Aluguel de novembro/2026 — sala comercial", "totalPrice": 1500.00 }
],
"options": {
"service": {
"nationalTaxCode": "990301",
"nbsCode": "110022000",
"operationIndicator": "020101",
"ibsCbsCst": "200",
"ibsCbsClassCode": "200027",
"realEstate": {
"cityCode": "2927408",
"lease": {
"coOwnershipPercent": 50,
"totalAmount": 3000.00,
"originalDueDate": "2026-11-10"
},
"units": [
{
"registration": "001.002.0003-4",
"zipCode": "40020-000",
"street": "Rua Chile",
"streetNumber": "10",
"complement": "Sala 3",
"neighborhood": "Centro",
"baseAdjustments": [
{ "type": "01", "amount": 150.00 },
{ "type": "03", "amount": 400.00 }
]
}
]
}
}
}
}'
realEstate field | Required | Values |
|---|---|---|
cityCode | yes | IBGE code (7 digits) of the property's municipality; every unit is in it |
units | yes | 1 to 99 property units |
units[].cib | one of the two | CIB (Cadastro Imobiliário Brasileiro, the national property register), 8 characters |
units[].zipCode, units[].street | one of the two | the property address: CEP (8 digits) and street. With cib, the address is not accepted |
units[].streetNumber, units[].complement, units[].neighborhood | no | number (default S/N), complement and neighborhood |
units[].registration | no | the city hall's property registration (the IPTU one), up to 30 characters |
units[].baseAdjustments | no | up to 10 parts of the rent that are left out of the IBS/CBS base — table below |
lease.coOwnershipPercent | no | the issuer's share of the property, above 0 and up to 100, with up to two decimals; default 100 |
lease.totalAmount | with co-ownership | the total rent, of all co-owners; default: the invoice amount when the share is 100 |
lease.unconditionalDiscountTotal, lease.conditionalDiscountTotal | with co-ownership and a discount | the total discounts of the operation |
lease.originalDueDate | no | the rent's original due date, YYYY-MM-DD; it indicates the reference month |
The invoice amount (the sum of the items) is always the issuer's share: coOwnershipPercent × lease.totalAmount, with one cent of tolerance — the Sefin checks it (rule E0433). In the example, half of a R$ 3,000.00 rent gives the invoice's R$ 1,500.00. The same goes for unconditionalDiscount and conditionalDiscount against the lease totals. With a single lessor, do not send lease: the totals are the invoice's own. Each co-owner issues the invoice of their share.
baseAdjustments[].type | Part | Condition |
|---|---|---|
01 | taxes charged with the rent (IPTU property tax, improvement levy) | nbsCode 110021000 or 110022000 |
02 | notary fees charged with the rent | nbsCode 110021000 or 110022000 |
03 | condominium fee charged with the rent | nbsCode 110021000 or 110022000 |
04 | social reducer | residential property only, nbsCode 110021000 |
99 | other parts | description required, up to 150 characters |
amount is the total value of the part (not the co-owner's share) and cannot exceed lease.totalAmount. The rental NBS is 1.1002.10.00 (residential property) or 1.1002.20.00 (non-residential).
The taker (recipient) is optional in the layout, but the Sefin requires their CPF/CNPJ and address when the operation indicator points to the acquirer's domicile (100301, for example — code E0243). An individual who rents out a property issues with a credential of their own CPF; who is an IBS/CBS taxpayer in that situation is a matter for the accountant. The invoice PDF (DANFSe) shows the property registration in the additional information.
The realEstate group (without lease and without baseAdjustments) is also required in services that are not rentals when the operationIndicator is 020101, 020201, 020202, 020301 or 020401 — property management and brokerage, for example. The exception is construction services (item 7 of the list, such as 07.02.01): there realEstate is not accepted, because the construction site is not reported in this group.
Complete DPS groups
Besides the fields above, the DPS takes the layout's groups whole, with the official tag names of NT 009. 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.service.suspension.tpSusp inválido…).
| Field | Group | What it carries |
|---|---|---|
options.taker | toma | the whole taker, instead of recipient: CNPJ, CPF, NIF (abroad) or cNaoNIF, CAEPF, IM, xNome, Brazilian address (endNac) or foreign address (endExt: cPais, cEndPost, xCidade, xEstProvReg), fone, email. recipient and options.taker together answer 400 |
options.intermediary | interm | the service intermediary, with the same fields |
options.substitution | subst | the NFS-e this one replaces: chSubstda (key), cMotivo (01–05, 99), xMotivo |
options.service.foreignTrade | comExt | foreign trade: mode of provision, relationship, currency and amount in it, support mechanisms, movement of goods, DI/RE, MDIC submission |
options.service.construction | obra | the construction work: cObra, cCIB or the address, and the property registration |
options.service.event | atvEvento | the event: name, dates and the identifier or the address |
options.service.complement | infoCompl | technical responsibility document, reference document, order and order items (the text stays in additionalInfo) |
options.service.suspension | exigSusp | suspended ISSQN liability: tpSusp (1 court decision, 2 administrative proceeding) and nProcesso |
options.service.municipalBenefit | BM | municipal benefit: nBM and the reduction (vRedBCBM or pRedBCBM) |
options.service.deductionDocuments | vAjusteBC/documentos | the documents that justify the base deduction (docAjusteBC, up to 1000) |
options.service.resultCountry | cPaisResult | country where the service's result occurs (ISO, 2 letters), on exports |
options.service.immunityType | tpImunidade | ISSQN immunity type ("0" to "5"), with issqnTaxation 2 |
options.service.receivedAmount | vReceb | the amount received by the intermediary |
"options": {
"taker": { "NIF": "123456789", "xNome": "Global Client LLC",
"end": { "endExt": { "cPais": "US", "cEndPost": "10001", "xCidade": "New York", "xEstProvReg": "NY" },
"xLgr": "5th Avenue", "nro": "350", "xBairro": "Manhattan" } },
"service": { "nationalTaxCode": "14.01.01", "operationIndicator": "100301", "ibsCbsCst": "000", "ibsCbsClassCode": "000001",
"foreignTrade": { "mdPrestacao": "1", "vincPrest": "0", "tpMoeda": "220", "vServMoeda": 200,
"mecAFComexP": "01", "mecAFComexT": "01", "movTempBens": "1", "mdic": "0" },
"resultCountry": "US" }
}
Whether the combination is valid for the service and the municipality is the Sefin Nacional's call: its codes come back in the rejection.
Response
The API answers 201 with the invoice and the Sefin's answer:
{
"id": "0193b2c4-7a1e-7d55-9c3b-2f6a8e1d4b70",
"type": "NFSE",
"typeName": "NFS-e",
"status": "AUTHORIZED",
"dpsId": "DPS292740821122233300018100001000000000000012",
"accessKey": "29274082211222333000181000000000003126111234567894",
"protocol": "31",
"reason": "NFS-e nº 31 gerada",
"invoiceNumber": 12,
"series": 1,
"environment": 2,
"totalAmount": 200,
"natureOperation": "Manutenção de computadores — novembro/2026",
"referenceCode": "pedido-1001",
"recipient": { "document": "12345678909", "name": "Maria de Teste", "email": "[email protected]" },
"createdAt": "2026-11-24T14:20:06.153Z"
}
| Field | On the NFS-e |
|---|---|
invoiceNumber, series | the number and series of the DPS (Declaração de Prestação de Serviço, the service declaration that becomes the NFS-e), taken from the credential's counter |
dpsId | the DPS identifier, 45 characters, set before sending |
accessKey | the NFS-e access key, 50 characters; null until the Sefin authorizes |
protocol | the NFS-e number, assigned by the Sefin |
natureOperation | the service description, cut at 255 characters |
status | Meaning |
|---|---|
AUTHORIZED | The Sefin generated the NFS-e |
REJECTED | The Sefin refused it; reason holds its code, its message and, for the known codes, an explanation |
PENDING | Sent, still without an answer from the Sefin |
CANCELLED | Canceled |
Check status: a refused invoice also comes back 201, with REJECTED. A rejected NFS-e does not use up the number: the next invoice uses the same DPS number (on the NFC-e and the NF-e, a rejection does use it).
With no answer from the Sefin, the API answers 503 and the invoice stays PENDING. Try again later with the same referenceCode — if the pending attempt is resolved within that call and was authorized, the answer is that invoice; otherwise check GET /v1/fiscal-invoices?referenceCode=… before issuing again —, or ask for its status with PATCH /v1/fiscal-invoices/<id>/sync (Look up invoices).
An invalid body answers 400, and nothing is sent to the Sefin — see Errors. On an authorized invoice, reason is NFS-e nº <number> gerada, with the same number as protocol. With a webhook registered, Intopays sends fiscal.create when the invoice is authorized or rejected and fiscal.update when it is canceled.
PDF, XML and e-mail
The routes are those of Look up invoices:
| Route | What it returns |
|---|---|
GET /v1/fiscal-invoices/<id>/pdf | the A4 DANFSe (the printable NFS-e), only for an invoice the Sefin generated (AUTHORIZED or CANCELLED); file danfse-<NFS-e number>.pdf |
GET /v1/fiscal-invoices/<id>/xml | the XML of the authorized NFS-e or, without it, the signed DPS; file nfse-<access key or DPS id>.xml |
POST /v1/fiscal-invoices/<id>/email | sends the authorized NFS-e, with the DANFSe and the XML attached, to to or to the taker's e-mail |
The xmls.zip file of Look up invoices includes the XMLs of authorized NFS-e. On issue, "options": { "sendEmail": true } with recipient.email sends the invoice to the taker when it is authorized.
Cancel
An authorized NFS-e is canceled on the same route as the other invoices, with the reason code in reasonCode:
curl -X PATCH https://api.intopays.com/v1/fiscal-invoices/0193b2c4-7a1e-7d55-9c3b-2f6a8e1d4b70/cancel \
-H "Authorization: Bearer $INTOPAYS_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "reason": "Serviço não foi prestado ao cliente", "reasonCode": 2 }'
| Field | Required | Values |
|---|---|---|
reason | yes | the justification, 15 to 255 characters |
reasonCode | no | 1 error when issuing, 2 service not provided, 9 other (default). Any other value answers 400 |
The response is the invoice with status CANCELLED, cancelReasonCode, cancelReason, cancelledAt and cancelXml (the event the Sefin registered). The cancellation deadline is the municipality's. When the Sefin refuses the cancellation, the response is 400 with its message and the invoice stays AUTHORIZED.
| Status | Response | Fix |
|---|---|---|
| 400 | Código do motivo do cancelamento (reasonCode) inválido: use 1 (erro na emissão), 2 (serviço não prestado) ou 9 (outros). | Use 1, 2 or 9 |
| 400 | Cancelamento rejeitado pela Sefin Nacional: E1801 - … — O prazo de cancelamento desta NFS-e, definido pelo município, já acabou. | What the Sefin answered; the invoice stays AUTHORIZED |
| 503 | A Sefin Nacional não respondeu ao cancelamento; a nota continua AUTHORIZED. … | Sync the invoice later |
Sefin codes
On a REJECTED invoice, reason is <code> - <Sefin message>. For these codes, Intopays appends — and an explanation:
| Code | Explanation appended | Meaning and what to do |
|---|---|---|
E0037 | O município do emitente não tem convênio ativo com o emissor nacional da NFS-e neste ambiente. A prefeitura não aceita a emissão pela Sefin Nacional: emita no sistema da prefeitura ou confira o convênio em gov.br/nfse. | The municipality has no active agreement with the national issuer in this environment: issue in the city hall's system, or check the agreement |
E0243 | Com IBS/CBS tributado e incidência no endereço do adquirente, o tomador precisa de CPF/CNPJ e endereço nacional completo. Informe o tomador com endereço em recipient. | Send the recipient with its document and address |
E0014 | Esta DPS já gerou uma NFS-e num envio anterior. A nota é recuperada pela consulta — não emita outra. | The DPS already generated an NFS-e in an earlier submission. Nothing to do: the invoice is recovered by the lookup; do not issue another |
E0008 | A data de emissão está à frente do relógio da Sefin. Tente de novo em instantes. | The issue date is ahead of the Sefin's clock: try again shortly |
E0010 | A série da DPS está fora da faixa do emissor próprio. Use uma série de 1 a 49999 na credencial fiscal. | Series out of range: set an NFS-e series from 1 to 49999 on the credential |
E0116 | O município do emitente exige a inscrição municipal do prestador. Preencha a inscrição municipal na credencial fiscal. | The municipality requires the provider's municipal registration: fill it in on the credential |
E0117 | A inscrição municipal informada não confere com o cadastro do município. Corrija a inscrição municipal na credencial fiscal. | The municipal registration does not match the municipality's records: fix it on the credential |
E0713 | O indicador de tributos "não informar" só é aceito de optante do Simples Nacional. Confira o regime tributário (CRT) da credencial fiscal. | Only a Simples Nacional provider may omit the tax total: check the tax regime and the Simples option on the credential |
E0433 | Na locação de imóvel (99.03.xx) o valor da nota deve ser o percentual de copropriedade × o valor total da operação (options.service.realEstate.lease). | In a property rental the invoice amount must be the co-ownership percentage × the total: fix the sum of the items or lease.totalAmount |
E0434 / E0443 | Na locação de imóvel (99.03.xx) o desconto incondicionado da nota deve ser o percentual de copropriedade × o desconto total (options.service.realEstate.lease.unconditionalDiscountTotal). / the same for the conditional discount (…conditionalDiscountTotal) | Fix the invoice's discount or the lease total |
E0532 | Os códigos de tributação nacional 99.xx.xx não têm ISSQN: use options.service.issqnTaxation 4 (não incidência). | 99.xx.xx codes have no ISSQN: do not send issqnTaxation |
E0902 | Na locação, cessão onerosa ou arrendamento de imóvel (99.03.xx) o indicador de operação (options.service.operationIndicator) deve ser um 02xxxx. | Property rentals need a 02xxxx operation indicator |
E0928 / E0932 / E0937 / E0938 | O grupo do imóvel (options.service.realEstate) só é aceito quando o indicador de operação é de operação com imóvel (02xxxx). / O indicador de operação informado é de operação com imóvel: informe o imóvel em options.service.realEstate. / Na locação, cessão onerosa ou arrendamento de imóvel (99.03.xx) os dados da locação são obrigatórios (options.service.realEstate). / Este indicador de operação exige ao menos uma unidade imobiliária em options.service.realEstate.units. | Send realEstate (with its units) on real estate operations, and only on them |
E0933 | O código CIB (Cadastro Imobiliário Brasileiro) da unidade é inválido. Confira os 8 caracteres ou identifique o imóvel pelo endereço. | The unit's CIB is invalid: fix it or use the address |
E0944 | O redutor social (parcela 04) só vale na locação de imóvel residencial (NBS 1.1002.10.00). | Remove adjustment 04 or use the residential NBS |
E0963 / E0967 | Na locação de bens móveis (99.04.01) informe os bens locados: ao menos um item com ncm. / Bens móveis (itens com ncm) só são aceitos na locação de bens móveis (código de tributação nacional 99.04.01). | Items with ncm are required with 99.04.01 and refused with any other code |
E1000 | O indicador de operação (cIndOp, options.service.operationIndicator) não existe na tabela oficial de indicadores de operação do IBS/CBS. Confira o código com a sua contabilidade. | options.service.operationIndicator is not in the official IBS/CBS operation-indicator table: fix the code |
E1235 | O XML da DPS não segue o leiaute em vigor neste ambiente da Sefin (falha de schema). | The DPS XML does not follow the layout in force in this environment: contact support |
E1801 | O prazo de cancelamento desta NFS-e, definido pelo município, já acabou. | The municipality's cancellation deadline has passed; the deadline and rules are the municipality's |
Other codes you may see: E0121 and E0128 (the provider's name or address must not be sent), E0908 (recipient equal to the taker) and E1228 (XML with a namespace prefix). They do not depend on the body you send: contact support.
Errors
| Status | Response | Fix |
|---|---|---|
| 400 | items[0].quantity deve ser um número maior que zero. | Send the quantity as a number greater than zero |
| 400 | options.service.realEstate: o indicador de operação 020101 é de operação com imóvel — informe o imóvel (cityCode e units). | Send options.service.realEstate — see Rental of real estate |
| 400 | Informe o tipo da nota (type). Aceitos: NFCE (NFC-e), NFE (NF-e), NFSE (NFS-e). / O tipo de nota "XYZ" não é aceito. Aceitos: NFCE (NFC-e), NFE (NF-e), NFSE (NFS-e). | Send "type": "NFSE" |
| 400 | Informe os dados do serviço da NFS-e em options.service (código de tributação nacional, IBS/CBS…). | Send options.service |
| 400 | options.service.nationalTaxCode: informe o código de tributação nacional (cTribNac), 6 dígitos da lista de serviços nacional (ex.: 140101). / options.service.nationalTaxCode inválido: informe… | Send the 6-digit code |
| 400 | options.service.operationIndicator: informe o indicador de operação do IBS/CBS (cIndOp), 6 dígitos. | Send the cIndOp |
| 400 | options.service.ibsCbsCst: informe o CST do IBS/CBS, 3 dígitos (ex.: 000). / options.service.ibsCbsClassCode: informe a classificação tributária do IBS/CBS (cClassTrib), 6 dígitos (ex.: 000001). | Send the IBS/CBS CST and cClassTrib |
| 400 | options.service.issqnTaxation inválido: use 1 (operação tributável), 2 (imunidade), 3 (exportação de serviço) ou 4 (não incidência). | Use one of the four values |
| 400 | ISSQN retido pelo tomador (options.service.issqnWithholding 2) exige o tomador identificado em recipient. | Send the recipient |
| 400 | options.service.competenceDate não pode ser depois de hoje. | Use today's date or an earlier one |
| 400 | Informe a dedução em valor (options.service.deductionAmount) OU em percentual (options.service.deductionPercent), nunca os dois. | Send only one of the two fields |
| 400 | Os descontos e a dedução (options.service) não podem passar do valor do serviço. | Lower the discounts or the deduction |
| 400 | Informe ao menos um item. / items[0].description: informe a descrição do serviço. / items[0].totalPrice deve ser um número (em reais) maior ou igual a zero. / O valor do serviço (a soma de items[].totalPrice) deve ser maior que zero. | Send the items with a description and an amount |
| 400 | items[0].ncm inválido: use os 8 dígitos do NCM do bem móvel. / items[0].quantity: a quantidade de um bem móvel (item com ncm) deve ser um número inteiro de 1 a 999. | Fix the movable good's NCM or quantity |
| 400 | Locação de bens móveis (options.service.nationalTaxCode 99.04.01): informe o NCM (items[].ncm) de ao menos um bem locado. / items[0].ncm: bens móveis (itens com ncm) só entram na locação de bens móveis (options.service.nationalTaxCode 99.04.01). Remova o ncm do item ou use o código 99.04.01. | Use ncm only, and always, with code 99.04.01 |
| 400 | options.service.issqnTaxation: os códigos de tributação nacional 99.xx.xx não têm ISSQN — use 4 (não incidência) ou não envie o campo. | Do not send issqnTaxation with 99.xx.xx codes |
| 400 | options.service.realEstate: informe o imóvel da locação, cessão onerosa ou arrendamento (código 99.03.xx) — município (cityCode) e ao menos uma unidade (units). / options.service.realEstate só é aceito em operação com imóvel: código 99.03.xx ou indicador de operação (options.service.operationIndicator) 02xxxx. | Send realEstate in operations with real estate, and only in them |
| 400 | options.service.operationIndicator: na locação, cessão onerosa ou arrendamento de imóvel (código 99.03.xx) o indicador de operação é um 02xxxx (ex.: 020101, local do imóvel). | Use a 02xxxx indicator |
| 400 | options.service.realEstate.units[0]: identifique o imóvel pelo CIB (cib) ou pelo endereço (zipCode, street, streetNumber). / …pelo CIB (cib) OU pelo endereço (zipCode, street, streetNumber…), não pelos dois. / options.service.realEstate.units[0].cib inválido: o CIB (Cadastro Imobiliário Brasileiro) tem 8 caracteres (7 + dígito verificador). | Identify each unit by its CIB or by its address |
| 400 | options.service.realEstate.lease.totalAmount: o valor total da nota (R$ 2000.00) deve ser 50% do total informado (R$ 3000.00), ou seja, R$ 1500.00 (regra E0433 da Sefin). / options.service.realEstate.lease.totalAmount: com copropriedade (50%) informe o valor total da operação inteira — a nota leva a parte do emitente. | The sum of the items is the issuer's share: percentage × total |
| 400 | options.service.realEstate.units[0].baseAdjustments[0].type: o redutor social (04) só vale na locação de imóvel residencial — options.service.nbsCode 1.1002.10.00 (regra E0944 da Sefin). / …description: descreva a parcela quando o tipo é 99 (outras parcelas). / …amount não pode passar do valor total da operação (R$ 2000.00). | Fix the part left out of the base |
| 400 | recipient.document: informe o CPF (11 dígitos) ou o CNPJ (14 dígitos) do tomador. / recipient.document inválido: informe um CPF (11 dígitos) ou CNPJ (14 posições) válido do tomador — o dígito verificador deve conferir. / recipient.name: informe o nome ou a razão social do tomador. | Send the taker's document and name |
| 400 | Endereço do tomador incompleto: informe recipient.street e recipient.neighborhood (ou não envie endereço). / recipient.cityCode: informe o código IBGE (7 dígitos) do município do tomador. / recipient.zipCode: informe o CEP (8 dígitos) do tomador. | Complete the taker's address, or send no address |
| 400 | A NFS-e exige o CNPJ (14 dígitos) ou o CPF (11 dígitos) do prestador na credencial fiscal. / A NFS-e exige o código IBGE (7 dígitos) do município do emitente na credencial fiscal. | Complete the credential under Credenciais (Credentials) |
| 400 | O município 2927408 da credencial fiscal não é da UF SP. Corrija o município ou a UF do emitente. | Fix the credential's municipality or state |
| 400 | Falha na emissão: … (sem resposta da Sefin Nacional; a nota não foi registrada) | The submission got no answer and the Sefin reported that the DPS generated no invoice: the invoice is REJECTED and the number stays free. Issue again |
| 503 | A Sefin Nacional não respondeu; a situação da DPS nº 7 (DPS…) é desconhecida e será conferida na próxima emissão. Tente de novo mais tarde com o mesmo referenceCode. | Try again later with the same referenceCode, or sync the invoice |
Header and payment errors are the same as the NFC-e.
What is not available
Intopays's national NFS-e does not cover yet:
- condominium operations (code
99.05.01) and IBS/CBS adjustment invoices (credit and debit); - presumed credit, regular taxation and deferral of IBS/CBS (the optional group of the classification);
- the operation type with government entities and the ISS-taxed assignment and lease operations that require it (
tpOper); - more than one property unit and parts of type
02and99on the panel screen (the API accepts them); - a separate PIS/COFINS group.
The fields that Nota Técnica 009 v1.01 adds for Simples Nacional (the Simples activity, the IBS/CBS assessment regime and "pending option") do not have a layout published by the Sefin yet; they come in when the official package is released.
Issuance follows the same national rules in every municipality with the agreement, but the first invoice of each municipality should go through restricted production ("environment": 2).
Missing something on this page? Contact support from the dashboard and we'll update the docs.
