Update an invoice with override fields, line item descriptions, and/or PDF attachments.
| Field | Affects this invoice | Persists to future invoices |
|---|---|---|
| due_at | ✓ | ✗ |
| purchase_order | ✓ | ✓ (if persist_purchase_order=true) |
| billing_address | ✓ | ✓ (Updates subscription) |
| company_name | ✓ | ✓ (Updates subscription) |
| accounts_payable_emails | ✓ | ✓ (Updates subscription) |
| invoice_memo | ✓ | ✓ (if persist_memo=true) |
| line_item_overrides | ✓ | ✗ |
Upload PDF attachments as multipart form data using the pdf_attachments field.
API key for authentication
Input serializer for updating an invoice.
Override the due date for this invoice. Pass null for no change.
Purchase order with code. Pass null for no change, empty object or empty code to clear.
Billing address. Pass null for no change. Changes will reflect in the subscription.
Company name for the invoice. Pass null for no change, empty string to clear. Changes will reflect in the subscription.
255List of accounts payable contact emails. Pass null for no change, empty array to clear. Changes will reflect in the subscription.
Memo or notes to appear on the invoice. Pass empty string to clear.
2000Internal reason for updating the invoice (for audit purposes)
500Override descriptions for specific line items. Only affects this invoice, does not persist to future invoices.
Whether to send the invoice to the customer after updating. Defaults to false.
Whether to persist the invoice memo on all future invoices. Defaults to false.
Whether to persist the purchase order number on all future invoices. Defaults to false. When true, the PO number will be applied to all future invoices for this subscription. When false, the PO number is only set for this specific invoice.
Whether to show brick descriptions on the invoice PDF. Defaults to true if not specified.
PDF files to attach to the invoice.
Configuration for managing attachments. Each item specifies either an existing attachment to keep (by attachment_id) or a new file to add (by new_file_index), along with a 'target' to specify where to store it ('invoice' or 'subscription'). The order in this array determines the unified order of attachments in the PDF. Existing attachments NOT in this list will be DELETED. If omitted, pdf_attachments will replace all existing invoice-level attachments.
Tax ID for the invoice. Changes will reflect in the subscription.
255Output serializer for successful invoice update.
The unique identifier of the updated invoice
Signed URL to download the updated invoice PDF. Expires in 1 hour.
Current attachments for this invoice as a flat array. Array order reflects the PDF merge order (unified across both levels).