Skip to content

update_invoice_draft

Changes a draft: the fields you send, and its lines whole where you send lines, so read it with get_invoice and send every line back. Typed inside bash, where help update_invoice_draft prints the same.

Usage: update_invoice_draft NUMBER [options]
Changes a draft: the fields you send, and its lines whole where you send
`lines`, so read it with `get_invoice` and send every line back. An
issued invoice is refused.
Options:
--number N (required)
The invoice's number from list_invoices.
--client JSON
Who it is billed to. A client in the EU with a VAT number is billed with reverse charge unless tax says otherwise.
--lines JSON ... (give the flag again for each)
The lines, whole and in order: a line left out is dropped.
--currency USD|EUR|GBP
The owner's default when left out.
--terms N
Days the client has to pay. The owner's default when left out.
--tax none|vat|reverse
How tax is added: none, VAT at vat_rate, or reverse charge.
--vat_rate N
--note TEXT
Printed at the foot of the invoice.
--issued_on TEXT
The day it is dated, as YYYY-MM-DD, where the owner names one. Left out or empty, it is dated the day the owner issues it.
--json OBJECT
Every argument at once, as one JSON object; --json - reads it from stdin.