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 Key

AI-generated

Summary

Delete a cart in a specific store by its cart key and version to ensure concurrency safety.

Inputs

  • Store Key (required) — The unique key identifying the store containing the cart.
  • Cart Key (required) — The unique key of the cart to be deleted in the specified store.
  • Version (required) — The current version number of the cart for optimistic concurrency control.

Output shape

a single JSON object representing the deleted cart or the operation result from the commercetools API.

The deletion requires the precise version of the cart to avoid conflicts. If the version does not match the current cart version, the operation will fail. Errors are returned as node errors unless continueOnFail is enabled.

Links

Discussion