Skip to main content

Request

smilepayz teamsAbout 1 min



Tips

This endpoint will return your current account balance in Rupiah (IDR).

HTTP Request



Tips

Header Format Structure Components – balance inquiry

Service Code11
NameAPI balance inquiry
Version1.0
HTTP MethodPOST
Path.../{version}/balance-inquiry

Header Parameters



Tips

API Header Format Structure for Balance Inquiry:

AreaFieldAttributeTypeDescription
HeaderContent-TypeMandatoryStringString represents indicate the media type of the resource (application/json)
AuthorizationMandatoryStringString starts with keyword “Bearer ” followed by access_token (e.g. Bearer eyJraWQiOi...Jzc29zIiiY)
X-TIMESTAMPMandatoryStringMerchant's current local time in yyyy-MM-ddTHH:mm:ssTZD format
X-SIGNATUREMandatoryStringRepresents signature of a request.Identify Signature Type used
ORIGINOptionalStringOrigin Domain www.yourdomain.comopen in new window
X-PARTNER-IDMandatoryStringUnique ID for a partner as merchant_id
X-EXTERNAL-IDMandatoryStringNumeric String. Reference number that should be unique in the same day
CHANNEL-IDMandatoryStringFixed value: 95221

Notes: X-SIGNATURE

  1. HMAC_SHA512 (merchantSecret, stringToSign) with formula stringToSign = HTTPMethod +”:“+ EndpointUrl +":"+
    AccessToken +":“+ Lowercase(HexEncode(SHA-256(minify(RequestBody))))+ ":“ + TimeStamp
  2. Complete URL endpoint including all parameters in related URL (Relative path, example: Path in general information
    of each API service)
  3. 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



AreaFieldAttributeTypeDescription
BodyaccountNoMandatoryString(128)The account of merchant
balanceTypesMandatoryList(String)String List. balance types on the account. Supported type:'BALANCE'

Tips

  1. 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"]
}
Last update: