Guests can browse rewards. Signed-in shoppers can see their points, claim visit rewards, save their birthday and redeem a reward.
Tutorial
Display rewards and a points balance. Display the shop’s rewards and the shopper’s balance. Then let the shopper redeem a reward and see it in their history.
We tested these API flows in Shopify’s Horizon theme. The snippets illustrate how to call the API from your own page. NASP Rewards provides support for the API only. Your team adapts, tests and maintains the theme code.
To add earning activities to the page, follow Show the welcome gift or Add a birthday form.
API reference
The theme calls the API through the shop’s own storefront URL. See Requests and errors for the base path, authentication and response format.
| Reference | What you can do |
|---|---|
| Configuration | Read the shop’s earning rules, reward prices, eligible products and VIP tiers. |
| Customer and birthday | Read a shopper’s points, tier and recent activity. Read or save their birthday. |
| Activity claims | Award points when the shopper opens a visit link. |
| Reward redemption | Spend points, check a receipt, show a discount code or list past rewards. |