GET

List Earning Rules


Retrieves a list of earning rules.

Returns both automated and non-automated earning rules.

You can filter the results by triggerAppId or triggerActivityType.

Permissions
Manage Loyalty
Read Loyalty
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/_api/loyalty-earning-rules/v1/earning-rules/rules

Query Params
triggerAppIdstring

App ID that triggers the point assignment. For example, 9a5d83fd-8570-482e-81ab-cfa88942ee60.


triggerActivityTypestring

Type of activity that triggers the point assignment. For example, restaurants-order-is-pending.

Response Object
earningRulesArray <LoyaltyEarningRule>

Retrieved earning rules.

List earning rules
Request
cURL
Response
JSON
Errors

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

Did this help?