commercetools icon

commercetools

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

Actions671

Inventory → Delete InventoryEntry by Key

AI-generated

Summary

Delete an InventoryEntry in commercetools by specifying its unique inventory key and the current version number to ensure concurrency control.

Inputs

  • Inventory Key (required) — The unique key identifying the InventoryEntry to delete.
  • Version (required) — The current version of the InventoryEntry, required to manage concurrency when deleting.

Output shape

A JSON object representing the deleted InventoryEntry returned by the commercetools API.

The operation requires the 'Inventory Key' and 'Version' as inputs to perform the delete. If the delete is successful, the deleted InventoryEntry object is returned. If the InventoryEntry does not exist or the version is not correct, an error will be thrown.

Links

Discussion