searchAccounts( )


Retrieves a list of accounts, given the provided filters and search capabilities. Search is executed on the account's name and email values.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Loyalty
Read Loyalty
Learn more about app permissions.
Method Declaration
Copy
function searchAccounts(
  options: SearchAccountsOptions,
): Promise<SearchAccountsResponse>;
Method Parameters
optionsSearchAccountsOptions
Returns
Return Type:Promise<SearchAccountsResponse>
JavaScript
import { accounts } from "@wix/loyalty"; async function searchAccounts(options) { const response = await accounts.searchAccounts(options); }
Errors

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

Did this help?