This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of child account IDs for the requesting account. If no child accounts exist, an empty list will be returned.
Important: This call requires an account level API key and cannot be authenticated with the standard authorization header. API keys are currently available to selected beta users only.
function listChildAccounts(
options: ListChildAccountsOptions,
): Promise<ListChildAccountsResponse>;
Filter options.
import { createClient, ApiKeyStrategy } from "@wix/sdk";
import { accounts } from "@wix/user-management";
const wixClient = createClient({
modules: { accounts },
auth: ApiKeyStrategy({
apiKey: "MY-API-KEY",
}),
});
async function listChildAccounts(options) {
const response = await accounts.listChildAccounts(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.