getLoyaltyEarningRule( )


Retrieves a specified non-automated earning rule.

Permissions
Manage Loyalty
Read Loyalty
Learn more about app permissions.
Method Declaration
Copy
function getLoyaltyEarningRule(_id: string): Promise<LoyaltyEarningRule>;
Method Parameters
_idstringRequired

ID of the earning rule to retrieve.

Returns
Return Type:Promise<LoyaltyEarningRule>
JavaScript
import { earningRules } from "@wix/loyalty"; async function getLoyaltyEarningRule(id) { const response = await earningRules.getLoyaltyEarningRule(id); }
Errors

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

Did this help?