Generate Invoice

POST /v1/generate

Generates a pixel-perfect PDF invoice from a JSON body.

Parameters

template string (required)

The template ID to use (e.g., minimal, standard).

invoice_number string (required)

Your internal invoice reference string.

items array (required)

A list of items. Each should have description, quantity, and price.

async boolean (query)

If true, returns immediately and delivers PDF via webhook.

Response

{
  "invoice_id": "inv_123...",
  "status": "ready",
  "pdf_url": "https://..."
}