curl --request GET \
--url https://{cluster}.voucherify.io/v2/loyalties/programs/{programId}/earning-rules \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'List program earning rule assignments
Returns a cursor-paginated list of earning rules assigned to the program.
A successful call records no activity.
curl --request GET \
--url https://{cluster}.voucherify.io/v2/loyalties/programs/{programId}/earning-rules \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'Authorizations
Path Parameters
Identifies the loyalty program. Format lprg_[a-f0-9]+.
^lprg_[a-f0-9]+$Query Parameters
Limits the page size to an integer from 1 to 100. Defaults to 10. A numeric string is accepted and rounded to the nearest integer.
1 <= x <= 100Orders the results. Accepts one value or an array. Prefix a field with - for descending order. Defaults to -created_at. The same field cannot be used in both directions. Rows with the same sort value are then ordered by id ascending.
-created_at, created_at Continues pagination. Pass the cursor.next value from a previous response. Format lcrserna_[a-f0-9]+. The cursor matches the filters and order of that response.
^lcrserna_[a-f0-9]+$Response
Paginated list of earning rule assignments.
Response body schema for GET /v2/loyalties/programs/{programId}/earning-rules.

