Retrieves a reward.
function getReward(_id: string): Promise<Reward>;
ID of the reward to retrieve.
import { rewards } from "@wix/loyalty";
async function getReward(id) {
const response = await rewards.getReward(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.