Balance Inquiry

Balance Inquiry

post
/snap/v1.1/balance-inquiry
Header parameters
X-EXTERNAL-IDstringRequired

Numeric String. Reference number that should be unique in the same day (Request Id)

Example: 41807553358950093184162180797837
X-PARTNER-IDstringRequired

Client Id for merchant that generated by DOKU

Example: BRN-0240-1657686175289
X-SIGNATUREstringRequired

Symmetric Signature with Get Token (Default)HMAC_SHA512 (clientSecret, stringToSign) dengan formula stringToSign = HTTPMethod +”:“+ EndpointUrl +":"+ AccessToken +":“+ Lowercase(HexEncode(SHA-256(minify(RequestBody))))+ ":“ + TimeStamp

Example: ieNOENDdN4MnectGytx5UvmOfASZ2oGWMCJ8gVqkw3tB98ofgY9cbxSeY4IYoYeoKs+0QP4h8BTBhemlfeXp1w==
X-TIMESTAMPstringRequired

Client's current local time with format YYYY-MM-DDTHH:mm:ssZD

Example: 2020-12-21T14:56:11+07:00
CHANNEL-IDstringRequired

refers to a unique identifier for the channel or method used to initiate a payment transaction

Example: H2H
Body
partnerReferenceNostring · max: 64Optional

Transaction identifier on service consumer system, generated by partner.

accountNostring · max: 16RequiredExample: A41879
Responses
200

Transfer bank processed

application/json
post
/snap/v1.1/balance-inquiry
POST /snap/v1.1/balance-inquiry HTTP/1.1
Host: api-sandbox.doku.com
X-EXTERNAL-ID: text
X-PARTNER-ID: text
X-SIGNATURE: text
X-TIMESTAMP: text
CHANNEL-ID: text
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "partnerReferenceNo": "text",
  "accountNo": "A41879"
}
{
  "responseCode": 2001100,
  "responseMessage": "Successful",
  "accountNo": "A41879",
  "name": "Simulator Indo Agent",
  "accountInfos": {
    "holdAmount": {
      "value": "0.00",
      "currency": "IDR"
    },
    "avaliableBalance": {
      "value": "823781442.13",
      "currency": "IDR"
    }
  },
  "additionalInfo": {
    "creditAlertLimit": {
      "value": "65000.00",
      "currency": "IDR"
    }
  }
}

Last updated

Was this helpful?