Loading...

Knowledge Base

Change a Customer Password Using the API

When you want to change a customer password using the API. This article explains the required parameters and API request details for updating a customer account password.

Changing a Customer's Password

 

Description

Changes the password for the specified Customer.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
customer-idIntegerRequiredCustomer Id of the Customer whose password needs to be changed
new-passwdStringRequiredNew password

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/customers/v2/change-password.json?auth-userid=0&api-key=key&customer-id=0&new-passwd=password1

Response

Returns true (Boolean) if the Customer's password is changed successfully.

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.