Programs
A program holds the rules, tiers, automations, and rewards catalog for a specific initiative. Many teams run one primary program (like “Cardholder Rewards”), while others run separate programs for different product lines (like “Customer Loyalty,” “Referrals,” and “Seller Incentives”). Whenever you send an event, you send it to a specificprogram_id, and only that program’s rules evaluate it.
Assets
An asset is the currency of your program: points, cashback dollars, hotel nights, or platform credits. Assets live at the organization level and can be linked to one program or shared across several programs so users earn into a single balance. When you create an asset, you choose two settings:- How balances are tracked (
inventory_mode): ChooseSIMPLEif a user’s balance is a single running total. ChooseLOTif individual credits need their own expiration or vesting dates (see Lots and expiration). - How rewards are funded (
issuance_policy): ChooseUNLIMITEDto issue points whenever a rule matches (what most programs use). ChoosePREFUNDEDif you want rewards to draw down from a fixed program wallet budget.
Participants, tiers, and groups
Participants are the users who earn and spend rewards. You identify them with the same ID you already use in your app (theirexternal_id, like user_123). When you send an event for a new user, Scrip creates and enrolls them automatically.
Beyond balances, participants carry state that your rules can read and update:
- Tiers: Ranked levels (like Silver, Gold, and Platinum) with automatic qualification and downgrade rules (see Tiers).
- Counters: Numeric totals like
lifetime_spend,orders_this_month, orreferral_count. - Tags & attributes: Boolean labels (like
viporemployee) and key-value strings (likecountry: "US"orbirthday: "05-14").
Events and automations
Whenever a user does something in your product (completes a purchase, swipes a card, refers a friend, or returns an item), your backend sends an event to Scrip:idempotency_key from your system (such as an order ID) so that if your server retries a request, Scrip won’t process it twice.
Not every event has to come from your backend. Automations let Scrip generate events on a recurring schedule, on a specific date, or when a participant’s state matches a trigger (such as a birthday bonus or a monthly counter reset).
Rules, rule sets, and campaigns
A rule is anif / then policy: when an event matches the condition, Scrip runs the actions. Conditions use CEL (Common Expression Language) to check the event fields and the participant’s current state. In CEL, event.type reads the top-level event_type field, and event.<field> reads keys from event_data:
default rule set so you can add rules right away. As your program grows, you can organize rules into ordered rule sets, run limited-time campaigns with budgets, and preview or roll back multi-rule changes as a versioned rule configuration.
Rewards catalog and redemptions
Once users have earned a balance, Scrip gives you several ways to let them spend it:- Rewards catalog: Create redeemable items with fixed or variable pricing, inventory limits, and availability windows.
- Gift cards: Connect a fulfillment account so Scrip orders digital gift cards and generates claim links when users redeem.
- Custom & amount redemptions: Deduct from a user’s balance for statement credits, checkout discounts, or custom perks fulfilled by your application.
- Transfers: Move balances between participants or groups.
The ledger
Every time a balance changes, Scrip records a debit and a matching credit in the ledger. Instead of overwriting a single number in a database, Scrip derives every balance from these entries, so balances never silently drift and you can trace every point back to the event and rule that created it. Each balance is broken down into three buckets:available: What the user can spend right now. Most programs only ever useavailable.held: Amount set aside by a hold or a pending redemption, plus pending rewards waiting to be confirmed. It is not part ofavailable.deferred: Value that has been credited but is waiting for a future maturity date to vest.
End-to-end walkthrough
Here is how those pieces work together when a user makes a$100 dining purchase:
1
Your app sends the purchase event
user_123 spends $100 at a restaurant. Your backend sends POST /v1/events with external_id: "user_123" and event_type: "purchase" and event_data: {"amount": 100.00, "mcc": "5812"}.2
Scrip loads the participant
Scrip looks up
user_123 (or creates and enrolls them if this is their first event) and loads their current tags, counters, and tier.3
The rules engine matches the dining rule
Scrip checks the program’s active rules. The condition
event.type == 'purchase' && event.mcc == '5812' matches, and ${{ event.amount * 3 }} calculates 300 points.4
The ledger records the credit
Scrip records a journal entry crediting
user_123 by 300 points and debiting the source account by 300 points, then sends a balance.credited webhook.5
The user sees and spends their balance
Your app calls
GET /v1/participants/ext:user_123/balances to display 300 available points, ready to redeem.Next steps
Which endpoints you need
See the two API calls you need to launch and what the rest of the API is for.
Quickstart
Run this flow end to end with real API calls.
Data model
Explore the full resource and field reference.