Documentation · Balance query

Balance query

POST /api/v1/balance/query

Field Type Required Description
currency string No Currency code. Omit it to return balances for all currencies available to the current merchant.

Request example:

{
  "api_key": "<API_KEY>",
  "merchant_id": "merchant_1001",
  "currency": "MYR",
  "timestamp": "1789516800",
  "nonce": "73a2ebbf-eac5-4eab-a5fc-9dac7f2bb33d",
  "sign": "<64位小写HMAC-SHA256>"
}

Response example:

{
  "code": 0,
  "message": "OK",
  "data": {
    "balances": [
      {
        "currency": "MYR",
        "available_amount": "1000.00",
        "frozen_amount": "51.00",
        "pending_settlement_amount": "0.00"
      }
    ]
  },
  "request_id": "req_01JEXAMPLE"
}

available_amount is the settled available balance, frozen_amount is the frozen balance, and pending_settlement_amount is the pending net pay-in settlement amount. All values are decimal strings. The pending total includes funds awaiting release, being released, or still unsettled after retries are exhausted. Settled or cancelled funds are no longer included.

The platform applies settlement rules from the merchant channel configuration; a merchant request cannot override them temporarily. A paid result in an order query or a verified Notify means the payment succeeded, but delayed funds may still be pending settlement. Settlement time is anchored to the order success time. Use the balance query to distinguish available and pending amounts.

Search docs