> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List orders with filtering and pagination

> List of orders

### Path parameters

**tenant\_id** `string` *required*

Tenant identifier

### Query parameters

**page** `integer (int32)`

Page number (1-indexed)

**page\_size** `integer (int32)`

Items per page (max 100)

**status** `string`

Filter by order status

**created\_after** `string`

Filter by creation date (ISO 8601)

**created\_before** `string`

Filter by creation date (ISO 8601)

**order\_number** `string`

Search by order number

**shopify\_order\_id** `string`

Search by Shopify order ID

**tags** `string`

Filter by tags (comma-separated)

### Response

`object`

**items** `object[]` *required*

The items on this page

**items**

**id** `string (uuid)` *required*

Unique StateSet order ID

**shopifyOrderId** `string` *required*

Shopify order ID

**orderNumber** `string` *required*

Order number

**status** `string` *required*

Order status

**lineItems** `object[]` *required*

Order line items

**lineItems**

**title** `string` *required*

Product title

**quantity** `number` *required*

Quantity ordered

**price** `number` *required*

Unit price

**sku** `string`

Product SKU

**variantId** `string`

Variant ID from Shopify

**shopifyLineItemId** `string`

Shopify line item ID

**createdAt** `string (date-time)` *required*

Order creation timestamp

**updatedAt** `string (date-time)` *required*

Last update timestamp

**tags** `string[]` *required*

Order tags

**locationId** `string`

Location ID for fulfillment

**netsuiteId** `string`

NetSuite order ID if synced

**netsuiteTranId** `string`

NetSuite transaction ID if available

**netsuiteSyncedAt** `string (date-time)`

When this order was synced to NetSuite

**netsuiteLastError** `string`

Last NetSuite sync error

**netsuiteLastAttemptAt** `string (date-time)`

Last NetSuite sync attempt time

**fulfillmentStatus** `string`

Fulfillment status

**tracking** `object`

Tracking information for an order

**tracking**

**trackingNumber** `string`

Tracking number

**carrier** `string`

Carrier name

**trackingUrl** `string`

Tracking URL

**estimatedDelivery** `string`

Estimated delivery date

**dclSubmittedAt** `string (date-time)`

When this order was submitted to DCL

**dclLastError** `string`

Last DCL submission error

**dclLastAttemptAt** `string (date-time)`

Last DCL submission attempt time

**dclLocation** `string`

DCL location used during submission

**luminousOrderId** `string`

Luminous order ID if synced

**luminousSyncedAt** `string (date-time)`

When this order was synced to Luminous

**luminousLastError** `string`

Last Luminous sync error

**luminousLastAttemptAt** `string (date-time)`

Last Luminous sync attempt time

**capacitySubmittedAt** `string (date-time)`

When this order was submitted to Capacity

**capacityLastError** `string`

Last Capacity submission/cancel error

**capacityLastAttemptAt** `string (date-time)`

Last Capacity operation attempt time

**latestMovement** `object`

Summary of the latest movement event for an order

**latestMovement**

**eventType** `string` *required*

Stable event type

**stage** `string` *required*

Current stage within the engine

**source** `string` *required*

Source system for the latest movement

**status** `string`

Optional normalized status

**summary** `string` *required*

Human-readable summary for operators

**occurredAt** `string (date-time)` *required*

Timestamp for the latest movement

**pagination** `object` *required*

Pagination metadata

**pagination**

**page** `integer` *required*

Current page number

**pageSize** `integer` *required*

Number of items per page

**totalItems** `integer`

Total number of items across all pages

**totalPages** `integer`

Total number of pages

**hasNext** `boolean` *required*

Whether there is a next page

**hasPrevious** `boolean` *required*

Whether there is a previous page

### Status codes

| Code | Meaning |
| - | - |
| `200` | List of orders |
| `401` | Unauthorized |

```bash cURL theme={null}
curl --request GET \
  --url 'https://api.sync.stateset.com/v1/tenants/{tenant_id}/orders' \
  --header "x-stateset-api-key: $STATESET_SYNC_API_KEY"
```

```json 200 theme={null}
{
  "items": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "shopifyOrderId": "string",
      "orderNumber": "ORD-10042",
      "status": "pending",
      "lineItems": [],
      "createdAt": "2026-08-31T14:22:05Z",
      "updatedAt": "2026-08-31T14:22:05Z",
      "tags": [],
      "locationId": "string",
      "netsuiteId": "string",
      "netsuiteTranId": "string",
      "netsuiteSyncedAt": "2026-08-31T14:22:05Z",
      "netsuiteLastError": "string",
      "netsuiteLastAttemptAt": "2026-08-31T14:22:05Z",
      "fulfillmentStatus": "string",
      "tracking": {
        "trackingNumber": null,
        "carrier": null,
        "trackingUrl": null,
        "estimatedDelivery": null
      },
      "dclSubmittedAt": "2026-08-31T14:22:05Z",
      "dclLastError": "string",
      "dclLastAttemptAt": "2026-08-31T14:22:05Z",
      "dclLocation": "string",
      "luminousOrderId": "string",
      "luminousSyncedAt": "2026-08-31T14:22:05Z",
      "luminousLastError": "string",
      "luminousLastAttemptAt": "2026-08-31T14:22:05Z",
      "capacitySubmittedAt": "2026-08-31T14:22:05Z",
      "capacityLastError": "San Francisco",
      "capacityLastAttemptAt": "2026-08-31T14:22:05Z",
      "latestMovement": {
        "eventType": null,
        "stage": null,
        "source": null,
        "status": null,
        "summary": null,
        "occurredAt": null
      }
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 20,
    "totalItems": 1,
    "totalPages": 1,
    "hasNext": true,
    "hasPrevious": true
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.