Edit Delivery

Edits a delivery.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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.

Path Params
string
required

A delivery's ID.

Body Params
date

Date and time of delivery.

boolean
Defaults to true

If false, will not update stock when the delivery is submitted.

delivered_packages
array of objects

A list of packages delivered

delivered_packages
string

Any optional remarks.

float

A total discount value applied to the delivery.

string

Any optional remarks about discounts.

float

Total deposit of the returnable packages coming in. When the delivery has lines coming in, this total comes from their deposits, and a different value is refused.

float

Total deposit of the returnable packages going back to the supplier, as a positive amount. When the delivery has lines going out, this total comes from their deposits, and a different value is refused.

string

Any optional remarks about returnables.

returnable_packages
array of objects

Returnable packages on the delivery, such as crates, kegs and pallets, one line per item and direction. The list sent replaces the delivery's lines with a supplier package, and leaving it out keeps them. A line without a supplier package is never removed: left out, its quantity and deposit become 0. Needs the Returnables module.

returnable_packages
Response

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json