Sign In
Authenticate a merchant account and receive access token.
Request
POST /merchant/sign-in
Headers
| Key | Value | Description |
|---|---|---|
| Content-Type | application/json | Request content type |
Request Body
{
"email": "merchant@example.com",
"password": "securepassword"
}
Responses
200 OK
{
"status": true,
"data": {
"token": "jwt_access_token",
"user": {
"id": "merchant_id",
"email": "merchant@example.com",
"name": "Merchant Name"
}
},
"error": [],
"message": "success!"
}
401 Unauthorized
{
"status": false,
"data": {},
"error": ["Invalid credentials"],
"message": "Authentication failed"
}