Skip to main content
A cardholder returns an item or disputes a charge, and the rewards it earned need to come back. Choose the pattern that matches how your program calculates rewards and whether balances can go negative. Whether a refund should also change state, such as decrementing a visit counter, is your program’s policy. Return rules and exact clawbacks change counters and tags only through actions you add to the rule (see Refund handling). Event reversals report the original event’s counter, tag, and tier changes and leave them in place. Each example below assumes a program (8f14e45f-ceea-4e70-9df8-2a7d1b3c9f01) and an asset (a3bb189e-8bf9-4c8b-9be0-6b5d2f4e7a02).

Return rule

A return rule takes back what the refunded amount would have earned as a purchase: a refund event with the same merchant category code (MCC) debits at the same rate. Use it when every award is a rate on the purchase amount, such as 5% on dining, 3% on groceries, and 1% on everything else. Scrip does not link a refund event to the original purchase, and a return rule does not need that link. Create one return rule per earn rate in the order shown (specific to catch-all) so stop_after_match mirrors your earning cascade:
How it works: A $40 partial refund on a dining purchase debits 40 * 0.05 = $2.00. "allow_negative": true allows the debit to succeed even if the participant already spent the cashback (taking their balance negative until future earnings repay it). Because a return rule recalculates from the refund event rather than looking up the original purchase, use the reversal endpoint or exact clawback if your program has budgets, promotions, or state-dependent bonuses where the refund must take back what the original purchase actually earned.

Reverse the original event

Use the reversal endpoint when a refund maps cleanly onto one event: a full refund, or a partial refund where every award scales by the same fraction. It takes back what the event credited, up to what remains in the lots it created, whatever budget or promotion applied; anything spent, expired, or transferred is reported as shortfall rather than forced, so the balance never goes below zero. Find the original event by its idempotency key, then reverse it:
Omit fraction to reverse everything that remains. Cumulative reversals are capped at each original award, so repeated partial refunds cannot over-claw. The API returns 201 Created. Each entry in lines is one original award: here the award credited 54.25, half is 27.13, and the participant still held 20:
state_changes lists the original event’s counter, tag, and tier changes, which the reversal leaves in place. Reversal requires a LOT-mode asset (SIMPLE-mode assets return 422 nothing_reversible). A settlement credit that settled pending rewards is also ineligible: it appears in ineligible_entries, and an event with nothing else to reverse returns 422 nothing_reversible. See Reversing an event for the full contract.

Exact clawback

Use exact clawback when refund policy differs per award, so a uniform reversal fraction is not enough and a return rule would take back the wrong amount. Your backend reads what the original event credited, applies your policy per asset, and sends a refund event with the exact amounts. Find the original event by idempotency key and read its impact:
balance_impact reports the net effect per entity, asset, and bucket. For an event whose rules only credited, the participant’s row is what was earned (including milestone or threshold awards). If the original event mixed credits and debits, derive the earned amount from the positive postings on CREDIT journal entries in journal_entries instead:
Send the refund event with the computed clawback amount:
One rule handles every rate and award, with no cascade to maintain:
The refund event above debits 54.25 from user_123, even when that takes the balance below zero.
Track cumulative clawbacks per original order in your backend and cap them at the recorded credit. A refund event is not linked to the purchase it corrects, so repeated partial refunds can otherwise claw back more than was earned. To have Scrip enforce that cap automatically, use the reversal endpoint.
On LOT assets this DEBIT consumes the oldest available lots first, not specifically the lots the original purchase created: the total corrects exactly, but remaining expiration dates can shift (see Oldest-first spending). The reversal endpoint targets the original award’s lots directly.

Claw back without a negative balance

Some programs must never show a negative balance. The reversal endpoint never overdraws, but it requires a LOT-mode asset and cannot reverse a settlement credit that settled pending rewards. For those cases, cap the debit at what the participant still holds by replacing refund_exact with this rule:
participant.balance.PTS is the participant’s available PTS balance at event start. With 20.00 available, a refund event with "clawback_amount": 54.25 debits 20.00 and leaves the balance at 0 (the remaining 34.25 is not recorded as debt). Keep participant.balance.PTS > 0 in the condition so the rule skips when the balance is already 0.

Reversing an event

Full contract for lot-level reversals, shortfalls, and ineligible entries.

Pending rewards

Hold awards during a return window so you can cancel instead of clawing back.

Common patterns

More copy-paste recipes for earn rates, bonuses, streaks, and tiers.