commercetools icon

commercetools

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

Actions671

Cart → Delete Cart by ID

AI-generated

Summary

Delete a cart from the commercetools project using its unique Cart ID and version number.

Inputs

  • Cart ID (required) — The unique identifier of the cart to delete.
  • Version (required) — The current version of the cart resource, required for concurrency control during deletion.

Output shape

A JSON object representing the deleted cart or an error object if the operation fails.

Requires valid commercetools OAuth2 credentials. If deletion fails and 'Continue On Fail' is enabled, error details are returned per item. The deletion is performed by sending a DELETE request with the specified Cart ID and version query parameter.

Links

Discussion