Update Ar Invoice
Partial update of a draft — an omitted field is left unchanged.
ZCT-512: this route is declared PATCH but bound the create schema and dumped it whole, so every field the caller omitted was written at its Pydantic default. A lines-only edit silently cleared the customer; a header-only edit deleted every line; an omitted currency re-denominated a foreign-currency draft to CHF; and an omitted doc_type/credited_invoice_id turned a credit note into an invoice and cut its link to the document it credits. Nothing in the response distinguished the fields it had changed from the ones it had wiped.
Omitting lines now leaves the stored lines alone; sending [] still deletes them all. An explicit null still clears a nullable header field.
Request
- Base URL: https://app.zeno-works.ch (the document declares no server; this is the origin it was published from)
- URL: https://app.zeno-works.ch/companies/{company_id}/ar/invoices/{invoice_id}
- Auth: none declared
Path parameters
Headers
Cookies
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.