commercetools icon

commercetools

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

Actions671

Associate Shopping List → Delete ShoppingList in BusinessUnit by ID as Associate

AI-generated

Summary

Delete a shopping list in a business unit as an associate using the shopping list's ID and specified version to ensure concurrency control.

Inputs

  • Associate ID (required) — The unique identifier of the associate performing the deletion.
  • Shopping List ID (required) — The unique identifier of the shopping list to delete.
  • Version (required) — The current version of the shopping list to delete; required for concurrency control.

Output shape

a single JSON object representing the deleted shopping list resource as returned by the commercetools API, or an error object if the deletion fails

The operation makes a DELETE HTTP request with the shopping list ID and version as query parameters. It requires the associate ID to correctly scope the request. If the version does not match or the shopping list does not exist, the API will return an error. No pagination applies.

Examples

Example 1: Deleting a shopping list by ID as a specific associate

Set 'Associate ID' to the associate's ID, 'Shopping List ID' to the ID of the shopping list to delete, and 'Version' to the shopping list's current version.

Links

Discussion