Issuing documents
NFS-e Service Invoices
6 endpoints
NFS-e - Electronic Service Invoice
The NFS-e API allows issuing, canceling and querying Electronic Service Invoices. The system automatically detects the company's municipality and routes to the correct API:
- Sao Paulo (SP) - Issuance via Nota Fiscal Paulistana (SOAP)
- Other municipalities - Issuance via National API (ADN/SEFIN)
The integrator does not need to choose the API: the system routes automatically by the IBGE code of the city that corresponds to the CEP registered for the company. Routing is based on the city of the CEP, not on codigo_municipio_nfse.
Environments: for the national system, ambiente "1" issues in production and any other value issues in the test environment (produção restrita). The Nota Fiscal Paulistana of São Paulo has no test environment, and every NFS-e sent has full legal effect; therefore companies in São Paulo accept only ambiente "1", and any other value returns an error without sending anything.
| Endpoint | Method | Description |
|---|---|---|
/api/nfs/company/create | POST | Register NFS-e company |
/api/nfse/create | POST | Issue NFS-e |
/api/nfse/cancel | POST | Cancel NFS-e |
/api/nfse/get_danfse | POST | Get DANFSE (PDF) |
/api/nfse/get_xml | POST | Download XML |
/api/nfse/get_list | GET | List NFS-e (paginated) |
- POSTRegister NFS-e companyRegisters (or updates) a company for NFS-e issuance.
/api/nfs/company/create - POSTIssue NFS-eResponse fields depend on the issuance channel: São Paulo returns _id , tipoEmissao ("pa…
/api/nfse/create - POSTCancel NFS-eOnly NFS-e with status autorizada can be cancelled.
/api/nfse/cancel - POSTGet NFS-e PDFNote: For São Paulo (Paulistana), returns the link to the municipal PDF page (notaprintp…
/api/nfse/get_danfse - POSTDownload NFS-e XMLdpsXml: Link to the XML that was sent: the signed DPS for the national system, the RPS r…
/api/nfse/get_xml - GETList NFS-e (paginated)Lists the NFS-e of the company of the token, paginated, newest issuance first.
/api/nfse/get_list