TF Fiscal

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.

EndpointMethodDescription
/api/nfs/company/createPOSTRegister NFS-e company
/api/nfse/createPOSTIssue NFS-e
/api/nfse/cancelPOSTCancel NFS-e
/api/nfse/get_danfsePOSTGet DANFSE (PDF)
/api/nfse/get_xmlPOSTDownload XML
/api/nfse/get_listGETList NFS-e (paginated)