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/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>"
}
}Initiates password recovery by sending an OTP. Returns an otp_token to pass to the reset-password endpoint.
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
A descriptive message confirming the success or failure of the 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?