Skip to main content
POST
Generate PDF

Headers

string
required
Bearer YOUR_API_KEY
string
required
application/json

Body

string
required
Document type. Either Invoice or Quote.
string
required
Document number/ID (e.g., INV-0001 or QTE-0001).
string
required
Issue date in YYYY-MM-DD format.
string
required
Client’s full name.
string
required
Client’s email address.
string
required
Your (partner’s) full name or business name.
string
required
Your email address.
number
required
Total amount to display on the document.
array
required
Array of line items to display in the document.
string
Due date in YYYY-MM-DD format. Used for invoices.
string
Expiry date in YYYY-MM-DD format. Used for quotes/proposals.
string
Client’s company name (optional).
string
Your company name (optional).
string
URL or base64 data URI of your logo image.
number
Subtotal amount. If omitted, it’s calculated from line items.
number
Tax rate as percentage (0–100). Defaults to 20.
string
Currency symbol (e.g., $, £, ). Defaults to $.
string
Additional notes to display on the document.
string
Terms and conditions text.
string
Purchase Order number to display on the invoice.
number
Discount amount to subtract from subtotal.
number
Shipping/delivery cost to add to the total.
string
Font style preset: elegant (default), modern, or classic.
number
Text size scale (0.8 to 1.2). Defaults to 1.
boolean
Whether to show the hero banner image. Defaults to true.
string
Layout style: standard (default) or overlay.
string
URL of the hero banner image.
string
Hex color code for accent color (e.g., #1D4D4F).
boolean
Whether this is a quote (changes labels like “Valid until” vs “Due date”).
string
Introduction text for quotes.
string
Markdown content for the document body (e.g., scope of work).
boolean
Whether the document requires a signature block.
number
Number of days until payment is due after signing (for quotes).

Response

Returns a binary PDF file with Content-Type: application/pdf.

Request Example

cURL
JavaScript