Loyalty API Example Walkthrough 2
Similar to Walkthrough 1, this exercise uses Orders API to manage orders. In addition, in this exercise, you define a loyalty program 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.
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.