createAccount( )


Creates a new Wix account, and creates a new Wix user as the account owner. The newly created account is a child account of the account used to create it, making that account its parent.

Important: This call requires an account level API key.

Method Declaration
Copy
Method Parameters
userUserRequired

The user to create under the new account, with the roles defined in roles.


optionsCreateAccountOptions

Filter options.

Returns
Return Type:Promise<CreateAccountResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?