Skip to main content
Gift cards let participants spend their balance with a merchant. You choose which cards to offer and what they cost in your program’s asset (in the dashboard or through the API). Scrip adds those managed rewards to your rewards catalog, orders each card when a participant redeems, and returns a claim link. The examples below price points at 100 points per USD 1.00 (rate: "1"), so a USD 25.00 gift card costs 2,500 points. You can use any linked asset and set your own rates.

Set up

To place test orders first, connect a test account in the sandbox; see Test a gift card. Connect a fulfillment account in the Scrip dashboard, complete its setup and funding steps, and choose which cards to add to your program and what they cost in your asset. Two separate balances are involved in every gift-card redemption: the participant spends their asset balance in Scrip, while your fulfillment account pays for the card. Scrip records the asset charge in the ledger; it never holds or transfers the money that pays for the card. Your fulfillment account must be ACTIVE and funded, and the participant must have enough AVAILABLE balance.

List active rewards

Fetch your program’s catalog to show participants what they can redeem:
The response includes custom rewards and gift cards. Each gift card includes its supported values and currencies in fulfillment, plus any available images and descriptions in display. You can build the selection screen from this response without fetching each product separately.
Keep the reward’s id for the redemption request (product IDs are for configuration; reward IDs are for redemption). Follow pagination.next_cursor if the catalog has more pages. When rendering content from display, handle missing fields and sanitize HTML. An active reward can still be unavailable to a particular participant if they have too little balance or have reached a redemption limit; Scrip checks those conditions when they redeem.

Choose a value and show the price

The card’s face value is expressed in currency minor units, such as cents for USD. A USD 25.00 card has a face_value of {"amount_minor": 2500, "currency": "USD"}. For an AMOUNT_BASED gift card, let the participant pick a supported value and currency from fulfillment.currencies. A product can offer discrete denominations, an inclusive range from value_min to value_max, or both. Multiply amount_minor by fulfillment.rate and round up to fulfillment.asset_scale using decimal arithmetic. At rate: "1", 2500 × 1 = 2,500 points. See Pricing and Price fractional assets. For a UNIT_BASED gift card (configured with a fixed face value), show that fixed value and display unit_cost as the asset price.

Redeem

When the participant confirms their choice, submit the reward ID and card value:
Send face_value and omit the custom-reward amount; Scrip calculates the asset charge from the reward’s rate. Each redemption orders one card (omit quantity or send 1). Omit capture, because Scrip holds the points and completes the redemption itself when the order succeeds. Send expected_amount with the price the participant reviewed; if the price changed, Scrip returns 409 reward_price_changed and holds nothing. Use a unique idempotency_key per purchase so retries after a timeout return the existing redemption at its original price. The request waits up to about 30 seconds for the result, returning HTTP 201 (including when still PENDING). A completed response can include the claim link immediately:
For a fixed-value card, face_value verifies the value and currency the participant reviewed; omit face_value and send fulfillment: {} to use the card’s current settings without that check. Show fulfillment.claim_url from the redemption response when present. To retrieve a link after an order finishes, or when the participant returns later:
Send no request body. Each call creates a fresh link and does not replay a stored response:
expires_at appears only when a link expiry is available. Reading a redemption or receiving a webhook event never includes a claim link. See Create a claim link for error handling.

Handle a pending order

Subscribe to redemption.fulfillment_succeeded and redemption.fulfillment_failed webhooks to receive the outcome (or poll GET /v1/redemptions/{redemption_id}). Send the Prefer: respond-async header on the redemption request to return immediately instead of waiting up to 30 seconds. If fulfillment.status is AWAITING_FUNDS, add funds to your fulfillment account in the dashboard. Scrip retries the order automatically and sends funding_source.low once for that fulfillment. Points stay held until the order succeeds or the funding window expires (default 24 hours, or earlier if the redemption deadline arrives first). You cannot complete a gift-card redemption yourself (409 fulfillment_managed). Fail and cancel work only before Scrip places the order, and a delivered card cannot be reversed through Scrip. See Get redemption for fulfillment statuses and failure reasons.

Set redemption limits

You can cap each card’s face value and limit how many cards (and total value) a participant redeems over a rolling window on the program (for example, up to USD 100.00 per card, at most three cards totaling USD 250.00 over 24 hours). Scrip checks these limits before holding any points. See Update a program. To stop new gift-card redemptions for an account, disable it in the dashboard.

Configure via API

You can manage gift-card selection and pricing in the dashboard, or through the API using a reward source. A reward source connects your fulfillment account to a program’s catalog, defines which products to include, and sets their asset prices.

Create a reward source

After connecting and funding your fulfillment account in the dashboard, fetch its id:
Create a reward source linking that account and your asset to the program. With policy: "MANUAL" (the default), the source starts empty and you add products individually:
Browse the fulfillment account’s available products:
Include a product in your catalog using its id as {product_id}:
Scrip creates a managed reward for that product in the program’s catalog using the source’s rate.

Pricing

default_rate is asset units per currency minor unit (such as 1 cent for USD). Send rates as decimal strings. A source applies the same numeric rate across its currencies without currency conversion; to restrict a product to one currency such as USD, use product overrides.

Derive the rate from the asset value

If your asset has value_per_unit set, you can omit default_rate when creating the source and Scrip derives it automatically: Omitting default_rate on an asset without value_per_unit returns 400 invalid_rate.

Include matching products automatically

Use policy: "ALL" to include every product matching your filters, including products added to the account later:
If you omit category_filter, other supported categories (such as prepaid cards and charity products) can also be included.

Set product overrides

Product settings override the source’s policy, rate, currency, or card value for a single product. For example, offer a fixed USD 100.00 card at a promotional 8,000 points (rate: "0.8" instead of "1"):
Setting face_value turns the reward into a fixed-value UNIT_BASED reward (unit_cost: "8000"). Setting currency without face_value keeps it AMOUNT_BASED while restricting fulfillment.currencies to USD. PUT replaces the product’s settings in full.

Price fractional assets

Scrip rounds calculated prices up to the asset’s scale:
For example, with scale: 2 and rate: "0.0001" (1 credit per USD 100.00), a USD 25.00 card costs 0.25 credits and a USD 25.01 card (0.2501) rounds up to 0.26. With scale: 0, both cost 1 credit.

Change prices or remove cards

Updating default_rate changes prices for products without a per-product rate override. Changing an asset’s value_per_unit does not change an existing source’s rate. Price changes apply to future redemptions only. Manage gift-card rewards through their source or product settings; direct edits to managed rewards return 409 auto_managed_item. Excluding a product or archiving its source archives the corresponding rewards while keeping past redemptions readable. A program can have multiple sources (including sources priced in different assets); keep both id and asset_id when rendering your catalog.

Gift-card API reference

Fulfillment accounts, reward sources, and product settings endpoints.

Receive order updates

Handle completed orders, failures, and low account balances.

Track gift-card costs

Review orders by program, status, and currency.