List Orders
Changed onList the orders for this location, from any integration, including their payments and line items. The order_date range is always bounded to the last 90 days, regardless of any other filters supplied.
Request
- Base URLhttps://api.7shifts.com
- Auth
- OAuth 2Authorization codehttps://app.7shifts.com/oauth2/authorizeClient credentialsPasswordToken URLhttps://app.7shifts.com/oauth2/token
- or API key in cookie 7session
Path parameters
The company_id
The 7shifts location these orders belong to.
Query parameters
It is one representation of ISO8601/RFC3339 date time format.
Only return orders with an order_date on or after this date. Bounded to at most 90 days in the past.
It is one representation of ISO8601/RFC3339 date time format.
Only return orders with an order_date on or before this date.
It is one representation of ISO8601/RFC3339 date time format.
Only return orders modified on or after this date. Cannot be combined with modified_since.
It is one representation of ISO8601/RFC3339 date time format.
Only return orders modified on or before this date. Cannot be combined with modified_since.
It is one representation of ISO8601/RFC3339 date time format.
Only return orders modified on or after this date. Cannot be combined with modified_gte or modified_lte.
Only return orders with this status.
Only return orders for this external user id.
Cursor for the next or previous page of results.
The number of results desired per page.
Headers
An API version
7shifts API version
Company GUID
Response
OK
Example response
{
"data": [
{
"external_id": "10001-ext-id-order",
"location_id": 24705,
"revenue_center_external_id": "5678-ext-id-bar",
"dining_option_external_id": "1234-ext-id-dine-in",
"external_user_id": "42-ext-id-employee",
"order_date": "2023-12-31T15:45:23-06:00",
"closed_date": "2023-12-31T15:45:23-06:00",
"external_business_date": "2023-12-31T15:45:23-06:00",
"net_total": 3000,
"gross_total": 3399,
"tax": 399,
"item_count": 2,
"external_created": "2023-12-31T15:45:23-06:00",
"external_modified": "2023-12-31T15:45:23-06:00",
"created": "2023-12-31T21:45:23+00:00",
"modified": "2023-12-31T21:45:23+00:00",
"payments": [
{
"external_id": "20001-ext-id-payment",
"order_external_id": "10001-ext-id-order",
"external_user_id": "42-ext-id-employee",
"total": 4500,
"tips": 900,
"payment_type": "credit",
"payment_source_type": "visa",
"status": "closed",
"external_created": "2023-12-31T15:45:23-06:00",
"external_modified": "2023-12-31T15:45:23-06:00",
"created": "2023-12-31T21:45:23+00:00",
"modified": "2023-12-31T21:45:23+00:00"
}
],
"line_items": [
{
"external_id": "30001-ext-id-line-item",
"order_external_id": "10001-ext-id-order",
"quantity": 2,
"net_total": 2000,
"gross_total": 2200,
"is_revenue_item": true,
"status": "closed",
"external_created": "2023-12-31T15:45:23-06:00",
"external_modified": "2023-12-31T15:45:23-06:00",
"created": "2023-12-31T21:45:23+00:00",
"modified": "2023-12-31T21:45:23+00:00"
}
],
"warnings": [
{
"code": "unresolved_revenue_center",
"message": "Revenue center has not been pushed yet; a placeholder was created.",
"external_id": "5678-ext-id-bar"
}
]
}
]
}Changes
- info
endpoint added
- info