Skip to main content
This is the fundamental Rigaly integration: award points when customers buy, honor rewards when they redeem.

The flow

  1. Customer completes a purchase in your system → you call POST /points/issue.
  2. Customer redeems a reward in the Rigaly app → the app gives them a short redemption code.
  3. Customer shows the code at your checkout → you validate it, apply the reward, then complete it.

Step 1 — Issue points on every order

Call this from your order-completion handler (checkout success, payment webhook, POS sale). 100 points per USD.

Step 2 — Validate a redemption code

When the customer shows a code (e.g. AB12CD34), validate it before giving them anything. Validation is read-only — nothing is consumed yet.

Step 3 — Complete the redemption

After applying the reward (discount, free item…), consume the code. This deducts the customer’s points and runs all eligibility checks (expiry, cooldowns, balance) atomically — if anything fails you get a 400 and nothing is consumed.

Use your own customer IDs

If your platform already has customer IDs (Shopify, your ERP…), attach them once and use them as identifier everywhere instead of emails: