Confirm Forgot Password Store
Confirm password reset using the OTP code sent to store's email.
Endpoint
Authentication
Not required (public endpoint)
Request Body
Parameters
| Field | Type | Required | Description | Validation |
|---|---|---|---|---|
email |
string | Yes | Store's email address | Valid email format |
code |
string | Yes | OTP code received via email | Not empty |
new_password |
string | Yes | New password | Min 8 chars, uppercase, lowercase, number, symbol |
Response
Success (200 OK)
The password is reset and all existing tokens are invalidated. Store must login again.
Error Responses
Store Not Found (404)
Invalid OTP (404)
Example Request
curl -X POST "https://api.luxmart.site/v1/accounts/confirm/forget/password/store/" \
-H "Content-Type: application/json" \
-d '{
"email": "store@example.com",
"code": "123456",
"new_password": "NewSecurePass123!"
}'
Notes
- Password is hashed before storage
- OTP is cleared after successful reset
- All store tokens are deleted
- Store must login again with the new password