Skip to main content
The sandbox is a persistent test environment included with every organization. Its programs, participants, balances, API keys, webhook endpoints, and rate limits are completely separate from production, so you can test your integration end to end without touching live data.

Switch to the sandbox and get a key

  1. Open the Scrip dashboard and select Sandbox from the environment menu. (Every member of your organization gets sandbox access automatically with their production role; see Environments for team management details.)
  2. Go to Developers > API keys and create a sandbox key (sk_test_...).
  3. Configure your local or staging app with the sandbox base URL (https://api-sandbox.scrip.dev) and your sk_test_ key.
Switching environments in the dashboard only changes what you see in the UI. Your application always talks to whichever base URL and API key you configure in its environment variables.

Send an event and check the balance

Follow the Quickstart with your sandbox base URL and sk_test_ key to create a program, send a purchase event, and check the user’s balance:
Events process in the background, so wait for the event.completed webhook or poll GET /v1/events/{event_id} before checking the balance. To test rule changes without creating ledger entries at all, you can also run rule simulations.

Check webhook delivery

Register a sandbox webhook endpoint for your test receiver. Scrip delivers to public HTTPS URLs; to test against localhost, use a local tunnel as shown in Develop locally.
Save the secret returned in the 201 response and use it to verify webhook signatures. You can send a signed sample payload immediately to test your signature verification handler before triggering real events:
To test idempotency in your webhook handler, open Developers > Webhooks and click Resend on any delivery (or call POST /v1/webhook-deliveries/{delivery_id}/resend). Scrip resends the payload with a fresh signature and the same webhook-id header so you can verify your receiver deduplicates it.

Test a gift card

In the sandbox, gift card redemptions use a Tremendous test account loaded with $100,000 in test funds, so no real money moves and no real gift cards are issued.
  1. With Sandbox selected in the dashboard, go to Rewards > Add reward > Add gift cards.
  2. Click Connect Tremendous, enter an email that does not already manage a live Tremendous account, and complete the sandbox setup flow.
  3. Once the status shows Connected, add a gift card to your sandbox program.
  4. Redeem the item for your test participant:
Check the redemption’s status in the response and confirm that redemption.fulfillment_succeeded (or redemption.fulfillment_failed) arrives at your sandbox webhook endpoint. See Gift cards for the full fulfillment and claim-link flow.

Going to production

Sandbox data persists until you modify or archive it. To test a fresh scenario, pass a new external_id (such as user_test_2) or create a new sandbox program. There is no one-click copy from Sandbox to Production. When you are ready to launch, switch the dashboard to Production, configure your live program (or apply your rule configuration via the API), and point your production app at https://api.scrip.dev with an sk_live_ key.

Testing & simulations

Validate CEL expressions, simulate draft rules, and inspect event traces.

Environments

Compare Sandbox and Production URLs, headers, and isolation rules.