---
title: "Get orders"
method: GET
path: "/public/v1/orders"
tags: ["Order"]
---

# Get orders

`GET /public/v1/orders`

List sales orders, most recent order date first, filtered by the query parameters below. Each entry is the same full [order](#model-order) object returned by GET /public/v1/orders/{id}, including its line items, charges, invoices, and returns.

Results are paginated: the response is a `data` array plus a `next_page` URL. Follow `next_page` to walk subsequent pages; a null `next_page` means the last page was reached. All datetime filters accept an inclusive range and combine with AND (an order must satisfy every filter given).

Required permission: `orders_permissions_view`. Results are further limited to the orders the authenticated user can see under their team restrictions, so this may return fewer orders than exist on the company.

## Query parameters

- `ids` string[]
- `delivery_datetime` string
- `due_datetime` string
- `inserted_datetime` string
- `order_datetime` string
- `page` string
- `statuses` string[]
- `updated_datetime` string
- `company_ids` string[]
- `buyer_company_ids` string[]
- `owner_ids` string[]
- `location_ids` string[]
- `billing_location_ids` string[]
- `shipping_location_ids` string[]
- `menu_ids` string[]
- `order_number` string
- `order_numbers` string[]
- `leaflink_ids` string[]
- `metrc_transfer_ids` integer[]
- `biotrack_ids` string[]
- `delivered_datetime` string
- `company_group_ids` string[]
- `payment_statuses` string[]
- `total` string
- `batch_ids` string[]
- `package_ids` string[]
- `package_compliance_labels` string[]
- `package_batch_numbers` string[]
- `batch_batch_numbers` string[]
- `product_ids` string[]
- `product_category_ids` string[]
- `product_subcategory_ids` string[]
- `product_group_ids` string[]
- `product_brand_ids` string[]
- `product_vendor_ids` string[]
- `product_strain_ids` string[]
- `product_tag_ids` string[]
- `product_skus` string[]
- `custom_data` object

## Response `200`

A list of orders

## Other responses

- `400` — Invalid parameters
- `401` — Missing or invalid API token
- `403` — The API token lacks the required permission
- `404` — Not Found

---

[API](https://skmtc.dev/distru/apis/distru-api.md) · [All operations](https://skmtc.dev/distru/apis/distru-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/distru/distru-api/revisions/eb775b7b6ee0/schema)
