commercetools icon

commercetools

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

Actions671

Store Cart → Delete Cart in Store by ID

AI-generated

Summary

Delete a specific cart from a given store in the commercetools platform by providing the cart's ID and the store's key along with the cart's current version for concurrency control.

Inputs

  • Store Key (required) — The unique key identifying the store in which the cart resides.
  • Cart ID (required) — The unique identifier of the cart to delete.
  • Version (required) — The current version number of the cart for optimistic concurrency control.

Output shape

a JSON object representing the deleted cart resource confirmation or an error if deletion fails.

Requires the cart ID, store key, and correct version number. Throws error if the version does not match or if the cart does not exist.

Links

Discussion