commercetools icon

commercetools

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

Actions671

Store Shopping List → Delete ShoppingList in Store by Key

AI-generated

Summary

Delete a shopping list in a specified commercetools store by its unique key and version number.

Inputs

  • Store Key (required) — Specify the key of the store where the shopping list exists.
  • Shopping List Key (required) — Provide the unique key of the shopping list to be deleted.
  • Version (required) — Provide the current version number of the shopping list for concurrency control.

Output shape

a single JSON object representing the deleted shopping list response from the commercetools API

The operation requires the store key, shopping list key, and version number as input parameters. It returns the deleted shopping list's details if successful, or throws an error otherwise.

Examples

Example 1: Delete a shopping list by key in a specific store

Inputs include 'Store Key' as 'mystore', 'Shopping List Key' as 'mylistkey', and 'Version' as 3.

Links

Discussion