For the complete documentation index, see llms.txt. This page is also available as Markdown.

Query Sub-Merchant Balance

Endpoint: GET /v2/gc/accounts/balance/query

Description: Query account balances for a sub-merchant across all currencies and account types in a single request.

Request

Request Params Field Descriptions

Field Name
Type
Required
Description

subMerchantId

string

Yes

Sub-merchant identifier (minimum length 1).

accountType

string

No

Enum: FUND_ACCOUNT | VCC_ACCOUNT | REFUND_ACCOUNT. Omit to retrieve all account types.

currency

string

No

ISO 4217 currency code. Omit to retrieve all currencies.

Example query

GET /v2/gc/accounts/balance/query?subMerchantId=10000002&accountType=FUND_ACCOUNT&currency=AUD

Response

Response Field Descriptions

Field Name
Type
Description

code

number

Response code.

data

array

Array of account balance entries (one per matching account type/currency combination).

message

string

Response message.

neoResponseId

string

Unique NeoX response identifier.

data array item fields:

Field Name
Type
Description

subMerchantId

string

Echoes the queried sub-merchant identifier.

accountNo

string

Account number.

accountType

string

Account type, e.g. FUND_ACCOUNT.

currency

string

ISO 4217 currency code.

balance

string

Total account balance (sum of available balance and frozen amount).

availableBalance

string

Available balance that can be used for transactions.

frozenAmount

string

Frozen amount that is temporarily unavailable.

Response sample

Real captured example — note the query above filtered on currency=AUD, but the response returned the sub-merchant's other funded currencies (CNY, USD) instead; the endpoint does not appear to strictly filter by currency in every case, so don't assume the response is limited to the requested currency:

Notes

  • Requires Bearer token in the Authorization header (not a request signature — see the hint above about the difference from the upstream processor's own API).

  • The Accept-Language header can be used to specify the response language (Support: "vi", "en").

  • subMerchantId is required; accountType and currency are optional filters, but as noted above the filtering behavior is not fully confirmed to be strict.

  • balance equals availableBalance + frozenAmount.

Last updated

Was this helpful?