Skip to main content
This guide shows you how to list loyalty rule sections (rule groups) and the rules under each section in your frontend. For all parameters, filters, and full response schemas, see the API references: -Get Loyalty Rule Groups-Get Loyalty Rules

Prerequisites

  • You can make authenticated requests with the X-API-KEY header.
  • You have your base URL (e.g., $BASE_URL).

How it works (at a glance)

  • Fetch sections via Rule Groups.
  • For each section, fetch its rules.
  • Use cursor-style pagination with startingAfter and stop when hasNextPage is false.
1

Fetch rule groups (sections)

See full request/response details: Get Loyalty Rule Groups.
2

Fetch rules for a given section

See full request/response details: Get Loyalty Rules.
3

Render in your frontend with minimal fetchers

You can see rule sections rendered and, on expanding a section, the rules under it. Additional pages load until hasNextPage is false.

Next Steps

Now that you can list loyalty rules and sections, you’re ready to:

Create Your First Rule

Learn how to create and configure loyalty rules for your program.

Rule Configuration

Understand how to configure rule parameters and settings.