Skip to content
rendoc
Use Case

Invoice PDF Generation

Automate your billing workflow. Generate professional invoices as PDFs from templates with dynamic data — line items, taxes, totals, and your branding. All via a simple API call.

Generate an invoice in seconds

Pass your invoice data and get a pixel-perfect PDF back. Use the JS SDK or call the REST API directly.

JavaScript SDK
import Rendoc from "rendoc";

const rendoc = new Rendoc("your_api_key");

const pdf = await rendoc.documents.generate({
  template_id: "tpl_invoice_001",
  data: {
    company_name: "Acme Corp",
    invoice_number: "INV-2026-042",
    date: "2026-03-25",
    due_date: "2026-04-25",
    items: [
      { description: "Web Development", qty: 40, rate: 150, amount: 6000 },
      { description: "Design Review", qty: 8, rate: 120, amount: 960 },
    ],
    subtotal: 6960,
    tax: 696,
    total: 7656,
    currency: "USD",
  },
});
cURL
curl -X POST https://rendoc.dev/api/v1/documents/generate \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "tpl_invoice_001",
    "data": {
      "company_name": "Acme Corp",
      "invoice_number": "INV-2026-042",
      "items": [
        { "description": "Web Development", "qty": 40, "rate": 150, "amount": 6000 }
      ],
      "total": 6960,
      "currency": "USD"
    }
  }'

Why developers choose rendoc for invoices

Dynamic line items

Pass arrays of products, services, or charges. rendoc loops and renders them automatically in your template.

Multi-currency support

Format amounts in any currency. Your templates control number formatting, symbols, and locale.

Consistent branding

Upload your logo, choose fonts, and set colors once in the template. Every invoice matches your brand.

Batch generation

Generate hundreds of invoices in a single API call. Perfect for monthly billing runs.

Webhook notifications

Get notified when PDFs are ready. Integrate with your billing pipeline without polling.

Secure storage

Generated PDFs are stored securely and accessible via signed URLs. Set expiration as needed.

Start generating invoices today

100 documents per month free. No credit card required. Upgrade as your billing volume grows.