Change a draft
invoices_updateChange a draft quote or invoice: give only what changes; customer and items replace the old ones. A sent document can't change: void it with invoices_void and create a new one. Costs $0.01 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ||
| notes | No | Printed above the lines, e.g. "Thank you for your order" or a project reference. | |
| currency | No | ISO 4217, e.g. "USD", "EUR" or "JPY". | |
| customer | No | Who the document is for. Link a CRM record with contact_id or company_id, or give name and email (an email that matches a CRM contact links it). What is given here is printed as it is. | |
| due_date | No | YYYY-MM-DD, or null to go back to the default. | |
| e_invoice | No | Invoices and their credit notes as EN 16931 e-invoices (German B2B invoices must be from 2027): factur-x (Factur-X/ZUGFeRD, the XML inside the PDF/A-3) or xrechnung (XRechnung 3.0, its own XML beside the PDF), checked against the EN 16931 schema before sending. "" is the default: none, except that from 2027 an invoice from a German business to a German business above EUR 250 is a factur-x; "none" opts out (a business under the EUR 800,000 turnover allowance until 2028). Needs the customer's country. Default: the profile's. | |
| invoice_id | Yes | The invoice_id invoices_create returned (quotes and credit notes have one too). | |
| issue_date | No | YYYY-MM-DD, or null to go back to the default. | |
| supply_date | No | YYYY-MM-DD, or null to go back to the default. | |
| valid_until | No | YYYY-MM-DD, or null to go back to the default. | |
| payment_link | No | An https link to pay this document. Default: the profile's payment_link. | |
| supply_until | No | YYYY-MM-DD, or null to go back to the default. | |
| tax_exemption | No | Why lines with tax_rate 0 carry no tax, printed on the invoice as the law asks: exempt, zero_rated, reverse_charge (the customer accounts for the VAT), intra_eu (goods to a business in another EU country), export (goods leaving the EU), outside_scope, small_business (a business under its country's small-business VAT exemption, such as UStG §19 or art. 293 B CGI: no line may carry tax). Needed in the EU for any line without tax. Default: the profile's. | |
| vat_exchange_rate | No | For an invoice in another currency than the national one of the business's country: one unit of it in the national currency, for the VAT shown in both. Default in the EU: the European Central Bank's rate for the day of supply; UK businesses give it. | |
| payment_terms_days | No | ||
| tax_exemption_note | No | The wording printed for the exemption instead of the standard one, e.g. "Steuerbefreit als Kleinunternehmer nach § 19 UStG". |