Email Verification
This API is used to verify the email of the customer.
Query Parameters
- userId string required
The unique ID of the user.
- token string required
The verification token send via email address.
Responses
- 200
- 400
- 401
Success response
- application/json
- Example
{
"statusCode": 200,
"message": "Success"
}
Validation error response
- application/json
- Example
{
"statusCode": 400,
"errors": {
"userId": [
"userId must be a mongodb id"
],
"token": [
"token must be a string"
]
},
"message": "Bad Request"
}
Invalid token error response
- application/json
- Example
{
"statusCode": 401,
"message": "Invalid token",
"error": "Unauthorized"
}