Skip to main content
GET
/
v2
/
loyalties
/
earning-rules
List earning rules
curl --request GET \
  --url {protocol}://{host}/v2/loyalties/earning-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
{
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "earnings": [
        {
          "id": "<string>",
          "name": "<string>",
          "rules": {
            "logic": "<string>"
          },
          "tier_rules": {
            "any_of": [
              {
                "tier_structure_id": "<string>",
                "tier_ids": [
                  "<string>"
                ]
              }
            ]
          },
          "effects": [
            {
              "points": {
                "value": 4503599627370495,
                "card_definition_id": "<string>",
                "points_expiration": {
                  "rolling_expiration": {
                    "period": {
                      "value": 2
                    },
                    "rounding": {
                      "value": 6
                    }
                  },
                  "calendar_expiration": {
                    "expiration_dates": [
                      {
                        "day": 16,
                        "month": 6
                      }
                    ]
                  },
                  "sliding_expiration": {
                    "period": {
                      "value": 2
                    },
                    "earning_activity": true,
                    "spending_activity": true,
                    "custom_activity": true,
                    "custom_activity_types": [
                      "<string>"
                    ]
                  }
                }
              },
              "points_proportional": {
                "card_definition_id": "<string>",
                "points_expiration": {
                  "rolling_expiration": {
                    "period": {
                      "value": 2
                    },
                    "rounding": {
                      "value": 6
                    }
                  },
                  "calendar_expiration": {
                    "expiration_dates": [
                      {
                        "day": 16,
                        "month": 6
                      }
                    ]
                  },
                  "sliding_expiration": {
                    "period": {
                      "value": 2
                    },
                    "earning_activity": true,
                    "spending_activity": true,
                    "custom_activity": true,
                    "custom_activity_types": [
                      "<string>"
                    ]
                  }
                },
                "order": {
                  "amount": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5
                  },
                  "total_amount": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5
                  },
                  "metadata": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5,
                    "property": "<string>"
                  }
                },
                "customer": {
                  "metadata": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5,
                    "property": "<string>"
                  }
                },
                "custom_event": {
                  "metadata": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5,
                    "property": "<string>"
                  }
                },
                "order_items": {
                  "amount": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5,
                    "applicable_to": [
                      {
                        "product": {
                          "id": "<string>"
                        },
                        "sku": {
                          "id": "<string>"
                        },
                        "products_collection": {
                          "id": "<string>"
                        }
                      }
                    ]
                  },
                  "subtotal_amount": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5,
                    "applicable_to": [
                      {
                        "product": {
                          "id": "<string>"
                        },
                        "sku": {
                          "id": "<string>"
                        },
                        "products_collection": {
                          "id": "<string>"
                        }
                      }
                    ]
                  },
                  "quantity": {
                    "every": 4503599627370496,
                    "value": 4503599627370495.5,
                    "applicable_to": [
                      {
                        "product": {
                          "id": "<string>"
                        },
                        "sku": {
                          "id": "<string>"
                        },
                        "products_collection": {
                          "id": "<string>"
                        }
                      }
                    ]
                  }
                }
              },
              "benefit": {
                "id": "<string>"
              }
            }
          ]
        }
      ],
      "trigger": {
        "custom_event": {
          "schema_id": "<string>"
        },
        "segment": {
          "id": "<string>"
        }
      },
      "error": {
        "message": "<string>"
      },
      "validity_hours": {
        "daily": [
          {
            "days_of_week": [
              3
            ],
            "start_time": "<string>",
            "end_time": "<string>"
          }
        ]
      },
      "start_date": "2023-11-07T05:31:56Z",
      "end_date": "2023-11-07T05:31:56Z",
      "trigger_limits": {
        "cooldown": {
          "fixed_cooldown": {
            "period": {
              "value": 2
            }
          }
        },
        "frequency": {
          "limits": [
            {
              "type": "TIME_BASED",
              "period": {
                "type": "CURRENT_PERIOD",
                "current_period": {}
              },
              "triggers": {
                "max": 2
              }
            }
          ]
        }
      },
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "object": "<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

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 with multiple values. Prefix with - for descending. Allowed values: -created_at, created_at, name, -name. Defaults to -created_at.

Available options:
-created_at,
created_at,
name,
-name
cursor
string

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

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

Filters as a deep object, e.g. filters[status][conditions][$is]=ACTIVE or filters[name][conditions][$contains]=welcome. See the schema for allowed fields and conditions.

Filters for listing earning rules. Each field carries a required conditions object; condition values may be passed as a single string or as an array. Conditions not allowed for the field type are rejected.

Response

Paginated list of earning rules

Cursor-paginated list of earning rules.

data
object[]

Earning rules 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