ledger-sub-accounts
Create sub-account for a customer.
Changed onThis endpoint helps to create sub-accounts for a customer. The endpoint requires the main account ID to create a sub-account under it.
post/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.
Request body
Response
Sub-account created Successfully
Example response
{
"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