Generate Reset Password Token for Customer
POST
/auth/customer/{auth_provider}/reset-password
Auth
auth.password_reset
event, passing it the token as a payload. You can listen to that event in a subscriber as explained in this guide, then send the customer a notification. The notification is sent using a Notification Module Provider, and it should have a URL that accepts a token
query parameter, allowing the customer to reset their password from the storefront.Request Request Example
JavaScript
Shell
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/auth/customer//reset-password' \
--header 'Content-Type: application/json' \
--data-raw '"customer@gmail.com"'
Response Response Example
400 - Not Allowed Error
{
"message": "Discount must be set to dynamic",
"type": "not_allowed"
}
Request
Path Params
auth_provider
string
required
Example:
emailpass
Body Params application/json
Responses
Modified at 2025-06-17 04:21:30