Skip to main content

Query Member Balance

1. Query Member Balance

Interface Path

  • Get
  • /api/wallet/balance

Request Parameters

ParameterNameTypeRequiredDescription
agent_idMerchant IDstringRequiredMerchant ID
user_idMerchant User IDstringRequiredMerchant User ID
currencyCurrencystringRequiredCurrency
timestampCurrent TimestampintRequiredTimestamp when calling the interface (in milliseconds, valid for ten minutes)
signSignaturestringRequiredSignature algorithm details in the interface description

Response Parameters

ParameterNameTypeDescription
codeResponse CodeintError Code
messageResponse MessagestringError Message
dataResponse DatadictResponse Data Details
--agent_idMerchant IDstringMerchant ID
--user_idMerchant User IDstringMerchant User ID
--balanceCurrent BalancestringCurrent Balance
--currencyCurrencystringCurrency

Request Example

curl --location 'https://staging.aig1234.com/api/wallet/balance?agent_id=agent001&currency=VND2&user_id=testUid03&timestamp=1732589849000&sign=554f8c395b712dbee3e18c79c6274408' \
--header 'Content-Type: application/json'

Response Example

{
"code": 200,
"message": "success",
"data": {
"agent_id": "agent001",
"user_id": "testUid03",
"balance": "500.00",
"currency": "VND2"
}
}

Error Codes

200 Success
408000 Request Parameter Error
408003 Whitelist Restriction
408004 API Frequency Limit
600100 Invalid Signature
700101 Merchant Does Not Exist
700103 Member Does Not Exist
700201 Member Wallet Does Not Exist
700202 Member Wallet Type Is Not Transfer Wallet