GET /reports/deliveries
Read a paginated list of Shop delivery records. To get completed deliveries, set both stage=PROCESSED and status=COMPLETED. Without these filters, the endpoint can also return pending or cancelled deliveries. It does not return order lists or every part of the Shop screen; see Shop for the operational endpoints.
curl 'https://app.yourbarmate.com/api/reports/deliveries?stage=PROCESSED&status=COMPLETED&limit=25' \
--header 'accept: application/json' \
--header 'authorization: token YOUR_API_TOKEN'
Parameters
All query parameters are optional.
stage:PENDINGorPROCESSED.status:CANCELLEDorCOMPLETED.supplier: Numeric supplier ID.from: Earliest timestamp to include, in milliseconds since the Unix epoch.to: Latest timestamp to include, in milliseconds since the Unix epoch.limit: Maximum number of results. Defaults to100;ALLrequests all matching deliveries and should be used with care.cursor: Cursor returned by a previous request for the next page.
Status codes
200on success400on invalid request parameters
Response properties
list: Array of deliveries. Each entry includesid,scheduled,status,totalandorder. Depending on the delivery and permissions, it may also includeprocessed,supplier,reference,locationandproducts.cursor: Cursor for the next page, ornullwhen there are no more results.
The total object includes product_count. Its value and the products list are available only when the API token has permission to read delivery totals.