The editor takes a single JSON object that describes one
document — an invoice, receipt, quote, refund, or
cancellation. The most important fields are:
document_type — what kind of document
to render
seller and customer —
parties on the document
items — line items with description,
quantity, and unit price
currency, tax,
discount, total — money
fields and breakdown
Numeric fields accept either a JSON number or a numeric
string. Dates use YYYY-MM-DD. Currency is an
ISO 4217 code such as USD or EUR.
For the full field reference and per-document-type rules,
see the
Invoice PDF API documentation.