Skip to content

NF-eIBS and CBS on NF-e

NF‑e API: issue electronic invoices from your system

An nfe api for those who sell products: send the sale as JSON and get the SEFAZ-authorized XML and the DANFE ready, with IBS and CBS.

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

Every NF‑e now carries IBS and CBS. Does your system know how to fill them in?

The tax reform put two new taxes on every invoice item. Until 2033, ICMS, PIS, Cofins, IBS and CBS coexist and change weight every year. Whoever calculates wrong loses the sale at SEFAZ or the client's credit.

  1. 2026

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

  2. April 1, 2026

    The IBS and CBS fields become mandatory on the NF‑e (Ato Conjunto RFB/CGIBS nº 1).

  3. 2027

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

  4. 2029 to 2032

    ICMS and ISS fall year by year while IBS rises. Two systems on the same invoice.

  5. 2033

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

NF-e issuance · before and after
  1. Item 1: IBS/CBS group not provided
  2. NF-e rejected. Goods on hold.
  3. Client asks for a corrected invoice to take the credit
  4. Openi: ibs_cbs_* in the same JSON, validated before sending
  5. NF-e authorized · XML and DANFE ready
  • Invoice rejected at SEFAZ

    Item without the IBS/CBS group or with the wrong classification: the invoice bounces and the goods don't ship.

  • Client without credit

    Your business client only takes the credit on your invoice. A wrong invoice becomes a discount or a new supplier.

  • Rules that change every year

    Transition rates from 2026 to 2033. Every new year is an update to your system.

  • Two systems on one invoice

    ICMS and IBS, PIS/Cofins and CBS at the same time. Two calculations per item.

The IBS and CBS fields are already in the NF-e API, on items and totals, in the same JSON you use to issue. And you can validate and calculate the invoice before transmitting.

How the invoice issuing 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 NF-e before issuing in production.

  3. 3Send the NF-e data as JSON

    POST /v1/invoices/product/sent validates the data and returns the invoiceId with status processing.

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

    Openi transmits it to SEFAZ, the sent-product-invoice webhook reports the authorization and the XML and DANFE become available.

Your first NF-e in a few lines

# Shortened body. The full schema is in the documentation.
curl -X POST "https://nf.openi.com.br/v1/invoices/product/sent" \
  -H "Authorization: Bearer $DOCS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "natureza_operacao": "Venda",
    "data_emissao": "2026-11-30",
    "tipo_documento": 1,
    "finalidade_emissao": 1,
    "cnpj_emitente": "YOUR_CNPJ",
    "nome_emitente": "Razao Social Emitente Ltda",
    "uf_emitente": "SP"
  }'

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.

Tax reform: the CBS and IBS fields are already in the API

Send IBS and CBS on the items and totals of the invoice, in the same JSON you already use to issue.

Mandatory on NF-e since
April 1, 2026
Legal basis
Ato Conjunto RFB/CGIBS nº 1
Already in the API
NF-e, NFC-e, NFS-e Nacional and the batch CSV
POST /v1/invoices/product/sent · itens[0]Tax reform fields
{  "descricao": "Descrição do produto",  "cfop": "5102",  "valor_bruto": "47.23",  "icms_situacao_tributaria": "41",  "ibs_cbs_situacao_tributaria": "000",  "ibs_cbs_classificacao_tributaria": "000001",  "ibs_cbs_base_calculo": "47.23",  "ibs_uf_aliquota": "0.10",  "ibs_uf_valor": "0.05",  "ibs_mun_aliquota": "0.00",  "ibs_mun_valor": "0.00",  "cbs_aliquota": "0.90",  "cbs_valor": "0.43"}

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

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.

Does it work in every state?

The NF-e follows the same national layout in every state, and the API sends the invoice to the issuer's authorizing SEFAZ. The JSON is the same whatever the state.

What happens when SEFAZ is down?

Issuing is asynchronous: the API takes the invoice, returns the invoiceId with status processing and reports by webhook when SEFAZ answers. On NFC-e, the API also handles contingency.

Do NF-e and NFC-e use the same integration?

Yes. The same key, the same authentication and the same response format. Only the route changes: product for NFe and consumer for NFCe.

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.

Is the NF-e API free?

The trial is: 14 days to integrate and issue in staging. After that, plans start at R$ 59.90 a month with 100 invoices included.

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