Merchant login

After the successful login, you can get access token and refresh token

POST
/api/v1/login

Header Parameters

Acceptstring

application/json

Content-Typestring

application/json

usernamestring

Merchant username

passwordstring

Merchant password

Response Body

application/json

application/json

application/json

application/json

const body = JSON.stringify({  "username": "Test",  "password": "Test@1234"})fetch("https://merchantapisandbox.hesabe.com/api/v1/login", {  method: "POST",  headers: {    "Content-Type": "application/json",    "Accept": "application/json"  },  body})
{
  "status": true,
  "message": "Success",
  "response": {
    "token": {
      "token_type": "Bearer",
      "expires_in": 900,
      "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...",
      "refresh_token": "def502005bcf51e405360c33b0be6546e5205cdb62f8..."
    }
  }
}
{
  "status": false,
  "message": "Invalid Signature.",
  "response": null
}
{
  "status": false,
  "message": "Request not found, Please verify the request data",
  "response": null
}
{
  "message": "Internal server error occurred"
}