Issue NFS-e
Service invoice issuance through the national NFS-e system — one integration for every participating municipality.

NFS-e (Nota Fiscal de Serviços Eletrônica) is the electronic invoice for services. Unlike NF-e, a service item carries no NCM or CFOP: it needs a description, an amount, and the service code — the LC 116/2003 list item in service_code (such as 1.07), which becomes the DPS's national tax code (cTribNac). When the item has no service_code, the code in the company's fiscal profile applies.
Stackin issues through Brazil's national NFS-e system — the DPS goes to the Sefin Nacional and the invoice is distributed by the ADN (Ambiente de Dados Nacional) — so the same integration works in any participating municipality, with no per-city webservice to onboard separately. To issue through it, the issuer's municipality must have an agreement (convênio) with the national system, be active in it, and let its taxpayers use the public issuers; Stackin doesn't integrate municipalities' own systems.
Cancellation, consultation, the DANFSe PDF, and history work the same way as NF-e: one access key (50 digits on an NFS-e), one dashboard, one submission timeline. Correction letters, number invalidation, and recipient manifestation exist only on NF-e — an NFS-e with a mistake is cancelled and issued again.
That national layer is the reason NFS-e integrations are usually harder to build than NF-e ones: historically, every city ran its own webservice, its own XML schema, and its own quirks, which meant a company selling services nationally needed a separate integration per municipality it operated in.
Stackin's job is to absorb that variance — the request you send doesn't change based on the issuer's city, and the response shape is identical to NF-e's wherever possible, so a team already integrated with product invoices can add service invoices without learning a second mental model.
Service tax (ISS) is municipal and goes in the DPS itself: Stackin declares the service as taxable and whether the ISS is withheld by the buyer (tax_retained, which needs the buyer's address). The rate is optional: nfse.iss.rate on the call, or the company's iss_rate, writes it into the DPS where the layout takes one, and an MEI never sends it. That is why an NFS-e item stays lean, without the tax-classification burden of a product line item.
The Tax Reform's IBS and CBS go into the DPS's IBSCBS group when the item carries product.br.ibs_cbs with the cst, the classification (cClassTrib), and the operation_indicator (cIndOp, the place-of-supply code from NFS-e Annex VII, required in production). Base, rates, and amounts aren't sent: the Sefin Nacional computes them. In production an MEI cannot send the group, since it pays IBS and CBS in the DAS, and an ME/EPP can only send it when the company's simples_apuracao_ibs_cbs fiscal field is 3 (IBS and CBS outside the DAS). In homologation, for a competência from 2026-10-01, the layout lists the group as mandatory and every regime may send it. The other DPS fields, the rules per regime and the warnings are in the API reference.
As with NF-e, the A1 digital certificate and the issuer's registration data are resolved from the company configuration, not passed on the call — the per-item decision is what the service was, how much it cost, and what its code is.
See NFS-e issuance for how that API surface fits into the rest of Stackin.