Update a draft invoice
PUT
https://app.speybooks.com/api/v1/invoices/{id}Replaces the fields and line items of a draft invoice. Only
invoices with status draft can be updated; an issued invoice
cannot be updated.
This is a full replacement, not a merge: the request body has
the same shape as create (minus the immutable invoiceType
and status), existing line items are deleted and replaced
with the provided set, and totals are recomputed. Metadata, if
provided, also replaces existing metadata entirely. Line
amounts use the create format: exact decimal strings, pounds.
Path parameters
idstringrequiredBody parameters
contactIdstringrequireddueDatestringrequiredissueDatestringrequiredlinesarray<object>requiredShow child parameters
descriptionstringrequiredquantitystringrequiredunitPricestringrequiredvatRateintegerrequiredaccountIdstringoptionalmetadataobjectoptionalnotesstringoptionalreferencestringoptionaltermsstringoptionalResponse
200Default Response
Show response fields
idstringinvoiceNumberstringError codes
400Default Response
404Invoice not found.