Retrieves a list of rewards.
The list includes rewards that are currently nonredeemable due to insufficient points held by any customers.
function listRewards(options: ListRewardsOptions): Promise<ListRewardsResponse>;
List options.
import { rewards } from "wix-loyalty.v2";
async function listRewards(options) {
try {
const result = await rewards.listRewards(options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.