Loyalty API: Walkthrough 1

Loyalty API Example Walkthrough 1

In this walkthrough, you use the Orders API to create orders and the Loyalty API to manage loyalty accounts and redeem loyalty points.

You start by configuring a loyalty program in the Seller Dashboard with the following settings:

  • An "amount spent" accrual rule: Earn one point for each dollar spent.

  • A "discount on entire sale" reward tier: Redeem 10 points for 10% off the entire sale.

After the program is set up, you explore Loyalty API features such as creating a loyalty account for a buyer, adding points to the buyer's account, and redeeming points for a discount on the sale.

Note

The walkthrough leverages the integration between the Loyalty API and the Orders API, which can reduce application development time and complexity. For more information, see Integration with the Orders API.