Customer Signin
This API allows customers to sign in into the store.
- 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.
- password string required
Possible values:
>= 6 characters
and<= 24 characters
The password of the customer, should be greater than or equal to 8 characters and less than or equal to 32 characters.
- referralCode string
The referral code received from the other user.
- referredBy string
The unique id of the referrer.
Responses
- 200
- 400
- 403
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"
],
"password": [
"password must be longer than or equal to 8 characters"
]
},
"message": "Bad Request"
}
- application/json
- Example
{
"statusCode": 403,
"message": "Account not verified",
"error": "Forbidden"
}