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/forgot-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"phone": "<string>",
"country_code": "<string>"
}
'{
"message": "<string>",
"success": true,
"content": {
"otp_token": "<string>"
}
}The Forgot Password API provides a secure mechanism for users to initiate the password recovery process. This API provides one-time password (OTP) token, which facilitas the resetting of user’s account password.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/auth/forgot-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"phone": "<string>",
"country_code": "<string>"
}
'{
"message": "<string>",
"success": true,
"content": {
"otp_token": "<string>"
}
}Access token
A string representing the email address.
10 digit phone number without country code.
Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided. Use this key along with phone. Not necessary for email.
OK
Was this page helpful?