Merchant login
After the successful login, you can get access token and refresh token
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"
}Overview
Comprehensive Smart POS integration guide covering both Merchant Panel and API methods with detailed tutorials and examples.
Get refresh token POST
After the successful login, you need to update the refresh token for every 15 minutes. For this API, the payload is transmitted in plain format. Encryption or decryption of the payload is not required before sending the request to the server or when processing the server response