ledger-sub-accounts
Fetch all sub-accounts belonging to the customer.
Changed onThis endpoint returns all sub-accounts
get/ledger/subaccounts
Request
- Base URLhttps://external.dev.onboardpay.co
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
accountIdstring uuid
The ID for the main account for the request.
sizeinteger
pageinteger
Page parameter, starting from 1
Response
Sub-accounts fetched Successfully
Example response
{
"content": [
{
"currency": "USD",
"accountBalance": {
"balance": 1000,
"availableBalance": 1000
}
}
]
}Changes
- info
the endpoint scheme security
HMACAuthwas added to the API - info
the endpoint scheme security
authTokenwas removed from the API
- info
- info
endpoint added
- info