AVAILABLE to HELD, where the participant cannot spend them elsewhere. You then complete, fail, or cancel the redemption. Completing it spends the held points; failing or cancelling it releases them back to AVAILABLE.
To show what a participant’s balance is worth in money before redeeming, set value_per_unit on the asset so GET /v1/participants/{participant_id}/balances returns available_value. To pass a price in money instead of points, send face_value (with expected_amount to catch price changes); see Redeem a price in money.
Hold or complete at once
Passcapture on the redemption request to choose whether points are spent right away or held first:
Hold points for a redemption
Setcapture to false on an amount redemption:
POST /v1/participants/{participant_id}/redemptions/items takes the same capture, expires_at, and ttl_seconds.
The API returns 201 Created with a PENDING redemption. reservation_id identifies the hold, and expires_at is the deadline:
journal_entry_id is the HOLD journal entry that held the amount. These fields appear later:
Use the returned deadline
Schedule your fulfillment against theexpires_at on the redemption. Scrip sets it from these sources and uses the earliest:
If neither your request nor the program sets a deadline, it is 90 days, or sooner if the held points expire first. The resulting deadline must be at least 60 seconds away, or the request returns
422 fulfillment_window_too_short. A deadline more than 365 days away returns 422 fulfillment_window_too_long.
You can complete only before the deadline. After it, the redemption can still show PENDING for a short time:
Resolve the redemption
You resolve pending amount redemptions and custom-reward redemptions. Scrip resolves gift-card redemptions itself; see Gift cards. Send anidempotency_key (in the body or as an Idempotency-Key header) on complete, fail, and cancel. Each returns 200 with the updated redemption.
Complete
Complete after your delivery process or external vendor confirms the order:HELD to the program’s redemption target (the account configured to receive spent points, SYSTEM_REDEMPTION by default) in one REDEMPTION journal entry, and the redemption becomes COMPLETED. You cannot complete part of the amount. The response is the full redemption. This excerpt shows the new status and the completion fields:
Record an external order
When your server places an order with an external vendor (such as booking a flight or buying merchandise), save the vendor’s order ID alongside the Scripredemption.id in your database so you can recover if your server restarts. Then report the order when you complete the redemption:
Both the completion response and the
redemption.completed webhook event carry provider, order_id, and cost. Report the order on the call that completes the redemption; a later call cannot add one.
If the order confirms after the deadline
Ifexpires_at has already passed, /complete returns 409 reservation_expired and spends nothing, even if the external vendor confirmed the order. Because only /complete records provider, order_id, and cost, hold the points on a new redemption and complete it right away:
Scrip releases expired holds within about a minute. If the new hold returns
422 insufficient_funds before that release finishes, wait briefly and retry. If the participant already spent those points elsewhere, your application absorbs or cancels the external order.
Pay with points and cash
To let a participant pay part of an order in points and the rest on a card, redeem only the portion points cover (for example,face_value: {"amount_minor": 5000, "currency": "USD"} on a USD 128.08 order), charge the remaining balance yourself, and place the full order with your vendor. If the order fails, call /fail and refund the card yourself. Scrip records only the points portion.
If you charge the card with Stripe, see Pay with points at checkout with Stripe.
Fail
Fail the redemption when you tried to fulfill it and could not:Cancel
Cancel the redemption when your application or the participant stops fulfillment before delivery:- Release the held points from
HELDtoAVAILABLEin oneRELEASEjournal entry. The redemption showsrelease_journal_entry_idandreleased_amount. - Store your
reasonasfailure_reason. - Set
resolved_at.
Choose hold or complete for a catalog reward
A catalog redemption can hold the points withoutcapture. Scrip uses the first row that applies:
For a gift card,
capture: true returns 422 fulfillment_capture_conflict. Amount redemptions follow capture alone.
Set the mode on a reward
Setfulfillment_mode on a catalog reward to ASYNC when you deliver it yourself and want its redemptions to hold the points. Send it when you create the reward, or change it with PATCH /v1/programs/{program_id}/rewards/{reward_id}. Reads return it.
Leaving the field out of a
PATCH keeps the current setting. A reward that a reward source manages keeps fulfillment_mode as null, and PATCH returns 409 auto_managed_item.
State transitions
Only
COMPLETED and PARTIALLY_REVERSED redemptions can be reversed. See Redemptions.
A redemption resolves once. Repeating the same action returns 200 with the stored redemption. Sending a conflicting action returns 409 redemption_already_resolved. Two examples:
- Cancelling a redemption that already timed out to
FAILED. - Completing a
COMPLETEDredemption with aprovider,order_id, orcostthat differs from the one it recorded.
Catalog inventory
A pendingUNIT_BASED catalog redemption keeps its units counted against the reward’s inventory until it resolves. Fail, cancel, and timeout give the units back, so an OUT_OF_STOCK reward can return to ACTIVE. See Inventory management.
Ledger entries
Each transition creates one journal entry. Itsaction_type names the step.
On the redemption,
journal_entry_id is the HOLD entry, capture_journal_entry_id is the REDEMPTION entry, and release_journal_entry_id is the RELEASE entry. released_amount is the amount returned to AVAILABLE.
To list every journal entry for a LOT redemption, read reference_id from its HOLD entry (GET /v1/journal-entries/{journal_entry_id}) and filter GET /v1/journal-entries?reference_id= with that value.
Expiration and held lots
A pending redemption’s points have a deadline, and aRELEASE or FORFEIT balance operation that would take them returns 409 reservation_conflict. Only completing, cancelling or failing the redemption, or its deadline passing, ends the hold.
On a LOT asset, held lots keep their original expiration, maturity and issuing program. See Lots and expiration.
Usually within a minute of expires_at, Scrip fails an overdue PENDING redemption with failure_reason: "expired" and releases the points still held. Fail and cancel release the same way.
How a hold works depends on the asset’s inventory mode:
Gift cards
Scrip fulfills gift cards. It holds the participant’s points, orders the card, and completes the redemption when the order succeeds. You do not complete a gift-card redemption. Complete returns409 fulfillment_managed. Fail and cancel work only before the order is placed, and after that return 409 fulfillment_in_progress. See Gift cards for the purchase flow and Get redemption for order statuses and cancellation rules.
Webhook events
To mirror balances in your own database, apply the
balance.* movement events. See Movement and lifecycle webhook events and Event payloads.
Retries
Complete, fail, and cancel store idempotency keys for 24 hours:Time windows
The redemption lists filtercreated_after and created_before by creation time. For a pending redemption, that is when the points were held. This applies to the participant list and to GET /v1/programs/{program_id}/rewards/{reward_id}/redemptions, which lists one reward’s redemptions across participants.
Reporting recognizes redeemed value when the redemption completes, at captured_at. A redemption created in June and completed in July appears in a June-filtered list and in July reporting.
Reverse or look up a redemption
Return points after a refund and list redemptions.
Track redemptions with webhooks
Events for each hold, completion and release.
Check when held points expire
Held lots keep their original expiration.