List and claim LoyaltyLion rewards for a customer, then handle refunds

domain: developers.loyaltylion.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call GET /v2/customers/{merchant_id}/rewards to list rewards available to that customer (results include rewards the customer can't yet afford — compare point_cost to their balance client-side).
  2. Call POST /v2/customers/{merchant_id}/claimed_rewards with a reward_id (plus variant_id or session details for product/cart-scoped rewards) to claim it.
  3. Branch on the response's redeemable/redeemable_type (voucher, gift_card, product, pos_action, fulfilment, etc.) to determine how to fulfil the reward.
  4. Check the claimed_reward.state (approved, declined, pending, expired, void) before treating the claim as successful.
  5. If the underlying order is later cancelled or returned, call POST /v2/customers/{merchant_id}/claimed_rewards/{claimed_reward_id}/refund to void the claim and restore points.

Known gotchas

Related routes

List Open Loyalty rewards and let a member redeem one by spending points
help.openloyalty.io · 5 steps · unrated
Record LoyaltyLion customer activities via the API to trigger rule-based point awards
developers.loyaltylion.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans