Skip to content

InvoicePDFs API

Convert JSON invoice data into professional PDF invoices with a single API call.

What is InvoicePDFs?

InvoicePDFs is a developer-focused API that takes structured invoice data and produces pixel-perfect PDF documents. No HTML templates to manage, no PDF libraries to wrangle — just send JSON, get a PDF.

Key Features

  • Stateless rendering — Send invoice data, receive a PDF. No state to manage.
  • Managed invoices — Or use the full CRUD lifecycle: create, finalize, send, track.
  • Accurate calculations — Decimal-precision math for taxes, discounts, and totals.
  • Professional templates — Clean, modern invoice designs out of the box.
  • Flexible branding — Custom colors, fonts, logos, and footer text.
  • Rich invoice data — Line-item discounts, document-level discounts, shipping, custom fields, payment info, and more.

Quick Example

curl -X POST https://invoicepdfs.com/api/v1/documents/render \
  -H "Authorization: Bearer inv_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "document_type": "invoice",
    "data": {
      "invoice_number": "INV-2026-001",
      "issue_date": "2026-07-20",
      "due_date": "2026-08-19",
      "currency": "USD",
      "seller": { "name": "Acme Corp", "email": "billing@acme.com" },
      "buyer": { "name": "Jane Smith", "email": "jane@example.com" },
      "line_items": [
        {
          "name": "Web Development",
          "quantity": "10",
          "unit_price": "150.00",
          "unit": "hours",
          "taxes": [{ "name": "Sales Tax", "rate": "8.875" }]
        }
      ]
    },
    "template": { "id": "tpl_modern" },
    "output": { "format": "pdf", "delivery": "url" }
  }'

Two Ways to Use the API

1. Stateless Document Rendering

Send complete invoice data and get a PDF back immediately. No resources are created or stored (except the rendered PDF temporarily).

Best for: Systems that already manage their own invoice data and just need PDF generation.

Documents API Reference

2. Managed Document Lifecycle

Create documents as draft resources at /api/v1/documents, edit them, finalize, render to PDF, and send via email. Full CRUD with state management.

Best for: Applications that want InvoicePDFs to be the system of record for invoices.

Documents API Reference

Next Steps