Retrieves a specified non-automated earning rule.
function getLoyaltyEarningRule(_id: string): Promise<LoyaltyEarningRule>;
ID of the earning rule to retrieve.
import { earningRules } from "@wix/loyalty";
async function getLoyaltyEarningRule(id) {
const response = await earningRules.getLoyaltyEarningRule(id);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.