held part of their balance until one of your events confirms it, such as a card settlement, a delivery, an installation, or a loan closing.
Each rule decides when its own rewards become spendable, so one program can pay some rewards right away, hold others for a confirming event, and release others on a date. For rewards that wait only for a calendar date or duration, see Vesting. For manual support adjustments, holds, and releases, see Balance operations.
Choose when rewards become spendable
Pending rewards need a
LOT-mode asset, so that reference_id can link the pending reward to the event that confirms it.Add pending rewards
Send an event when the participant earns the reward. Include your own ID for whatever the reward is waiting on. This example uses an order ID:HELD and labels them with the order ID:
held balance now includes 8,400 points that cannot be spent.
Use a
reference_id that is unique to one order. Pending credits that share a reference for the same participant are confirmed and cancelled together.
On a PREFUNDED asset, which pays rewards out of the program wallet, the value leaves the wallet when the pending reward is added. Cancelling the pending reward returns it.
Confirm pending rewards
When the awaited event arrives, a second rule makes the rewards spendable. Two actions can do this. Use one of them for each reference. After aRELEASE, a CREDIT with the same reference_id finds no pending rewards to confirm and pays its full amount again.
Release them unchanged
RELEASE with the reference_id and no amount moves every pending reward for that reference to available:
order_id. It does not need to repeat the amount.
Confirm a final amount
ACREDIT with the same reference_id and no bucket confirms the pending rewards at the amount you send. This rule reads the amount from a final_amount field in the order_installed event:
Leave
bucket unset on this credit. With "bucket": "HELD" it adds more pending rewards instead of confirming them.
Give each event a stable idempotency_key, such as order-1001-installed. A confirming CREDIT sent twice under different keys pays twice.
Settlement journal entry
When a confirmingCREDIT finds pending rewards, it creates one CREDIT journal entry with that reference_id and up to three postings:
HELD posting removes all pending rewards for the reference, even when the confirmed amount is smaller. The destination posting (AVAILABLE or DEFERRED) adds the confirmed amount. The third posting appears only when the two amounts differ: on an under-settlement, the difference returns to the program wallet or SYSTEM_ISSUANCE; on an over-settlement (such as an added tip), the extra comes from there.
In a statement with bucket=HELD, the confirmation appears as a negative CREDIT row with the same reference_id as the pending credit.
Key settlement rules:
- One reference per order or card transaction. When incremental credits share a
reference_id, the confirmation compares against their total. Once a reference settles, laterHELDcredits with thatreference_idare skipped, while a second confirmingCREDITwith a newidempotency_keycredits its full amount. - Expired pending rewards are excluded. Pending rewards that expired before confirmation are skipped.
- Confirmed credits set their own dates. A confirming
CREDITuses its ownexpires_in/expires_atandmatures_in/matures_at; the pending credit’s expiration does not carry over. A lot settled in full keeps itsidandcreated_at. See Lot-aware operations.
Cancel pending rewards
When an order or card authorization is cancelled before it is confirmed,VOID_PENDING removes the pending rewards. The value returns to where it came from: the program wallet on a PREFUNDED asset, or SYSTEM_ISSUANCE on an UNLIMITED one (see Issuance policy).
amount to cancel part of the pending rewards (for example, when one item on an order is returned or an issuer processor reverses part of an open authorization). amount is in reward units, not the order’s currency: calculate it in your backend as the rewards for the earlier authorized amount minus the rewards for the remaining amount, and pass it on the event. For example, on a 2x card where a USD 100.00 authorization added 200 pending points and USD 40.00 is reversed (leaving USD 60.00, or 120 points), pass amount: "80". Scrip voids the newest pending rewards first and leaves the rest in HELD. See VOID_PENDING.
A void changes nothing once the rewards are confirmed. To take back confirmed rewards, see Refunds and clawbacks.
Add a waiting period
Some rewards need the confirming event and then more time. Confirm them with aCREDIT and add one of two fields:
The confirmed rewards move from
held to deferred. When the date arrives, Scrip moves them to available, usually within a few minutes, and sends a balance.matured webhook event. This is vesting that starts when the rewards are confirmed.
Put the waiting period on the confirming credit, not on the pending credit. Pending rewards created with a future matures_in or matures_at are skipped by a confirming CREDIT and stay in HELD, so the confirming CREDIT pays its full amount and counts the purchase twice until those pending rewards are voided or expire.
Wait a set time after the event
This rule confirms an order’s rewards when it is installed and makes them spendable 30 days later:Wait until a date from the event
When your backend knows the date, send it in the confirming event. This event confirms the order from Add pending rewards and carries the end of the statement period:matures_at:
matures_at takes an RFC 3339 timestamp. If the date has already passed when Scrip processes the event, the rewards go straight to available.
Leave out the pending credit
When rewards do not need to show before the installation, leave out the pending credit. OneCREDIT with matures_in or matures_at on the installation event is enough.
Set a deadline
Some orders are never confirmed or cancelled. Addexpires_in or expires_at to the pending credit rule from Add pending rewards so those rewards do not stay pending forever:
balance.expired webhook event. Choose a deadline longer than the longest confirmation you expect.
The deadline also affects how you confirm:
Show pending rewards to a participant
Each stage of a reward is a separate field in the balances response, and each change sends a webhook event:held also includes value set aside by a hold or a pending redemption. To list the pending rewards for one order, filter the participant’s lots by its reference:
Card authorizations and settlements
Card programs use pending rewards when they want cardholders to see rewards as soon as they tap their card (at authorization) and reconcile to the final amount when the merchant settles (accounting for tips, partial captures, or currency conversion). Many card programs skip authorizations and credit only at settlement, as in Cashback card. Forward your issuer processor’s authorization, settlement, and cancellation webhooks as events using the authorization ID asreference_id:
- Authorization: Credit into
HELDwithreference_id: "${{ event.authorization_id }}"and anexpires_in(such as"30d") longer than merchants take to settle. - Settlement: Confirm with a
CREDITusingreference_id: "${{ event.authorization_id }}"andamount: "${{ event.settlement_amount }}"(optionally withmatures_atfor statement-cycle vesting). UseRELEASEinstead only when the settled amount never differs from authorization. - Cancellation or partial reversal: Void with
VOID_PENDINGusingreference_id: "${{ event.authorization_id }}"(addingamountfor a partial reversal).
AVAILABLE points with HOLD and a reference_id, finish it with RELEASE. Sending a confirming CREDIT against value held by HOLD fails with error_code reference_provenance_conflict.
Out-of-order and repeated events
Upstream webhooks do not always arrive in order, and one authorization or order can be reversed or settled more than once.reference_id links a confirmation to its pending credit; it does not deduplicate retries. Build each event’s idempotency_key from your upstream event ID.
Change pending rewards by hand
Rules add pending rewards. For a support case, you can release or cancel them yourself: send aRELEASE or VOID_PENDING balance operation with the order’s reference_id.
Set expiration and vesting
Give rewards a date to become spendable or to expire.
Manual balance operations
Adjust, hold, release, forfeit, or void balances through the API.
Test the rules
Run both events through a simulation before going live.