Merchant login
After the successful login, you can get access token and refresh token
POST
Base URL
Sandbox Base URL
Strictly for sandbox testing. Never use the sandbox URL in your production environment.
https://merchantapisandbox.hesabe.com
Accept*stringapplication/json
Content-Type*stringapplication/json
application/json- body
username*stringMerchant username
password*stringMerchant password
Details fetched successfully. Decrypt the server response to view the final result
application/json- response
status?booleanmessage?stringresponse?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})Example Response
{ "status": true, "message": "Success", "response": { "token": { "token_type": "Bearer", "expires_in": 900, "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...", "refresh_token": "def502005bcf51e405360c33b0be6546e5205cdb62f8..." } }}Overview
Comprehensive merchant API documentation with detailed endpoints for authentication, invoice management, refunds, and payment operations.
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