Skip to content

Merchant Balance Inquiry

Merchant Balance query

API EndPoint

POST baseUrl + /api/getBalance

Request Parameters

ParameterRequiredTypeExampleDescription
nonceStrYstr(32)1863484722378907648Random string

Request Example

shell
curl -L 'baseUrl/api/getBalance' \
-H 'MerchantId: 1002001' \
-H 'Sign: A6FC73F7D22EC8B4A064C8FFCC592CBF' \
-H 'Content-Type: application/json' \
-d '{"nonceStr":"4190026990"}'

Response Parameters

ParameterTypeDescription
mchIdstringMerchantId
balancedecimal(20,2)Available Balance
unBalancedecimal(20,2)Unavailable Balance

Response Example

json
{
  "msg": "SUCCESS",
  "code": 200,
  "data": {
    "mchId": "3002002",
    "balance": 133334.0,
    "unBalance": 2437828.0
  }
}

//: # (## Payout Bank list query

API EndPoint

POST baseUrl + /api/bankListQuery

Request Parameters

ParameterRequiredTypeExampleDescription
nonceStrYstr(32)1863484722378907648Random string

Request Example

shell
curl -L 'baseUrl/api/getBalance' \
-H 'MerchantId: 1002001' \
-H 'Sign: A6FC73F7D22EC8B4A064C8FFCC592CBF' \
-H 'Content-Type: application/json' \
-d '{"nonceStr":"4190026990"}'

Response Parameters

ParameterTypeDescription
bankIdintbankId
bankCodestr(32)bankCode
bankNamestr(32)bankName

Response Example

json
{
  "msg": "SUCCESS",
  "code": 200,
  "data": [
    {
      "bankId": 1,
      "bankCode": "bankCode",
      "bankName": "bankName"
    },
    {
      "bankId": 2,
      "bankCode": "bankCode",
      "bankName": "bankName"
    }
  ]
}

)

Released under the MIT License.