PDFPipe

Brasil

Invoice and DANFE PDF API for Brazil

Generate commercial invoices, receipts, and DANFE-style layouts as PDFs for the Brazilian market, with CNPJ and CPF fields, the access key, and BRL formatting. Render the printable document your customers expect, from one API call.

Render the printable document, not the fiscal record

A Nota Fiscal Eletronica (NF-e) is authorized by SEFAZ, the state tax authority. PDFPipe does not issue NF-e. What it does is render the DANFE, the printable representation of an authorized NF-e, plus commercial invoices, receipts (recibos), and quotes (orcamentos), from your data.

JavaScript
// A commercial invoice or DANFE layout plus data -> a PDF.
const res = await fetch("https://api.pdfpipe.xyz/v1/pdf", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.PDFPIPE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    template_id: "tmpl_br_danfe",
    data: {
      emitente_cnpj: "12.345.678/0001-90",
      destinatario_cpf: "123.456.789-00",
      chave_acesso: "3526 0412 3456 7800 0190 5500 1000 0001 2310 0000 0017",
      items: [{ desc: "Assinatura SaaS", valor: "100,00" }],
      total_brl: "100,00",
    },
  }),
});

Built for Brazilian documents

CNPJ and CPF

Render the emitter CNPJ, recipient CNPJ or CPF, and the formatted access key (chave de acesso) on the document.

DANFE layout

Lay out the DANFE from the authorized NF-e data you already have, including the access key barcode area.

BRL formatting

Brazilian real with comma decimals and dot thousands separators, rendered correctly.

Common uses in Brazil

  • DANFE PDFs generated from authorized NF-e data.
  • Commercial invoices and receipts (recibos) for services.
  • Quotes (orcamentos) and statements for customers.
  • Bulk document runs through the batch endpoint.

Frequently asked

Can PDFPipe issue a Nota Fiscal (NF-e)?

No. An NF-e is authorized by SEFAZ through an integrator or the government portal. PDFPipe renders the DANFE, the printable representation of an already authorized NF-e, along with commercial invoices and receipts.

Can it render the DANFE from my NF-e data?

Yes. Build a DANFE template, send the authorized NF-e fields including the access key, and the API returns the printable PDF.

Does it handle CNPJ, CPF, and BRL formatting?

Yes. These are template fields. Render the formatted CNPJ or CPF and Brazilian real values with comma decimals.

Can the page and documents be in Portuguese?

Yes. Your template and data are plain HTML and text, so Portuguese content renders exactly as written.

Which PDF API do you need?

These pages cover related search intents. Pick the one that matches what you are building.

500 free documents a month, flat pricing after that, and a live playground you can try without signing up.