Forgot password
This API is used to change the customer password.
- application/json
Request Body required
- email string
The email address of the customer.
mobile object
code string requiredUnique numeric country code
number string requiredThe valid phone number of the customer.
Responses
- 200
- 400
Success response
- application/json
- Example
{
"statusCode": 200,
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MzJjMzQ3NTIyNjlmMTJjNTc5NTIyNzMiLCJpYXQiOjE2NjM4NDMyODAsImV4cCI6MTY2Mzg0Njg4MH0.zo2mIgKO_uHYiENpSPhOfMJf_zZFQb66BhB4sjU0Lec",
"tokenType": "Bearer",
"expiresIn": 3600
}
}
Validation error response
- application/json
- Example
{
"statusCode": 400,
"errors": {
"email": [
"email must be an email"
],
"mobile": {
"number": [
"number must be a valid phone number"
]
}
},
"message": "Bad Request"
}