Skip to main content

Sign In

Authenticate a merchant account and receive access token.

Request

POST /merchant/sign-in

Headers

KeyValueDescription
Content-Typeapplication/jsonRequest 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"
}