commercetools icon

commercetools

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

Actions671

Customer → Update Customer by ID

AI-generated

Summary

Update a specific customer in commercetools by ID using a version number and one or more update actions.

Inputs

  • Customer ID (required) — The unique identifier of the customer to update.
  • Version (required) — The current version of the customer resource for optimistic concurrency control.
  • Actions (UI) — One or more update actions selected and configured through the UI to apply to the customer.
  • Actions (JSON) — Raw JSON array of update actions; takes precedence over Actions (UI) when provided.

Output shape

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

The update requires the correct version number to avoid conflicts; if Actions (JSON) is non-empty it overrides the UI actions. Errors are thrown if the update fails, and can be optionally handled with continueOnFail.

Links

Discussion