Receive External Delivery

Creates and submits an external delivery.

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

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.

Body Params
string
required

An outlet ID.

string
required

A supplier ID.

date-time

The delivery's actual delivery date and time. Can not be in the future. Defaults to now.

boolean
Defaults to false

Whether the delivered items should be added to stock. Default is False.

purchase_order_packages
array of objects
purchase_order_packages
returnable_packages
array of objects

Returnable packages on the delivery, such as crates, kegs and pallets, one line per item and direction. 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