Langsung ke konten utama
POST
/
v3
/
stores
/
{store_id}
/
public
/
auth
/
forget-password
Start a customer password reset flow
curl --request POST \
  --url https://api.scalev.com/v3/stores/{store_id}/public/auth/forget-password \
  --header 'Content-Type: application/json' \
  --header 'X-Scalev-Storefront-Api-Key: <x-scalev-storefront-api-key>' \
  --data '
{
  "email": "jsmith@example.com"
}
'
{
  "error": {},
  "error_code": "<string>",
  "message": "<string>",
  "errors": {}
}

Header

X-Scalev-Storefront-Api-Key
string
wajib

Publishable storefront public API key for the target store. Page public API keys are not accepted on Storefront public routes.

Parameter Path

store_id
string
wajib

Store unique_id.

Body

application/json

Starts a customer password reset. Storefront API reset email links use http(s)://<allowed-storefront-host>/reset-password?token=<reset-token>. Browser calls should rely on the registered Origin header for reset-link hostname selection; the API falls back to the hosted storefront custom domain when Origin is not present.

email
string<email>
wajib

Respons

Success with no response body