---
title: 'Get Loyalty Rule Chains'
description: 'Retrieve configured loyalty rule chains'
openapi: GET /api/loyalty/rule_chains
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.snagsolutions.io/llms.txt). Append `.md` to any page URL for its markdown version.

`GET /api/loyalty/rule_chains` — query parameters: `organizationId`, `websiteId`, `limit`, `startingAfter`

`GET https://admin.snagsolutions.io/api/loyalty/rule_chains`

Retrieve configured loyalty rule chains

## Authentication

- `apiKeyAuth` — apiKey in header: `X-API-KEY`

## Query parameters

- `organizationId` (string, required) — Unique identifier for the organization
- `websiteId` (string, required) — Unique identifier for the website
- `limit` (number) — Number of rule chains to return
- `startingAfter` (string) — Starting after the given rule chain ID

## Response 200

200
  - response (object)
    - `data` (array, required)
      - `items` (object)
        - `id` (string, required) — Unique identifier for the rule chain
        - `name` (string, required) — Name of the rule chain
        - `loyaltyRuleId` (string, required) — Unique identifier for the loyalty rule
        - `operatorType` (string, one of: AND, OR, default: "AND") — Type of the operator. AND if all conditions must be met, OR if any condition can be met.
        - `loyaltyConditions` (array, required)
          - `items` (object)
            - id: … (nested further)
            - type: … (nested further)
            - description: … (nested further)
            - amount: … (nested further)
            - repeatCount: … (nested further)
            - requiredCount: … (nested further)
            - csvUrl: … (nested further)
            - association: … (nested further)
    - `hasNextPage` (boolean, required)

## Response 403

403
  - response (object) — Schema for forbidden response
    - `message` (string, required) — Error message


---

📦 **OpenAPI specs:** Every OpenAPI specification referenced by this documentation is available as a single download — https://docs.snagsolutions.io/api-specs.zip
