POST /api/v2/accounts/create-child
Creates a new account under your organization. If the current account is standalone, this first converts it into an organization and creates the organization/account hierarchy. Requires ADMIN role.
Request
curl
Seller account
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Name for the new account (1–255 chars) |
customerRole | enum | Yes | BUYER or SELLER |
parentName | string | No | Name for the organization created during standalone conversion (1–255). Defaults to "{company} (Admin)" |
customerDomain | string | No | Registered domain for the account (max 255, valid hostname). For SELLER, also seeds the auto-created storefront’s publisher and operator domain |
defaultCurrency | string | Seller | Primary storefront settlement currency. Required when paymentCurrencies is non-empty. |
paymentCurrencies | string[] | No | Storefront settlement currencies. For SELLER, include defaultCurrency; omit or pass [] to use only the primary currency. |
Response
Returns the full user context scoped to the new account.| Field | Type | Notes |
|---|---|---|
user | object | User profile data |
customer | object | Context for the newly created account |
customers | array | All accounts the user can access |
showTosBox | boolean | Whether to show the ToS acceptance dialog |
organizationContractMissing | boolean | true when the inherited organization has no active contract; block usage until an org admin accepts ToS |
hasContract | boolean | Whether the account has an active contract |
latestTosVersion | string | Latest embedded sales agent version identifier |
convertedFromStandalone | boolean | true if the request triggered a standalone-to-organization conversion |
Errors
400 VALIDATION_ERROR— missing required field orcustomerDomainfails the hostname pattern.401 UNAUTHORIZED— missing or invalid bearer token.403 FORBIDDEN— caller is not anADMINon the current account.
Related
Account tasks
All account operations
Delete account
Remove an account from your organization
Update account domain
Set the registered domain