Edits a delivery.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
The update_stock and delivered_packages fields can't be edited on a delivery that has been submitted. The delivery_date can only be edited on a delivery that has been submitted if the user has the Edit closed deliveries permission. If this is not the case, this attribute will be ignored in the payload with no warning.
Returnable packages
returnable_packages takes the lines described on Create Delivery Draft, on draft and submitted deliveries alike. The list sent replaces the delivery's returnable lines: a line with a supplier package that is left out is removed, so [] removes all of those, and leaving the field out keeps every line. Without the Returnables module, the list is refused with 400, unless it is empty and the delivery has no returnable lines.
A deposit charged on a product, such as the deposit on bottles, comes from the supplier's delivery note and has no supplier package. Such a line is never removed: send it with its id, quantity and deposit_value to keep or change it. Left out, it stays on the delivery with a quantity and deposit of 0.
