Skip to main content

Forgot password

This API is used to change the customer password.

Request Body required
  • email string

    The email address of the customer.

  • mobile object
  • code string required

    Unique numeric country code

  • number string required

    The valid phone number of the customer.

Responses

Success response


{
"statusCode": 200,
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MzJjMzQ3NTIyNjlmMTJjNTc5NTIyNzMiLCJpYXQiOjE2NjM4NDMyODAsImV4cCI6MTY2Mzg0Njg4MH0.zo2mIgKO_uHYiENpSPhOfMJf_zZFQb66BhB4sjU0Lec",
"tokenType": "Bearer",
"expiresIn": 3600
}
}
POST /ecommerce/v1/auth/password/forgot

Authorization

type: oauth2flow: clientCredentialsscopes: user:read,user:write

Request

Bearer Token
Body required
{
"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"
}
}'