commercetools icon

commercetools

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

Actions671

Associate Cart → Delete Cart in BusinessUnit by Key as Associate

AI-generated

Summary

Delete a cart identified by its key within a specific business unit as a given associate in commercetools.

Inputs

  • Associate Cart Key (required) — The key of the associate cart to delete.
  • Associate ID (required) — The ID of the associate performing the operation.
  • Cart Key (required) — The key of the cart within the business unit to be deleted.
  • Version (required) — The current version number of the cart for optimistic concurrency control.

Output shape

a single JSON object representing the deleted cart's final state or an error object in case of failure.

Requires the cart's version for concurrency control; the operation sends an HTTP DELETE request and returns the result JSON. If the cart does not exist or the version is outdated, an error is thrown.

Examples

Example 1: Deleting a cart by key as an associate in a business unit

Provide 'Associate Cart Key', 'Associate ID', 'Cart Key', and the cart 'Version' properties to identify and delete the cart securely.

Links

Discussion