Commerce Engine is now in early preview. Please report any issues or feedback to support@commercengine.io
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>"
}
}Changes the authenticated userβs password. Requires the current password and the new password.
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?