Creating sub-accounts
Create a sub-account withPOST /ledger/subaccounts,
passing a subAccountIdRef — use your own internal customer or entity
identifier here, since it’s how you’ll reference the sub-account in every
subsequent call.
Updating and deleting
PUT /ledger/subaccounts/{subAccountIdRef}— rename a sub-account or freeze/unfreeze it.DELETE /ledger/subaccounts/{subAccountIdRef}— delete a sub-account. The sub-account balance must be zero first.