v1

latestOpenAPI 3.0.1MIT2026-07-263151,3912.3 MB
Programs

List program earning rule assignments

<Warning>

<Badge color="yellow">BETA endpoint</Badge>

This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.

</Warning>

Returns a cursor-paginated list of earning rules assigned to the program.

get/v2/loyalties/programs/{programId}/earning-rules

Path parameters

idstring required

Unique program identifier.

Query parameters

{"stackTrail":"paths:/v2/loyalties/programs/{programId}/earning-rules:get:parameters:1:schema","oasType":"schema","type":"unknown"}

Maximum number of items to return. Between 1 and 100. Defaults to 10. Non-integer values are rounded.

string[]
OR
'-created_at' | 'created_at'

Sorting order. A single value or an array of values. Prefix with - for descending. Defaults to -created_at. The same field cannot be used in both ascending and descending order at once.

{"stackTrail":"paths:/v2/loyalties/programs/{programId}/earning-rules:get:parameters:3:schema","oasType":"schema","type":"unknown"}

Pagination cursor returned by a previous call (cursor.next).

Response

Paginated list of earning rule assignments.

objectstring

Object type marker.