Skip to main content
GET
/
v2
/
loyalties
/
programs
/
{id}
/
earning-rules
List earning rule assignments for a program
curl --request GET \
  --url https://api.voucherify.io/v2/loyalties/programs/{id}/earning-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
{
  "data": [
    {
      "earning_rule_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "object": "<string>"
    }
  ],
  "cursor": {
    "next": "<string>",
    "expires_at": "2023-11-07T05:31:56Z"
  },
  "object": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

X-App-Id
string
header
required
X-App-Token
string
header
required

Path Parameters

id
string
required

Unique program identifier

Pattern: ^lprg_[a-f0-9]+$

Query Parameters

limit
integer
default:10

Maximum number of results to return (1-100, default 10)

Required range: 1 <= x <= 100
order

Sort order for earning rule assignments

Available options:
-created_at,
created_at
cursor
string

Cursor for pagination

Pattern: ^lcrserna_[a-f0-9]+$

Response

Paginated list of earning rule assignments

data
object[]
cursor
object

Cursor for fetching the next page of results.

object
string
Allowed value: "list"
Last modified on May 11, 2026