commercetools icon

commercetools

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

Actions671

Store Customer → Update Customer in Store by ID

AI-generated

Summary

Update a customer by ID within a specified store in commercetools by providing the store key, customer ID, current version, and one or more update actions to apply.

Inputs

  • storeKey (required) — The key of the store where the customer resides.
  • resourceKey (required) — Key identifying the Store Customer resource context.
  • secondaryId (required) — The unique ID of the customer to update.
  • version (required) — The current version number of the customer entity for concurrency control.
  • actionsJson__instorecustomers — Raw JSON array of update actions to perform on the customer; this overrides the UI-configured actions if provided.
  • actionsUi__instorecustomers — A collection of predefined update actions (e.g., change email, add address) that can be configured via the UI to modify the customer.

Output shape

a single updated customer record in JSON format reflecting the applied changes

The update operation requires specifying the current version; it uses either raw JSON actions or UI-configured actions to define updates. On success, returns the full updated customer object.

Links

Discussion