commercetools icon

commercetools

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

Actions671

Shopping-list → Delete ShoppingList by ID

AI-generated

Summary

Delete a shopping list in commercetools by specifying its unique ID and current version number.

Inputs

  • Shopping-list ID (required) — The unique identifier of the shopping list to delete.
  • Version (required) — The current version number of the shopping list, required for optimistic concurrency control.

Output shape

a JSON object representing the deleted shopping list or an error object if deletion fails

Requires valid commercetools OAuth2 credentials; the request must include the correct version number to succeed. Errors are returned in JSON format containing error messages.

Examples

Example 1: Delete a shopping list with ID 'abc123' at version 5

Set Shopping-list ID to 'abc123' and Version to 5.

Links

Discussion