Skip to main content

Delete order

Deletes or deactivates an order.

Path Parameters
id int32 REQUIRED

The ID of the order to delete.

Query Parameters
operation int32 REQUIRED

Possible values: [0, 1, 2]

The method of deletion desired.
0 = OnHold. Put this order on hold.
1 = Cancel. Cancel this order permanently.
2 = Deactivate. Mark this order as no longer active.

skipRestock boolean REQUIRED

Set to true to prevent stock counts from being restored. Only applies to cancelled orders. Defaults to false.

Responses
200

Ok.

Schema OPTIONAL
object
400

Bad request.

Schema OPTIONAL
object
404

Not found.

Schema OPTIONAL
object