Skip to main content
GET
/
v2
/
loyalties
/
earning-rules
/
{earningRuleId}
/
activities
Error
A valid request URL is required to generate request examples
{
  "data": [
    {
      "id": "<string>",
      "earning_rule_id": "<string>",
      "data": {},
      "created_at": "2023-11-07T05:31:56Z",
      "group_id": "<string>",
      "source": {
        "user": {
          "id": "<string>"
        },
        "api_key": {
          "name": "<string>",
          "app_id": "<string>",
          "client_app_id": "<string>"
        }
      }
    }
  ],
  "cursor": {
    "next": "<string>",
    "expires_at": "2023-11-07T05:31:56Z"
  },
  "object": "<string>"
}
{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}
{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}
{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}
{
"code": 123,
"key": "<string>",
"message": "<string>",
"details": "<string>",
"request_id": "<string>"
}

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

Earning rule ID.

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

Query Parameters

limit
integer
default:10

Number of items to return. Between 1 and 100, defaults to 10.

Required range: 1 <= x <= 100
order

Sort order. A single value or repeated parameter. Allowed values: created_at, -created_at. Defaults to -created_at.

Available options:
created_at,
-created_at
cursor
string

Pagination cursor returned in cursor.next of a previous response. Must match the pattern ^lcrsaer_[a-f0-9]+$.

Pattern: ^lcrsaer_[a-f0-9]+$
filters
object

Filters as a deep object, e.g. filters[type][conditions][$is]=vl.earning_rule.updated.

Filters for listing earning rule activities.

Response

Paginated list of earning rule activities

Cursor-paginated list of earning rule activities.

data
object[]

Activities on the current page.

cursor
object | null

Pagination cursor. Null when there are no more results.

object
string

Object type marker. Always list.

Allowed value: "list"
Last modified on July 10, 2026