This method has been replaced with Query Loyalty Accounts, and will be removed on June 1, 2025.
Deprecation Notice
This method has been replaced with Query Loyalty Accounts and will be removed on June 30, 2025. If your app uses this method, we recommend updating your code as soon as possible.
Retrieves a list of loyalty accounts, given the provided filters.
The listAccounts()
function returns a Promise that resolves to a list of loyalty accounts.
You can retrieve selected loyalty accounts with an array of contactIds
or retrieve a list of all of a site's loyalty accounts
with an empty request parameter. Use the cursorPaging
parameters to limit how many items load at a time.
Note: Only visitors with Manage Loyalty permissions can retrieve loyalty accounts.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
Options to use when retrieving a list of loyalty accounts.