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
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"
}
POST /ecommerce/v1/auth/password/forgot
Authorization
type: oauth2flow: clientCredentialsscopes: user:read,user:write
Request
Request
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'
curl -L -X POST 'https://posbytz.github.io/ecommerce/v1/auth/password/forgot' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"email": "string",
"mobile": {
"code": "string",
"number": "string"
}
}'