Skip to main content

Overview

The sandbox environment lets you test your integration without:
  • Creating real shipments
  • Incurring shipping costs
  • Affecting production data
All sandbox operations are isolated. Nothing created in sandbox will appear in production.

Sandbox vs Production

Getting a Sandbox Key

1

Login to Dashboard

2

Navigate to API Keys

Click SettingsAPI Keys
3

Generate Sandbox Key

Click Generate Sandbox Key (or create a key and select “Sandbox” environment)

Test Scenarios

The sandbox supports special tracking number prefixes to simulate different scenarios:
Prefix: SB-SUCCESS-*Simulates a parcel that progresses through all statuses to successful delivery.
Status updates occur every 5 minutes.

Example: Testing Different Scenarios

Create a successful delivery test

Create a customs hold test

Webhook Testing

Sandbox webhooks behave the same as production but:
  • Fire immediately (no real carrier delay)
  • Include "environment": "sandbox" in the payload
  • Use your configured sandbox webhook URL

Configure Sandbox Webhooks

In the dashboard, set a separate webhook URL for sandbox:

Sample Sandbox Webhook Payload

Sandbox Limitations

Some features are limited in sandbox mode:

Transitioning to Production

When you’re ready to go live:
1

Generate Production Key

Create a new API key with “Production” environment
2

Update Base URL

Change from sandbox.crbtrack.com to api.crbtrack.com
3

Update Webhook URL

Configure your production webhook endpoint
4

Replace API Key

Update your environment variables with the production key (pk_live_...)
5

Test a Real Order

Create a small test order to verify everything works

Sandbox Data Cleanup

Sandbox data is automatically purged after 30 days. You can also manually clear your sandbox data:
This permanently deletes all your sandbox orders, manifests, and tracking data. This action cannot be undone.