Skip to main content

Get Account Balance By Sub Account

Retrieves balances for all direct sub-accounts of the specified main account

GET https://api.spotflow.co/api/v1/balances/:accountNumber/sub-balances

Headers

authorization
String

Bearer SECRET_KEY
Include your secret key in the request header as a Bearer token for authorization. Unauthorized requests will result in a 401 HTTP status code.

Query Parameters

accountNumber
Integer

This filters by the specified main account number.

Sample Response:

200 OK

[
{
"accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"currency": "NGN",
"balance": 0,
"availableBalance": 0,
"accountTag": "main-account",
"parentAccountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
]