Retrieves a list of accounts, given the provided filters and search capabilities. Search is executed on the account's name and email values.
You can only call this method when authenticated as a Wix app or Wix user identity.
function searchAccounts(
options: SearchAccountsOptions,
): Promise<SearchAccountsResponse>;
import { accounts } from "@wix/loyalty";
async function searchAccounts(options) {
const response = await accounts.searchAccounts(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.