Creates and submits an external delivery.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
An external delivery is a delivery for an order that did not get created via Apicbase. This endpoint allows you to specify a list of items being delivered. The settings specified in the payload allow you to also immediately update stock and price for the delivered packages.
Validation is performed on the package IDs. Packages have to belong to the specified supplier, be active and orderable.
A list of accepted values for the intake_reason field can be queried from the Get Intake Reason Codes endpoint.
It is not possible to delete an external delivery.
Returnable packages go in returnable_packages, following the rules on Create Delivery Draft. Each line's supplier package must be from the given supplier and its stock item marked as returnable, but it doesn't have to be orderable. A line coming in has a positive quantity, a line going back to the supplier has a negative one, and deposit_value has the same sign or is 0. Returnable lines take update_price instead of has_updated_price, as the goods lines do.
