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 Key

AI-generated

Summary

Update a customer in a specific commercetools store by their customer key, applying specified update actions to modify the customer's details.

Inputs

  • Store Customer Key (required) — The unique key identifying the store customer to update.
  • Store Key (required) — The key of the store in which the customer exists.
  • Customer Key (required) — The unique key identifying the customer to update within the store.
  • Version (required) — The current version of the customer object, required for concurrency control.
  • Actions (UI) — A UI-configurable list of update actions to apply to the customer, such as changing email, adding addresses, setting custom fields, etc.
  • Actions (JSON) — Raw JSON array of update actions that overrides the UI-configured actions when not empty.

Output shape

A single JSON object representing the updated customer resource as returned by the commercetools API.

The operation requires the correct version number for concurrency control. Update actions can be specified either via the UI collection or as raw JSON. Errors in the update process will be returned as node errors. The output JSON includes the full updated customer data as per commercetools API response.

Examples

Example 1: Update customer's email and add an address in a specific store

Set Store Customer Key, Store Key, Customer Key, and current Version. Specify update actions via the UI or JSON to change the email and add an address.

Links

Discussion