commercetools icon

commercetools

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

Actions671

Associate Cart → Update Cart in BusinessUnit by Key as Associate

AI-generated

Summary

Update a cart identified by its key within a specified business unit as an associate by providing the current cart version and a set of update actions.

Inputs

  • Associate Cart Key (required) — The key of the business unit's associate cart to update.
  • Associate ID (required) — The ID of the associate performing the update.
  • Cart Key (required) — The key of the cart within the business unit to update.
  • Version (required) — The current version of the cart for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the cart; this overrides UI-configured actions if provided.
  • Actions (UI) — A collection of pre-defined update actions that can be configured via the UI to modify the cart (used if Actions (JSON) is empty).

Output shape

a single JSON object representing the updated cart resource as returned by the commercetools API

The operation expects the current version number for concurrency control. Actions can be provided either as raw JSON or via UI fields. Errors during update operations will be surfaced as node errors unless 'Continue On Fail' is enabled.

Links

Discussion