Skip to content

NFS-e NacionalReady for IBS and CBS

NFS‑e Nacional API: issue NFS‑e from your system

An NFSe API for the national standard: send the data as JSON and get the NFS-e XML and PDF ready, with the IBS/CBS group of the tax reform.

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 · NFS-e

The service invoice you used to issue is gone. And the reform won't wait for your system.

The NFS-e got a national standard and now carries IBS and CBS. ISS fades out until 2033, while your client's tax credit depends on what each invoice says.

  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. 2029 to 2032

    ISS falls year by year while IBS rises. ISS and IBS/CBS live on the same invoice.

  5. 2033

    ISS ceases to exist. Only IBS and CBS.

NFS-e issuance · before and after
  1. Previous layout: IBS/CBS group missing
  2. codigo_indicador_operacao not provided
  3. NFS-e rejected. Client has no invoice.
  4. Openi: Sistema Nacional NFS-e rules checked before sending
  5. NFS-e Nacional authorized · XML and PDF ready
  • Rejected invoice

    Incomplete IBS/CBS group, wrong operation indicator or old layout: the invoice bounces and the client has no document.

  • Client without credit

    Under the reform, the buyer's credit depends on your invoice. A wrong invoice becomes a discount at the next negotiation.

  • One rule per city

    Each municipality migrates at its own pace, and your team maintains integrations that change without notice.

  • Two systems at once

    Until 2033, ISS and IBS/CBS coexist. Two calculations to get right on every invoice.

Openi's NFS-e API already has the IBS/CBS group and checks the Sistema Nacional NFS-e rules before transmitting: the error shows up for you, not for your client.

How the national service invoice API 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-nacional/sent validates the data and returns the invoiceId with status processing.

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

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

Your first 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-nacional/sent" \
  -H "Authorization: Bearer $DOCS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "data_emissao": "2026-11-30T10:00:00-03:00",
    "data_competencia": "2026-11-30",
    "cnpj_prestador": "12345678000190",
    "cnpj_tomador": "98765432000110",
    "codigo_municipio_prestacao": "3550308",
    "codigo_tributacao_nacional_iss": "010101",
    "descricao_servico": "Consultoria em tecnologia da informação",
    "valor_servico": "1500.00"
  }'

Differentiators

Bulk issuing from a spreadsheet

Batch issuing of NFS-e Nacional: generate the template, fill one row per invoice and upload the CSV. The API validates the file before creating the batch.

  • POST /v1/invoices/service-nacional/sent/batch/generate-template
  • Template, CSV upload and validation
  • sent-service-invoice-nacional event

Several CNPJs in one account

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

Webhooks

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

Technical support in Portuguese

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

Ready for the tax reform

The IBS/CBS group of the NFS-e Nacional is already in the API, in the same issuing JSON and in the batch CSV.

IBS/CBS group
In single issuing and in the batch CSV
Before sending
Sistema Nacional NFS-e rules checked
Also checked
Municipality (IBGE), NBS and operation indicator
POST /v1/invoices/service-nacional/sent · shortenedIBS/CBS group
{  "descricao_servico": "Consultoria em tecnologia da informação",  "codigo_tributacao_nacional_iss": "010101",  "valor_servico": "1500.00",  "finalidade_emissao": "0",  "consumidor_final": "0",  "codigo_indicador_operacao": "100301",  "indicador_destinatario": "0",  "ibs_cbs_situacao_tributaria": "000",  "ibs_cbs_classificacao_tributaria": "000001"}

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 for every municipality?

The API issues NFS-e in the national standard and also municipal NFS-e, with each city's service options and tax codes. Look up your municipality with the municipal services endpoint in the documentation.

How is the API different from the government's free national issuer?

The web Emissor Nacional issues invoice by invoice, by hand. The API issues from your system, at scale and for several CNPJs: the system sends the data as JSON and gets the XML, the PDF and the status by webhook, with nobody typing.

Does the API already follow the tax reform?

Yes. The IBS/CBS group of the NFS-e Nacional is already in single issuing and in the batch CSV, and the API checks the Sistema Nacional NFS-e rules before transmitting.

How do I download the XMLs of issued invoices?

Through the API: look up each invoice or request a batch download of a period. The NFS-e Nacional received against your CNPJ are also available with the XML, without going to the ADN by hand.

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).