Switch to the sandbox and get a key
- 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.)
- Go to Developers > API keys and create a sandbox key (
sk_test_...). - Configure your local or staging app with the sandbox base URL (
https://api-sandbox.scrip.dev) and yoursk_test_key.
Send an event and check the balance
Follow the Quickstart with your sandbox base URL andsk_test_ key to create a program, send a purchase event, and check the user’s balance:
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 againstlocalhost, use a local tunnel as shown in Develop locally.
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:
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.
- With Sandbox selected in the dashboard, go to Rewards > Add reward > Add gift cards.
- Click Connect Tremendous, enter an email that does not already manage a live Tremendous account, and complete the sandbox setup flow.
- Once the status shows Connected, add a gift card to your sandbox program.
- Redeem the item for your test participant:
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 newexternal_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.