Request
About 1 min
Tips
This endpoint will return your current account balance in Rupiah (IDR).
HTTP Request
Tips
Header Format Structure Components – balance inquiry
Service Code | 11 |
---|---|
Name | API balance inquiry |
Version | 1.0 |
HTTP Method | POST |
Path | .../{version}/balance-inquiry |
Header Parameters
Tips
API Header Format Structure for Balance Inquiry:
Area | Field | Attribute | Type | Description |
---|---|---|---|---|
Header | Content-Type | Mandatory | String | String represents indicate the media type of the resource (application/json) |
Authorization | Mandatory | String | String starts with keyword “Bearer ” followed by access_token (e.g. Bearer eyJraWQiOi...Jzc29zIiiY) | |
X-TIMESTAMP | Mandatory | String | Merchant's current local time in yyyy-MM-ddTHH:mm:ssTZD format | |
X-SIGNATURE | Mandatory | String | Represents signature of a request.Identify Signature Type used | |
ORIGIN | Optional | String | Origin Domain www.yourdomain.com | |
X-PARTNER-ID | Mandatory | String | Unique ID for a partner as merchant_id | |
X-EXTERNAL-ID | Mandatory | String | Numeric String. Reference number that should be unique in the same day | |
CHANNEL-ID | Mandatory | String | Fixed value: 95221 |
Notes:
X-SIGNATURE
- HMAC_SHA512 (merchantSecret, stringToSign) with formula stringToSign = HTTPMethod +”:“+ EndpointUrl +":"+
AccessToken +":“+ Lowercase(HexEncode(SHA-256(minify(RequestBody))))+ ":“ + TimeStamp- Complete URL endpoint including all parameters in related URL (Relative path, example: Path in general information
of each API service)- For the minify(Request Body) parameter, in case there is no Request Body then an empty string is used.
Tips
Example Header – Balance Inquiry Request:
POST .../v1.0/balance-inquiry HTTP/1.2
Content-type: application/json
Authorization: Bearer gp9HjjEj813Y9JGoqwOeOPWbnt4CUpvIJbU1mMU4a11MNDZ7Sg5u9a"
X-TIMESTAMP: 2020-12-18T15:06:00+07:00
X-SIGNATURE: 85be817c55b2c135157c7e89f52499bf0c25ad6eeebe04a986e8c862561b19a5
ORIGIN: www.hostname.com
X-PARTNER-ID: 82150823919040624621823174737537
X-EXTERNAL-ID: 41807553358950093184162180797837
CHANNEL-ID: 0001
Body Parameters
Area | Field | Attribute | Type | Description |
---|---|---|---|---|
Body | accountNo | Mandatory | String(128) | The account of merchant |
balanceTypes | Mandatory | List(String) | String List. balance types on the account. Supported type:'BALANCE' |
Tips
- In sandbox you can fill random string , but if in prod you can find in this page. the balance of payin is different
from the payout
There are two account no .
Example Header – Balance Inquiry Request:
{
"accountNo": "2000100101",
"balanceTypes": ["BALANCE"]
}