Skip to main content
GET
List orders
Required scope: orders:read. The request is safe to retry. The list returns order summaries from newest to oldest. Filter by status or by an exact customer_reference. A customer reference is not unique, so the filter can return several orders. When has_more is true, send next_cursor as cursor in the next request and keep the same filters. A summary does not contain the drivers, the available actions, or the revision. Read Get an order for them. Read Create and find orders for an example.

Authorizations

Authorization
string
header
required

OAuth 2.0 client credentials.

Scopes

orders:read

Read customer orders.

Headers

X-Request-Id
string

A caller-supplied request identifier for support.

Required string length: 1 - 255

Query Parameters

cursor
string

The opaque cursor from the previous response.

page_size
integer
default:50

The number of resources to return.

Required range: 1 <= x <= 100
status
enum<string>

Return only orders with this status. Overall order state derived from all vehicles. accepted means that no driver has a booking on the order and no vehicle is in transit; a truck carrier booking does not change this status. driver_assigned means that at least one driver booked part of the order before any vehicle was collected; in_transit means that at least one vehicle was collected and the order is not complete; delivered means that every vehicle is delivered; cancelled means that you or Bahn cancelled the order.

Available options:
accepted,
driver_assigned,
in_transit,
delivered,
cancelled
customer_reference
string

Return orders with this exact customer reference.

Required string length: 1 - 255

Response

The order page.

Cursor-paginated list of order summaries.

data
object[]
required

Orders in this page.

next_cursor
string | null
required

Opaque cursor for the next page, or null after the final page.

has_more
boolean
required

Whether another page is available.