Query Member Balance
1. Query Member Balance
Interface Path
- Get
- /api/wallet/balance
Request Parameters
Parameter | Name | Type | Required | Description |
---|---|---|---|---|
agent_id | Merchant ID | string | Required | Merchant ID |
user_id | Merchant User ID | string | Required | Merchant User ID |
currency | Currency | string | Required | Currency |
timestamp | Current Timestamp | int | Required | Timestamp when calling the interface (in milliseconds, valid for ten minutes) |
sign | Signature | string | Required | Signature algorithm details in the interface description |
Response Parameters
Parameter | Name | Type | Description |
---|---|---|---|
code | Response Code | int | Error Code |
message | Response Message | string | Error Message |
data | Response Data | dict | Response Data Details |
--agent_id | Merchant ID | string | Merchant ID |
--user_id | Merchant User ID | string | Merchant User ID |
--balance | Current Balance | string | Current Balance |
--currency | Currency | string | Currency |
Request Example
curl --location 'https://staging.aig1234.com/api/wallet/balance?agent_id=agent001¤cy=VND2&user_id=testUid03×tamp=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