Skip to content

Municipal NFS-eMunicipal and national

Municipal NFS‑e API: your city hasn't migrated, your invoices can't stop

Issue the NFS-e in the city's standard today and in the national standard tomorrow, without switching integrations. Each city's services and codes come through the API.

FromR$ 59.90/month

  • 14-day free trial
  • No setup fee
Docs

NF-e 10472

Sale, R$ 1,284.90

draft

Issuer

Razao Social Emitente Ltda

Recipient

Customer

  1. POST sent/v1/invoices/product/sent
  2. processinginvoiceId pi_1234567890
  3. webhooksent-product-invoice
  4. issueddelivered to the customer
  • NFC-e
  • NFS-e
  • NFS-e Nacional
  • NFCom
  • Received invoices
  • Batch download

Clients and partners

  • Santander
  • Nuvemshop
  • Tray
  • Unisuam
  • Kora Saúde
  • Fiotec
  • NDD
  • Reserva
  • Avocado Pay
  • CF Contabilidade
  • SolarGrid
  • Transfero
  • RioCard Mais
  • WAM Group
CNPJs issuing invoices at SplitC
200+
invoices issued by Theos
350k+

Tax reform · Municipalities

Your city hasn't migrated yet? That's your problem too.

The tax reform has reached the service invoice, but each city moves to the national standard at its own pace. Whoever issues in several cities lives with two standards, rules that change without notice, and IBS and CBS to state anyway.

  1. January 2026

    Municipalities must issue in the national standard or share their invoices with the National Data Environment (ADN).

  2. 2026

    Test year: 0.9% CBS and 0.1% IBS stated on every invoice.

  3. 2027

    CBS comes in full and PIS and Cofins cease to exist.

  4. 2033

    ICMS and ISS cease to exist. Only IBS and CBS.

NFS-e issuance · city in transition
  1. City migrated to the national standard
  2. Old municipal integration: service unavailable
  3. Today's invoices stuck
  4. Openi: same key, service-nacional route
  5. NFS-e authorized · XML and PDF ready
  • Two standards at once

    Some clients on the national standard, others on the city's. Two integrations to maintain.

  • Migration without notice

    When the city migrates, the old integration stops. What about tomorrow's invoices?

  • IBS and CBS anyway

    A late city doesn't postpone the reform: the invoice has to state the new taxes.

  • Wrong code

    Each city has its own services and codes list. One swapped code and the invoice bounces.

With Openi, you issue municipal NFS-e today and NFS-e Nacional when the city migrates, with the same key and the same response format.

How it works

  1. 1Create the account and generate the API key

    Pick a plan, get the key and register the issuing company and its digital certificate. One key serves several CNPJs.

  2. 2Test in staging

    Use a test key on the same API URL and validate your NFS-e before issuing in production.

  3. 3Send the NFS-e data as JSON

    POST /v1/invoices/service/sent validates the data with the city's rules and returns the invoiceId.

  4. 4Get the XML, the PDF and the status

    The sent-service-invoice webhook reports the result, and the XML and PDF are available for download.

Municipal NFS-e in a few lines

# Shortened body. The full schema is in the documentation.
curl -X POST "https://nf.openi.com.br/v1/invoices/service/sent" \
  -H "Authorization: Bearer $DOCS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "issuedAt": "2026-11-30T10:00:00-03:00",
    "issuer": { "document": "12345678000190", "operationNature": "1" },
    "recipient": {
      "document": "98765432000110",
      "documentType": "CNPJ",
      "companyName": "Empresa Tomadora LTDA",
      "address": { "state": "SP", "zipCode": "01310100", "cityCode": "3550308" }
    },
    "service": {
      "value": "1500.00",
      "description": "Consultoria em tecnologia da informação",
      "item": "01.01",
      "aliquot": "5.00",
      "issRetained": false
    }
  }'

Differentiators

Several CNPJs in one account

One API key serves every registered company, from 1 CNPJ on Inicial to unlimited CNPJs on Escala.

  • Inicial: 1 CNPJ
  • Expansão: up to 5 CNPJs
  • Escala: unlimited CNPJs

Webhooks

One event per invoice change, with retries. Your system knows the moment the invoice is authorized.

Staging environment

Test the integration with a test key, on the same URL, before issuing real invoices.

Batch download

Request the XMLs and PDFs of a period and get notified when the batch is ready.

Technical support in Portuguese

Ticket support on paid plans, and a direct channel on Enterprise.

IBS and CBS on municipal NFS‑e too

The IBS and CBS fields of the tax reform are already in the API's municipal issuing, next to ISS.

In the API
IBS/CBS tax situation and classification, rates and amounts
Next to ISS
List item, rate and withholding
After migration
NFS-e Nacional with the same key

Plans from R$ 59.90/month

14-day free trial and no setup fee. After the trial, the chosen plan is billed monthly.

  • Starter

    R$ 59.90/ month

    1 CNPJ

    100 invoices included / month

    R$ 0.20 per additional invoice

    • Issuance and capture of NF‑e, NFS‑e and CT‑e
    • Issuance of NFC‑e, NFCom and NFS‑e Nacional
    • Ticket support

    14-day free trial

    Subscribe
  • Growth

    R$ 109.90/ month

    Up to 5 CNPJs

    100 invoices per CNPJ included / month

    R$ 0.15 per additional invoice

    • Issuance and capture of NF‑e, NFS‑e and CT‑e
    • Issuance of NFC‑e, NFCom and NFS‑e Nacional
    • Ticket support

    14-day free trial

    Subscribe
  • Scale

    Recommended

    R$ 529.00/ month

    Unlimited CNPJs

    4,000 invoices included / month

    R$ 0.12 per additional invoice

    • Issuance and capture of NF‑e, NFS‑e and CT‑e
    • Issuance of NFC‑e, NFCom and NFS‑e Nacional
    • Ticket support

    14-day free trial

    Subscribe
  • Enterprise

    Custom

    From R$ 1,058.00

    Quota to be defined

    Additional invoice price to be defined

    • Issuance and capture of NF‑e, NFS‑e and CT‑e
    • Issuance of NFC‑e, NFCom and NFS‑e Nacional
    • Support through a direct channel
    • Multiple payment methods
    Talk to sales

CaseTax invoices

Theos integrated in 1 day

Since then it has issued more than 350,000 invoices with Openi.

to integrate the API
1 day
invoices issued since the integration
350k+
From issuance to invoice event
Example
Invoice sent (API)Event (webhook)
  • NFS-e · Company 1

    R$ 1,840.00

    Authorized

    Authorized

    Document available

  • NF-e · Company 2

    R$ 12,300.00

    Authorized

    Authorized

    Document available

  • NFS-e · Company 1

    R$ 560.00

    Rejected

    Rejected

    With the reason

  • NF-e · Company 3

    R$ 4,215.90

    processing

    Processing

Sample data, to illustrate the flow.

Frequently asked questions

Does it work in my city?

Look up the city with the municipal services and tax codes endpoints: they tell you what the city accepts. If in doubt, talk to our team before signing up.

What happens when my city migrates to the national standard?

You start issuing on the NFS-e Nacional route, with the same API key, the same company registration and the same response format.

The software I use doesn't issue this invoice. What now?

Recommend Openi to your software vendor: they integrate the API in a few lines and start issuing for you and their other clients. If you prefer, talk to our team and we'll talk to them.

Do I need a digital certificate?

Yes, for the services that depend on it. The certificate is registered on the company through the API, at creation or later, and its document must match the company's.

Can I issue for several CNPJs?

Yes. One key serves several companies: Inicial covers 1 CNPJ, Expansão up to 5 and Escala unlimited CNPJs.

How does the free trial work?

You pick a plan and get a 14-day free trial, with no setup fee. The staging environment lets you validate the integration before issuing in production.

How much does it cost per month?

Plans start at R$ 59.90 a month with 100 invoices included. Expansão costs R$ 109.90 and covers up to 5 CNPJs, and Escala costs R$ 529.00 with 4,000 invoices. Each extra invoice costs from R$ 0.20 down to R$ 0.12.

Role
Monthly volume of invoices
Invoice types (optional)

By sending, you agree to the Privacy Policy (in Portuguese).