This API endpoint allows you to update the customer password. The old password must be verified before we allow the new password to be set.
POST
api/v1/customer/auth/change-password
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
old_password | STRING | true |
new_password | STRING | true |
Sample Responses
{
"status": true,
"message": "Password successfully reset"
}{
"status": false,
"errorCode": "VALIDATION_EXCEPTION",
"messages": {
"new_password": [
"The new password must be at least 8 characters."
]
}
}{
"status": false,
"errorCode": "PASSWORD_MISMATCH",
"message": "The old password used did not match the record in the system"
}{
"status": false,
"errorCode": "VALIDATION_EXCEPTION",
"messages": {
"new_password": [
"The new password field is required."
]
}
}{
"status": false,
"errorCode": "PASSWORD_SIMILAR",
"message": "The new password cannot be the same or similar to your existing password"
}