commercetools icon

commercetools

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

Actions671

Store Cart → Update Cart in Store by ID

AI-generated

Summary

Update a specific cart in a designated store by its Cart ID within commercetools by applying one or more update actions and specifying the current version.

Inputs

  • Store Key (required) — The key identifier for the store where the cart resides.
  • Cart ID (required) — The unique identifier of the cart to update.
  • Version (required) — The current version number of the cart for concurrency control.
  • Actions (UI or JSON) (required) — A collection of update actions to apply to the cart. Actions can be provided as structured UI entries or as a raw JSON array that overrides the UI input.

Output shape

a single JSON object representing the updated cart resource

The operation returns the updated cart object from commercetools. The 'Version' input ensures the update applies to the correct cart revision to prevent conflicts. Providing actions is mandatory to define the updates made to the cart.

Links

Discussion