Create or update an invoice draft
Creates a sales-invoice draft (or updates an existing one via draft_id). Monetary fields are integer cents; VAT rates are basis points (25.5% = 2550); line quantities are decimal strings. Delivery channel is one of maventa_einvoice, email_pdf, or pdf_download. Requires a write-scoped key.
Authorizations
Portal API key minted in portal Settings → API access. Scope read or write; pinned to one company. Send as Authorization: Bearer lac_sk_....
Body
Input for creating or updating a sales-invoice draft. All money in integer cents; dates YYYY-MM-DD.
An invoicing counterparty (the customer you invoice), with e-invoice routing and per-party defaults. Rates in basis points (25.5% = 2550).
Target company. Optional for API keys.
Existing draft to update; omit to create a new draft.
YYYY-MM-DD.
YYYY-MM-DD.
YYYY-MM-DD.
Payment terms in days.
How the invoice is delivered.
maventa_einvoice, email_pdf, pdf_download Subject line when delivery_channel is email_pdf.
Email body when delivery_channel is email_pdf.
Invoice total net in integer cents.
Invoice total VAT in integer cents.
Invoice total gross in integer cents.