SmakeSmake API Docs
EndpointsOrder Item Units

List Order Item Unit

GET
/order-item-units

Returns the order item units for this app — the individually tracked physical units that make up ordered items. Filter by external reference and page through results with cursor-based pagination.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Query Parameters

filter[external_reference]?string

Filter by external reference.

expand?string

Expand relations as comma-separated values, e.g. merchant,order. Supported: merchant, order, order_item, merchant_variant, merchant_variant.merchant, merchant_variant.master_variant, merchant_variant.option_value.media, id_tag, id_tag.media.

cursor?string

Cursor for cursor-based pagination.

per_page?integer

Items per page.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

Request example
curl -X GET "https://example.com/order-item-units?filter%5Bexternal_reference%5D=unit-9001&expand=merchant%2Corder&cursor=eyJpZCI6OTAwMX0&per_page=3" \  -H "X-Api-Version: 2022-02-01"
{  "data": [    {      "id": 94,      "external_reference": null,      "merchant": null,      "order": null,      "order_item": null,      "merchant_variant": null,      "id_tag": null,      "state": "pending",      "created_at": "2026-04-09T15:14:00+00:00",      "updated_at": "2026-04-09T15:14:00+00:00"    },    {      "id": 95,      "external_reference": "unit-9001",      "merchant": null,      "order": null,      "order_item": null,      "merchant_variant": null,      "id_tag": null,      "state": "shipped",      "created_at": "2026-04-09T15:14:01+00:00",      "updated_at": "2026-04-10T08:02:17+00:00"    }  ],  "links": {    "first": null,    "last": null,    "prev": null,    "next": "https://api.smake.io/v2/apps/1/order-item-units?cursor=eyJpZCI6OTUsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0"  },  "meta": {    "path": "https://api.smake.io/v2/apps/1/order-item-units",    "per_page": 3,    "next_cursor": "eyJpZCI6OTUsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",    "prev_cursor": null  }}