Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name
of the campaign as the path parameter value, e.g., Loyalty%20Campaign
.
"camp_rRsfatlwN7unSeUIJDCYedal"
Query Parameters
Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items.
1 <= x <= 100
Which page of results to return. The lowest value is 1
.
1 <= x <= 100
Sorts the results using one of the filtering options, where the dash - preceding a sorting option means sorting in a descending order.
created_at
, -created_at
, updated_at
, -updated_at
Response
Returns a list of earning rules.
Response body schema for listing earning rules using GET v1/loyalties/{campaignId}/earning-rules
endpoint.
The type of the object represented by JSON. This object stores information about earning rules in a dictionary.
list
Identifies the name of the attribute that contains the array of earning rule objects.
Contains array of earning rule objects.
Total number of earning rule objects.