SmakeSmake API Docs
EndpointsDraft Orders

List Draft Order

GET
/draft-orders

Returns the draft orders for this app — orders that have not yet been completed and handed over to production. Filter by ID, external identifier, external reference, or creation/update date range.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Query Parameters

filter[id]?integer

Filter by draft order ID.

filter[external_identifier]?string

Filter by external identifier.

filter[external_reference]?string

Filter by external reference.

filter[since_id]?integer

Return draft orders with ID greater than this value.

filter[created_at_min]?string

Filter by minimum created date (Y-m-d).

filter[created_at_max]?string

Filter by maximum created date (Y-m-d).

filter[updated_at_min]?string

Filter by minimum updated date (Y-m-d).

filter[updated_at_max]?string

Filter by maximum updated date (Y-m-d).

expand?string

Expand relations, for example order_type,items.variant.

page?integer

Page number.

per_page?integer

Items per page.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

application/json

Request example
curl -X GET "https://example.com/draft-orders?filter%5Bid%5D=2&filter%5Bexternal_identifier%5D=fallback-ext&filter%5Bexternal_reference%5D=fallback-ref&filter%5Bsince_id%5D=1&filter%5Bcreated_at_min%5D=2026-04-08&filter%5Bcreated_at_max%5D=2026-04-10&filter%5Bupdated_at_min%5D=2026-04-08&filter%5Bupdated_at_max%5D=2026-04-10&expand=order_type%2Citems.variant&page=1&per_page=3" \  -H "X-Api-Version: 2022-02-01"
{  "data": [    {      "id": 2,      "order_type": 1,      "is_test": false,      "has_pending_preparation_logo": false,      "external_identifier": null,      "external_reference": null,      "number": null,      "cost_centre": null,      "state": "draft",      "failure_message": null,      "customer_locale": "de",      "currency": "EUR",      "total": 1005.7,      "subtotal": 876.96,      "total_tax": 7.99,      "total_items_price": 967.07,      "shipping_total": 38.63,      "discount_total": 0,      "created_at": "2026-04-08T05:59:56+00:00",      "updated_at": "2026-04-08T05:59:57+00:00",      "cancelled_at": null,      "ordered_at": null,      "items": [        {          "id": 4,          "is_test": 0,          "external_identifier": null,          "quantity": 1,          "total": 23.8,          "price": 20,          "total_tax": 3.8,          "tax_rate": 19,          "variant": 641090,          "created_at": "2026-04-08T05:59:57+00:00",          "updated_at": "2026-04-08T05:59:57+00:00",          "cancelled_at": null,          "id_tags": [],          "units": []        },        {          "id": 5,          "is_test": 0,          "external_identifier": null,          "quantity": 1,          "total": 21.4,          "price": 20,          "total_tax": 1.4,          "tax_rate": 7,          "variant": 641091,          "created_at": "2026-04-08T05:59:57+00:00",          "updated_at": "2026-04-08T05:59:57+00:00",          "cancelled_at": null,          "id_tags": [],          "units": []        },        {          "id": 6,          "is_test": 0,          "external_identifier": null,          "quantity": 1,          "total": 5.95,          "price": 5,          "total_tax": 0.95,          "tax_rate": 19,          "variant": 641092,          "created_at": "2026-04-08T05:59:57+00:00",          "updated_at": "2026-04-08T05:59:57+00:00",          "cancelled_at": null,          "id_tags": [],          "units": []        }      ],      "disposition_order": null,      "customer": {        "id": 4,        "first_name": "Jane",        "last_name": "Doe",        "is_test": 0,        "email": "[email protected]",        "external_identifier": null,        "created_at": "2026-04-08T05:59:56+00:00",        "updated_at": "2026-04-08T05:59:56+00:00"      },      "shipping_address": {        "id": 8,        "is_test": 0,        "company": "MyCompany Inc.",        "first_name": "John",        "last_name": "Doe",        "city": "Anytown",        "street1": "123 Main Street",        "street2": null,        "zip": "12345",        "phone": null,        "email": "[email protected]",        "province_code": "NY",        "country_code": "US",        "vat_in": null,        "created_at": "2026-04-08T05:59:56+00:00",        "updated_at": "2026-04-08T05:59:56+00:00"      },      "billing_address": {        "id": 7,        "is_test": 0,        "company": null,        "first_name": "Jane",        "last_name": "Doe",        "city": "Anytown",        "street1": "456 Oak Avenue",        "street2": "Apt. 2",        "zip": "12345",        "phone": "+1 555 0100",        "email": "[email protected]",        "province_code": "NY",        "country_code": "US",        "vat_in": null,        "created_at": "2026-04-08T05:59:56+00:00",        "updated_at": "2026-04-08T05:59:56+00:00"      },      "whitelabel_address": null,      "payments": [],      "shipments": [        {          "id": 2,          "is_test": 0,          "shipping_method": null,          "tracking_number": null,          "media": [            {              "id": 4111,              "is_test": 0,              "collection_name": "packing-slip",              "file_name": "tmp-file-f4ed60f6-dbbc-41fd-baf8-eb86e7c0310e.pdf",              "size": 775609,              "mime_type": "application/pdf",              "download_url": "https://api.smake.io/storage/files/11bed23fc7844ea084a45f3d009a9385/tmp-file-f4ed60f6-dbbc-41fd-baf8-eb86e7c0310e.pdf?expires=1775798625&signature=f42999488fb87820359cba8ff518c10dad3b4d0b31f0410568e9012f8f2adffe",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:59:56+00:00",              "updated_at": "2026-04-08T05:59:56+00:00"            },            {              "id": 4112,              "is_test": 0,              "collection_name": "shipping_label_zpl",              "file_name": "tmp-file-df4af311-b9ce-4388-88a0-e34534fa3de6.zpl",              "size": 3512,              "mime_type": "text/plain",              "download_url": "https://api.smake.io/storage/files/8f4d2e99da3b4e10bd3c8c5bcf95e055/tmp-file-df4af311-b9ce-4388-88a0-e34534fa3de6.zpl?expires=1775798625&signature=723e8b449b56414fd3cc58951a276791ab548fad9e0b97baaeec59efe1530a57",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:59:56+00:00",              "updated_at": "2026-04-08T05:59:56+00:00"            },            {              "id": 4113,              "is_test": 0,              "collection_name": "shipping_label_png",              "file_name": "tmp-file-03b4f27b-4e20-4032-aac3-c516b3cd8524.png",              "size": 47188,              "mime_type": "image/png",              "download_url": "https://api.smake.io/storage/files/c62bca773e8c4b05a87f68cf0966733a/tmp-file-03b4f27b-4e20-4032-aac3-c516b3cd8524.png?expires=1775798625&signature=d7fcc29efa6a6f9a7629be30571937c9aea88705cd68174e83e4d34adc97d14f",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:59:56+00:00",              "updated_at": "2026-04-08T05:59:56+00:00"            },            {              "id": 4114,              "is_test": 0,              "collection_name": "shipping_label_pdf",              "file_name": "tmp-file-03228085-8f11-4914-a948-e60548673c0d.pdf",              "size": 775609,              "mime_type": "application/pdf",              "download_url": "https://api.smake.io/storage/files/a2185bf6a67249b887f98b251b866599/tmp-file-03228085-8f11-4914-a948-e60548673c0d.pdf?expires=1775798625&signature=13329b211a61895826e6982c3b747c95c8ff95e985b9490f49cf7cc589e3679c",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:59:56+00:00",              "updated_at": "2026-04-08T05:59:56+00:00"            },            {              "id": 4115,              "is_test": 0,              "collection_name": "commercial_invoice",              "file_name": "tmp-file-1ab61ae5-6125-4324-a6e5-ad994ec38acd.pdf",              "size": 775609,              "mime_type": "application/pdf",              "download_url": "https://api.smake.io/storage/files/5049c7a805424abe8f740d52af9db1bf/tmp-file-1ab61ae5-6125-4324-a6e5-ad994ec38acd.pdf?expires=1775798625&signature=ecb29c1495c4ebbe40311e04a2da3fb649c1a7aa38ba115f7eadfdc46120f549",              "state": "pending",              "requested": null,              "failure_message": null,              "created_at": "2026-04-08T05:59:56+00:00",              "updated_at": "2026-04-08T05:59:56+00:00"            }          ],          "order": 2,          "created_at": "2026-04-08T05:59:56+00:00",          "updated_at": "2026-04-08T05:59:56+00:00"        }      ]    },    {      "id": 48,      "order_type": 1,      "is_test": false,      "has_pending_preparation_logo": false,      "external_identifier": null,      "external_reference": null,      "number": null,      "cost_centre": null,      "state": "checked",      "failure_message": null,      "customer_locale": "en",      "currency": "EUR",      "total": 220.62,      "subtotal": 185.39,      "total_tax": 35.23,      "total_items_price": 215.86,      "shipping_total": 4.76,      "discount_total": 0,      "created_at": "2026-04-09T14:59:23+00:00",      "updated_at": "2026-04-09T14:59:23+00:00",      "cancelled_at": null,      "ordered_at": null,      "items": [        {          "id": 128,          "is_test": 0,          "external_identifier": null,          "quantity": 1,          "total": 215.86,          "price": 181.39,          "total_tax": 34.47,          "tax_rate": 19,          "variant": 641277,          "created_at": "2026-04-09T14:59:23+00:00",          "updated_at": "2026-04-09T14:59:23+00:00",          "cancelled_at": null,          "id_tags": [],          "units": []        }      ],      "disposition_order": null,      "customer": {        "id": 44,        "first_name": null,        "last_name": null,        "is_test": 0,        "email": "[email protected]",        "external_identifier": null,        "created_at": "2026-04-09T13:58:27+00:00",        "updated_at": "2026-04-09T13:58:27+00:00"      },      "shipping_address": {        "id": 109,        "is_test": 0,        "company": null,        "first_name": "System",        "last_name": "User",        "city": "Berlin",        "street1": "Example Street 1",        "street2": null,        "zip": "10115",        "phone": "+49123456789",        "email": "[email protected]",        "province_code": null,        "country_code": "DE",        "vat_in": null,        "created_at": "2026-04-09T14:59:23+00:00",        "updated_at": "2026-04-09T14:59:23+00:00"      },      "billing_address": {        "id": 110,        "is_test": 0,        "company": null,        "first_name": "System",        "last_name": "User",        "city": "Berlin",        "street1": "Example Street 1",        "street2": null,        "zip": "10115",        "phone": "+49123456789",        "email": "[email protected]",        "province_code": null,        "country_code": "DE",        "vat_in": null,        "created_at": "2026-04-09T14:59:23+00:00",        "updated_at": "2026-04-09T14:59:23+00:00"      },      "whitelabel_address": null,      "payments": [        {          "payment_method": {            "id": 1,            "name": "Invoice",            "handle": "invoice",            "created_at": "2026-04-08T05:58:16+00:00",            "updated_at": "2026-04-08T05:58:16+00:00"          }        }      ],      "shipments": [        {          "id": 42,          "is_test": 0,          "shipping_method": {            "is_test": 0,            "order_id": 48,            "handle": "noLabel",            "title": "no_label",            "price": 4          },          "tracking_number": null,          "media": [],          "order": 48,          "created_at": "2026-04-09T14:59:23+00:00",          "updated_at": "2026-04-09T14:59:23+00:00"        }      ]    }  ],  "links": {    "first": "https://api.smake.io/v2/apps/1/draft-orders?per_page=3&page=1",    "last": null,    "prev": null,    "next": null  },  "meta": {    "current_page": 1,    "current_page_url": "https://api.smake.io/v2/apps/1/draft-orders?per_page=3&page=1",    "from": 1,    "path": "https://api.smake.io/v2/apps/1/draft-orders",    "per_page": 3,    "to": 2  }}