| Create | POST /v2/organizations/:organizationId/sub-accounts | sub_accounts write | Starts empty under the organization’s canonical Mother Account. Accepts optional name (string | null, max 64 chars, case-insensitive unique per Mother Account; duplicate returns 409 sub_account_name_taken). Optional Idempotency-Key makes retries safe. Default limit: 10 live sub-accounts per organization. |
| List | GET /v2/organizations/:organizationId/sub-accounts | sub_accounts read | Lists all live sub-accounts oldest first (each including name: string | null), alongside activeSubAccountCount and activeSubAccountLimit. |
| Rename | PATCH /v2/organizations/:organizationId/sub-accounts/:subAccountId | sub_accounts write | Sets, renames, or clears ({ name: null }) a live sub-account’s display name (max 64 trimmed chars, case-insensitive unique per Mother Account; duplicate returns 409 sub_account_name_taken). |
| Transfer | POST /v2/organizations/:organizationId/transfers | sub_accounts write | Instant atomic move between Mother Account and one of its live sub-accounts. Requires Idempotency-Key. Returns nullable balanceBefore, balanceAfter, fromBalanceBefore, fromBalanceAfter, toBalanceBefore, toBalanceAfter. |
| History | GET /v2/organizations/:organizationId/transfers | sub_accounts read | Lists Mother to Sub-account moves newest first, filterable by code, since, limit, and account, with nullable balanceBefore, balanceAfter, fromBalanceBefore, fromBalanceAfter, toBalanceBefore, toBalanceAfter. |
| Preview close | GET /v2/organizations/:organizationId/sub-accounts/:accountId/close | Owner partner session | Reports open orders, positions, spot tokens, active keys, and estimated free collateral return. |
| Close | POST /v2/organizations/:organizationId/sub-accounts/:accountId/close | Owner partner session | Cancels open orders, reduces perpetual positions, revokes scoped keys, returns free collateral to the Mother Account, and deletes the account once empty. |
| Delete (empty) | DELETE /v2/organizations/:organizationId/sub-accounts/:subAccountId | sub_accounts write | Immediately deletes a sub-account that holds zero positions, orders, collateral, bad debt, and spot tokens, revoking all scoped keys atomically. |