SmakeSmake API Docs
EndpointsOrders

Cancel Order

PUT
/orders/{id}/cancel

You can cancel an already placed order by executing the following request.

Warning: Depending on the cancellation setting it may be that an order can no longer be canceled (for example because it has already progressed too far in production). In this case an API exception is thrown — the response describes why.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Path Parameters

id*integer

The ID of the order (including already cancelled orders).

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

application/json

application/json

application/json

Request example
curl -X PUT "https://example.com/orders/6/cancel" \  -H "X-Api-Version: 2022-02-01"
{  "id": 6,  "order_type": 1,  "is_test": false,  "has_pending_preparation_logo": false,  "external_identifier": null,  "external_reference": null,  "number": null,  "cost_centre": null,  "state": "cancelled",  "failure_message": null,  "customer_locale": "de",  "currency": "EUR",  "total": 393.77,  "subtotal": 330.9,  "total_tax": 62.87,  "total_items_price": 393.77,  "shipping_total": 0,  "discount_total": 0,  "created_at": "2026-04-08T05:59:57+00:00",  "updated_at": "2026-04-09T13:51:42+00:00",  "cancelled_at": "2026-04-09T13:51:42+00:00",  "ordered_at": "2026-04-08T05:59:57+00:00",  "items": [    {      "id": 16,      "is_test": 0,      "external_identifier": null,      "quantity": 1,      "total": 146.97,      "price": 123.5,      "total_tax": 23.47,      "tax_rate": 19,      "variant": 641102,      "created_at": "2026-04-08T05:59:58+00:00",      "updated_at": "2026-04-09T13:51:42+00:00",      "cancelled_at": "2026-04-09T13:51:42+00:00",      "id_tags": [],      "units": []    },    {      "id": 17,      "is_test": 0,      "external_identifier": null,      "quantity": 1,      "total": 157.07,      "price": 131.99,      "total_tax": 25.08,      "tax_rate": 19,      "variant": 641103,      "created_at": "2026-04-08T05:59:58+00:00",      "updated_at": "2026-04-09T13:51:42+00:00",      "cancelled_at": "2026-04-09T13:51:42+00:00",      "id_tags": [],      "units": []    },    {      "id": 18,      "is_test": 0,      "external_identifier": null,      "quantity": 1,      "total": 89.73,      "price": 75.4,      "total_tax": 14.33,      "tax_rate": 19,      "variant": 641104,      "created_at": "2026-04-08T05:59:58+00:00",      "updated_at": "2026-04-09T13:51:42+00:00",      "cancelled_at": "2026-04-09T13:51:42+00:00",      "id_tags": [],      "units": []    }  ],  "disposition_order": null,  "customer": {    "id": 8,    "first_name": "Jane",    "last_name": "Doe",    "is_test": 0,    "email": "[email protected]",    "external_identifier": null,    "created_at": "2026-04-08T05:59:57+00:00",    "updated_at": "2026-04-08T05:59:57+00:00"  },  "shipping_address": {    "id": 16,    "is_test": 0,    "company": "MyCompany Inc.",    "first_name": "John",    "last_name": "Doe",    "city": "Anytown",    "street1": "123 Main Street",    "street2": null,    "zip": "12345",    "phone": "+1 555 0100",    "email": "[email protected]",    "province_code": "NY",    "country_code": "US",    "vat_in": null,    "created_at": "2026-04-08T05:59:57+00:00",    "updated_at": "2026-04-08T05:59:57+00:00"  },  "billing_address": {    "id": 15,    "is_test": 0,    "company": null,    "first_name": "Jane",    "last_name": "Doe",    "city": "Anytown",    "street1": "456 Oak Avenue",    "street2": "Apt. 2",    "zip": "12345",    "phone": null,    "email": "[email protected]",    "province_code": "NY",    "country_code": "US",    "vat_in": null,    "created_at": "2026-04-08T05:59:57+00:00",    "updated_at": "2026-04-08T05:59:57+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": 4,      "is_test": 0,      "shipping_method": {        "is_test": 0,        "order_id": 6,        "handle": "noLabel",        "title": "no_label",        "price": 191.74      },      "tracking_number": null,      "media": [        {          "id": 4181,          "is_test": 0,          "collection_name": "packing-slip",          "file_name": "tmp-file-e6423511-fc97-47d6-84a5-3d2effff0b94.pdf",          "size": 775609,          "mime_type": "application/pdf",          "download_url": "https://api.smake.io/storage/files/db86389aabd145cfa1eb6ebc0f3ed0e9/tmp-file-e6423511-fc97-47d6-84a5-3d2effff0b94.pdf?expires=1775746303&signature=311967decec045a0fc400ef2ee82fe97456f0973ea816edbb5e5d315d3ff2bba",          "state": "pending",          "requested": null,          "failure_message": null,          "created_at": "2026-04-08T05:59:58+00:00",          "updated_at": "2026-04-08T05:59:58+00:00"        },        {          "id": 4182,          "is_test": 0,          "collection_name": "shipping_label_zpl",          "file_name": "tmp-file-ffbe9d3f-82d7-4358-8859-46a9bc78e4de.zpl",          "size": 3512,          "mime_type": "text/plain",          "download_url": "https://api.smake.io/storage/files/432775780ddc456184259f2b1c962775/tmp-file-ffbe9d3f-82d7-4358-8859-46a9bc78e4de.zpl?expires=1775746303&signature=11f9c0bda57720d54ef8db1cd8aca87d2ac71bd7ed1844eb11927fb95cd27e63",          "state": "pending",          "requested": null,          "failure_message": null,          "created_at": "2026-04-08T05:59:58+00:00",          "updated_at": "2026-04-08T05:59:58+00:00"        },        {          "id": 4183,          "is_test": 0,          "collection_name": "shipping_label_png",          "file_name": "tmp-file-c99c142e-b971-49d5-84ea-afa267e5acf4.png",          "size": 47188,          "mime_type": "image/png",          "download_url": "https://api.smake.io/storage/files/20baa6384c144902ad7a688dc2f4ae2b/tmp-file-c99c142e-b971-49d5-84ea-afa267e5acf4.png?expires=1775746303&signature=69618a8fe3bc832b20b59c53ff1f97cb9639313c067d629ee5b071f945f9874f",          "state": "pending",          "requested": null,          "failure_message": null,          "created_at": "2026-04-08T05:59:58+00:00",          "updated_at": "2026-04-08T05:59:58+00:00"        },        {          "id": 4184,          "is_test": 0,          "collection_name": "shipping_label_pdf",          "file_name": "tmp-file-009b08cb-156f-4d1b-99a0-6580c22e92f2.pdf",          "size": 775609,          "mime_type": "application/pdf",          "download_url": "https://api.smake.io/storage/files/5df2a12890d5496289a327f56e647ddc/tmp-file-009b08cb-156f-4d1b-99a0-6580c22e92f2.pdf?expires=1775746303&signature=6c6fc39117f871d89c0cf5b20b7ef5fbd23893beb33537066727f98c6a56f149",          "state": "pending",          "requested": null,          "failure_message": null,          "created_at": "2026-04-08T05:59:58+00:00",          "updated_at": "2026-04-08T05:59:58+00:00"        },        {          "id": 4185,          "is_test": 0,          "collection_name": "commercial_invoice",          "file_name": "tmp-file-694cb44d-4a76-4c32-9929-94822c542e6f.pdf",          "size": 775609,          "mime_type": "application/pdf",          "download_url": "https://api.smake.io/storage/files/f6d0865fe3314abfb893ceb6f4813263/tmp-file-694cb44d-4a76-4c32-9929-94822c542e6f.pdf?expires=1775746303&signature=6ea6a571dde0132c1a02efb90fb1b0173711c5ce63b29b6f6badf484174b9b5f",          "state": "pending",          "requested": null,          "failure_message": null,          "created_at": "2026-04-08T05:59:58+00:00",          "updated_at": "2026-04-08T05:59:58+00:00"        }      ],      "order": 6,      "created_at": "2026-04-08T05:59:57+00:00",      "updated_at": "2026-04-09T13:51:42+00:00"    }  ]}