Get Balance
Retrieve the current member's wallet balances for all supported currencies. If the system has introduced new default currencies, this endpoint will automatically initialize them (with a balance of 0) and return them in the response.
Endpoint Details
- Path:
/client/member/getBalance - Method:
GET - Description: Retrieve the current member's wallet balances for all supported currencies. If the system has introduced new default currencies, this endpoint will automatically initialize them (with a balance of 0) and return them in the response. Requires the
Authorization: Bearer <token>header for authentication.
Request Parameters
No specific query parameters are required. The system will automatically identify the currently logged-in member based on the provided Token.
Response Example
json
{
"code": 0,
"data": [
{
"currency": "USD",
"balance": 1500.5
},
{
"currency": "VND",
"balance": 0
}
],
"msg": "Success"
}Response Parameters
| Field | Type | Description |
|---|---|---|
| code | number | Status code, 0 indicates success |
| data | array | List of wallet data items |
| data[].currency | string | Currency code (e.g., USD, VND) |
| data[].balance | number | The wallet balance for this currency |
| msg | string | Response message |