createLoyaltyEarningRule( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a non-automated earning rule.

Note: You can only create non-automated earning rules from a supported list. For the supported list of services, see the introduction.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Loyalty
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
earningRuleLoyaltyEarningRuleRequired

Earning rule to create.

Returns
Return Type:Promise<LoyaltyEarningRule>
Did this help?