POST /api/v2/accounts/create-child
Creates a new child customer account. If your account is still standalone, the call first converts it into a parent and nests the new account underneath. Requires the ADMIN role.
Request
Parameters
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | Name for the new child account (max 255) |
customerRole | enum | Yes | BUYER or SELLER |
parentName | string | No | Name for the parent created during standalone conversion. Defaults to "{company} (Admin)" |
customerDomain | string | No | Registered organization domain. For SELLER accounts, also seeds the auto-created storefront’s publisher and operator domain |
Response
| Field | Type | Notes |
|---|---|---|
user | object | Your user profile scoped to the new child |
customer | object | Context for the newly created child |
customers[] | array | All accounts you can now access |
showTosBox | boolean | Whether to surface the ToS acceptance dialog |
organizationContractMissing | boolean | True when the child cannot operate because its inherited organization has no active contract |
hasContract | boolean | Whether the customer has an active contract |
latestTosVersion | string | Latest embedded sales agent version identifier |
convertedFromStandalone | boolean | True if the request triggered a standalone-to-parent conversion |
Errors
400 VALIDATION_ERROR— missingname/customerRole, or a malformedcustomerDomain.401 UNAUTHORIZED— caller is not anADMIN.
Related
Account tasks
All account operations
Delete child account
Remove an empty child
List customer accounts
See the new child