Read Shop order drafts

GET /shop/sessions?status=PENDING

Read order drafts in the Shop. The API calls them sessions. A session is not a delivery and reading one does not place an order. Saved, reusable Order lists are also sessions, but use status=TEMPLATE. These routes require Deliveries:READ_LIST permission.

List sessions

  • status=PENDING: Open order drafts. A draft with a preferred delivery date in the past may be returned with response status EXPIRED.
  • status=ORDERED: Sessions for orders already placed.
  • status=TEMPLATE: Saved Order lists.
  • cursor: Numeric cursor from the previous response; pass it unchanged to read the next page.

Omit status to list all session types. The response has up to 25 entries per page, with list and a numeric cursor or null. Entries include id, status, total, suppliers and completed; a name may also be present.

Use GET /shop/sessions/{id} with the numeric session ID to read its products, items, delivery details and Item order. This is useful for inspecting a draft or an already placed order, not for confirming receipt of goods; read Shop deliveries for that.

Status codes

  • 200 on success, including an empty list.
  • 400 for an invalid status, cursor or session ID.
  • 404 if a requested session ID does not exist.

Example request

GET /shop/sessions?status=PENDING