commercetools icon

commercetools

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

Actions671

Associate Order → Update Order in BusinessUnit by OrderNumber as Associate

AI-generated

Summary

Update an order in a specified business unit by the order number as an associate, applying one or more update actions to modify the order's attributes or state.

Inputs

  • Associate Order Key (required) — Key identifying the associate order to update.
  • Associate ID (required) — ID of the associate performing the update.
  • Version (required) — The current version number of the order used for concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the order, which overrides the UI-configured actions if provided.
  • Actions (UI) — One or multiple update actions selected and configured via the UI to modify the order, such as changing addresses, states, or adding deliveries.

Output shape

a single JSON object representing the updated order returned from the commercetools API

Requires the correct version number to prevent update conflicts. If both Actions (JSON) and Actions (UI) are provided, Actions (JSON) takes precedence. Errors in update or missing resources throw node errors unless continuation on fail is enabled.

Links

Discussion