commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Store Order → Delete Order in Store by ID

AI-generated

Summary

Delete an order identified by its ID within a specified store in a commercetools project, requiring the store key, order ID, order version, and store order key.

Inputs

  • Store Key (required) — The unique key identifying the store where the order exists.
  • Order ID (required) — The unique identifier of the order to delete within the specified store.
  • Store Order Key (required) — The key of the store order resource.
  • Version (required) — The current version number of the order to ensure deletion concurrency control; defaults to 1 if not specified.

Output shape

a single JSON object indicating the deleted order's state or API response

The operation returns the API's response JSON confirming deletion. It requires the correct version parameter to avoid conflicts. Errors thrown if deletion fails.

Examples

Example 1: Delete a store order by specifying the store key, order ID, store order key, and the current version of the order to ensure concurrency control.

Input the store key, the target order's ID, the store order key, and the order version; then execute this operation to delete the order in that store.

Links

Discussion