SmakeSmake API Docs
EndpointsOrders

List Orders

GET
/orders

An order is created when the checkout process is complete.

See: Expanding Objects

Returns a collection of created orders.

Filtering

You can filter your results as follows — every filter[...] query parameter is documented below (ids can be combined with a comma, e.g. /orders?filter[id]=1,2,3).

See: Pagination, Filtering

Expanding objects

Related objects can be expanded inline with the expand query parameter — all allowed values are listed on the parameter. See Expanding Objects.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Query Parameters

filter[id]?string

List orders for specified id(s). Multiple ids are separated by a comma: /orders?filter[id]=1, /orders?filter[id]=1,2,3.

filter[external_identifier]?string

List orders for specified external identifier (exact match): /orders?filter[external_identifier]=organic.

filter[external_reference]?string

List orders for specified external reference (exact match): /orders?filter[external_reference]=143000.

filter[since_id]?integer

List orders with an ID greater than the specified ID: /orders?filter[since_id]=1.

filter[created_at_min]?string

List orders for a given date (Y-m-d), only resources created after or on the provided date will be returned: /orders?filter[created_at_min]=2017-09-27.

filter[created_at_max]?string

List orders for a given date (Y-m-d), only resources created before or on the provided date will be returned: /orders?filter[created_at_max]=2017-11-15.

filter[updated_at_min]?string

List orders for a given date (Y-m-d), only resources updated after or on the provided date will be returned: /orders?filter[updated_at_min]=2017-09-27.

filter[updated_at_max]?string

List orders for a given date (Y-m-d), only resources updated before or on the provided date will be returned: /orders?filter[updated_at_max]=2017-09-27.

filter[state]?string

List orders for specified state (see the state table of Create order): /orders?filter[state]=cancelled, /orders?filter[state]=completed.

Value in

  • "draft"
  • "checking"
  • "checked"
  • "failed"
  • "preparing"
  • "prepared"
  • "cancelled"
  • "completed"
expand?string

Expand related objects inline. Several objects can be expanded at once by separating them with a comma; nested objects are addressed with a dot — see Expanding Objects. Allowed values:

  • order_type — Expand order type. You can show order type details here. /orders?expand=order_type
  • items.id_tags — Expand ID Tags for order item. You can show ID Tag details for order items here. /orders?expand=items.id_tags
  • items.units — Expand the units of each order item. /orders?expand=items.units
  • items.variant — Expand the variant details for order items. You can show the content of the variant for an order item. /orders?expand=items.variant
  • items.variant.views.customizations.resource — Expand variants customization resource. You can show the content customizations' resource of a variant for an order item. /orders?expand=items.variant.views.customizations.resource
  • disposition_order — Expand disposition order resource. You can show the content disposition order resource for an order. /orders?expand=disposition_order
  • disposition_order.production_orders — Expand production orders resource. You can show the content production orders resource of the disposition order for an order. /orders?expand=disposition_order.production_orders
  • disposition_order.production_orders.production — Expand production resource. You can show the content production resource for all production order for the disposition order for an order. /orders?expand=disposition_order.production_orders.production
page?integer

Page number to return — see Basic Usage → Pagination.

per_page?integer

Number of objects per page (default 25, maximum 100) — see Basic Usage → Pagination.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

application/json

Request example
curl -X GET "https://example.com/orders?filter%5Bid%5D=41&filter%5Bexternal_identifier%5D=order-ext-001&filter%5Bexternal_reference%5D=ext-ref-001&filter%5Bsince_id%5D=40&filter%5Bcreated_at_min%5D=2026-04-08&filter%5Bcreated_at_max%5D=2026-04-08&filter%5Bupdated_at_min%5D=2026-04-08&filter%5Bupdated_at_max%5D=2026-04-08&filter%5Bstate%5D=prepared&expand=items.variant%2Citems.id_tags&page=1&per_page=25" \  -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  }}

Show Text GET

Returns the text with the given `id`, including its lines, font, and preview image.

Create Order POST

Creates an order for one or more variants, together with the customer, shipping and billing addresses, shipment, and payment details. Set `external_identifier` or `external_reference` to link the order to a record in your own system. **Background processing** When you create an order, this happens asynchronously. You can use [Polling](/docs/checkout/2022-02-01/basic/polling) or [Webhooks](/docs/checkout/2022-02-01/basic/webhooks) for status updates. In this endpoint, a new product variant is created implicitly for every order item. There is always a reference on the [requested data](/docs/checkout/2022-02-01/basic/requested-data) in the variant object. You can also use all the design features from the design variant endpoint within the variant object within an order item. See [Design Variant](/docs/checkout/2022-02-01/endpoints/variants/designVariant). Therefore, you will already receive the new order `id` in the header for later reference. The current state of the asynchronous process is represented due the following states: | State | Meaning | |-------|---------| | `draft` | The initial state of a new order. | | `checking` | Order is processed automatically in background. For example images will be generated or downloaded or the variant will be designed. | | `checked` | The automatic checks were successful. The order waits for the producer to start the manual preparation. | | `failed` | Something went wrong during the checking process. The reason can be found in the `failure_message` attribute. For example, an image could not be downloaded. | | `preparing` | The order is processed manually by the producer. For example, digitalization tasks are in process. | | `prepared` | The manual process is finished and the production process is running. | | `cancelled` | The order is cancelled manually. | | `completed` | The production process is completed. The order will be delivered to the customer. | The response is a `202 Accepted` without a body: the `X-Identifier` header is the new generated order id for later reference, the `Location` header points to the background job. See the **Further post order examples** among the request examples: *Create order with designing a variant with media ids* and *Create order with own shipping documents*.