SmakeSmake API Docs
EndpointsOrders

Cancel Order Item Unit

POST
/orders/{id}/order-item-units/cancel

Cancels the order item units of an order that can still be cancelled. Units already too far along in production are left untouched. The response lists which units were cancelled and which were not; the status code is 200 when all units were cancelled and 207 when only some could be.

AuthorizationBearer
AuthorizationBearer <token>

In: header

Path Parameters

id*integer

Order ID.

Header Parameters

X-Api-Version?string

Response Body

application/json

application/json

application/json

application/json

application/json

Request example
curl -X POST "https://example.com/orders/3/order-item-units/cancel" \  -H "X-Api-Version: 2022-02-01"
{  "canceled": [    {      "id": 9001,      "state": "cancelled"    }  ],  "not_canceled": [    {      "id": 9002,      "state": "created"    }  ]}