Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"old_password": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
'{
"message": "<string>",
"success": true,
"content": {
"access_token": "<string>",
"refresh_token": "<string>"
}
}The Change Password API is a key feature designed to provide a secure and standardized method for users to update their passwords.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"old_password": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
'{
"message": "<string>",
"success": true,
"content": {
"access_token": "<string>",
"refresh_token": "<string>"
}
}Access token
The old password associated with the user's account. This parameter is crucial for verifying the user's identity before allowing a password change.
The new password that the user intends to set for their account. This parameter is necessary for updating the password to enhance account security.
A confirmation of the new password.
OK
A descriptive message confirming the success or failure of the change password operation.
Indicates whether the request was successful or failure (true for success, false for failure).
An object containing the response content.
Show child attributes
Was this page helpful?