SmakeSmake API Docs
EndpointsDraft Orders

Show Draft Order

GET
/draft-orders/{id}

Returns a single draft order by ID, before it has been completed and handed over to production.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Path Parameters

id*integer

Draft order ID.

Query Parameters

expand?string

Comma-separated relations to expand. Allowed values: order_type, items.variant, items.id_tags, items.variant.views.customizations.resource.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

application/json

Request example
curl -X GET "https://example.com/draft-orders/2?expand=order_type%2Citems.variant" \  -H "X-Api-Version: 2022-02-01"
{  "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=1775799616&signature=4bd6a2e50a71d53779e56b6ead950a372dcad2dee628e1f868134ccaf0c4cfbf",          "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=1775799616&signature=1593973e9b7033f10b12bf61e4f9c27cc1e405757af5bf53a60af3ba7f5d6828",          "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=1775799616&signature=bfca9baa9e152f94be6e5382dd755d3759701a14921ad9561e36abd23b8ab9ea",          "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=1775799616&signature=eeb3b6edbabc7b179c5054fbf42296c7a38abf002dfa41cce0125c1b2784f809",          "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=1775799616&signature=28e0883ac861879d3f702f297437b0553f163fbbb56e00443657fabf93a2249e",          "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"    }  ]}