Cancel Order Item Unit
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
Authorization
default In: header
Path Parameters
Order ID.
Header Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
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" } ]}Show Order GET
Returns the order with the given `id`, including its items, addresses, payments, and shipments. **Expanding objects** Related objects can be expanded inline with the `expand` query parameter — all allowed values are listed on the parameter. See [Expanding Objects](/docs/checkout/2022-02-01/basic/expanding-objects).
Cancel Order PUT
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.