Beta Release
This is pre-release documentation for an API in public beta and is subject to change.

Loyalty API Example Walkthrough 2

Similar to Walkthrough 1, this exercise uses the Orders API to manage orders. In addition, you define a loyalty program in this walkthrough that defines an item-based accrual rule and reward tiers. As part of preparing for the walkthrough, you create these items in the seller's catalog. These catalog items then appear in the loyalty UI as you configure the program. These APIs together provide an integrated development experience.

In the walkthrough, you first set up a loyalty program with the following item-based accrual rule and reward tier in the Seller Dashboard:

  • Accrual rule. Configure an item-based accrual rule: "Buyers earn one point for each coffee purchased".

  • Reward tier 1. Discount a specific item: "10 points earn a free coffee".

  • Reward tier 2. Discount a specific item: "15 points earn a free sandwich".

After setting up the program in the Seller Dashboard, you explore the Loyalty API.

Step 1: Set Up a Loyalty Program