Skip to main content

Invoices

📄️ Create Invoice

Creates an invoice for a customer. Can include specific unposted transactions, create new transactions inline (max 50), or create for outstanding unposted transactions. When IncludeAgreementUsage is true also sweeps unbilled agreement usage onto the statement for the customer and any child accounts (requires the 'customer_billing_agreements' feature flag to be enabled on the tenant — otherwise IncludeAgreementUsage is silently ignored). When EmailInvoice is true, the invoice is queued for automatic emailing via the email-invoices queue and recorded in batch history. When a child account is supplied (requires the 'one_time_child_to_parent_bill' feature flag), the statement is generated on its parent as a consolidated parent + child bill containing the passed transactions; PreviewToken is not supported in that case.