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 ID as Associate

AI-generated

Summary

Update a specific order by its ID within a business unit as an associate using provided version and update actions.

Inputs

  • Associate Order Key (required) — Unique key identifying the associate order to update.
  • Order ID (required) — The ID of the order to update within the business unit.
  • Associate ID (required) — The ID of the associate performing the update on the order.
  • Version (required) — Current version number of the order to ensure concurrency control during update.
  • Actions (UI) — List of structured update actions to apply to the order, selectable via UI with detailed fields for each action type.
  • Actions (JSON) — Raw JSON array of update actions that overrides the Actions (UI) if provided.

Output shape

a single JSON object representing the updated order

The output is the full updated order resource as returned by the commercetools API. Concurrent update attempts must use the correct version number to avoid conflicts. Either a UI-based list of actions or a raw JSON array of actions can be provided for update; if Actions (JSON) is not empty, it takes precedence.

Examples

Example 1: Update order shipping address

Set Associate Order Key, Order ID, Associate ID, Version, and use Actions (UI) to set a new shipping address on the order.

Links

Discussion