Skip to content

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

FieldTypeDescription
codenumberStatus code, 0 indicates success
dataarrayList of wallet data items
data[].currencystringCurrency code (e.g., USD, VND)
data[].balancenumberThe wallet balance for this currency
msgstringResponse message