queryRewards( )


Retrieves a list of rewards, given the provided paging, filtering, and sorting.

Query Rewards runs with these defaults, which you can override: cursorPaging.limit is 50.

To learn about working with Query endpoints, see API Query Language,Sorting and Paging,and Field Projection.

Permissions
Manage Loyalty
Read Loyalty
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
queryCursorQueryRequired

Query parameters.

Returns
Return Type:Promise<QueryRewardsResponse>
JavaScript
Errors

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

Did this help?