commercetools icon

commercetools

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

Actions671

Customer → Change password of Customer

AI-generated

Summary

Change the password of a specific Customer in commercetools by providing the customer's ID, current password, new password, and the current version of the customer record.

Inputs

  • Id (required) — The unique identifier of the customer whose password you want to change.
  • Version (required) — The current version number of the customer, used for concurrency control.
  • Current Password (required) — The customer's existing password to verify identity before changing.
  • New Password (required) — The new password to set for the customer.

Output shape

a single JSON object representing the updated Customer or an error message if the password change fails.

The operation requires valid credentials and the provided version must match the current customer version to succeed. Errors from the commercetools API will be returned if the current password is incorrect or other issues occur.

Examples

Example 1: Change customer password with correct credentials and valid parameters

Provide Customer ID, current version, current password, and new password to the operation.

Links

Discussion