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
Go to dashboard.crbtrack.com
2
Navigate to API Keys
Click Settings → API 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:- Successful Delivery
- Failed Delivery
- Customs Hold
- Return to Sender
Prefix: Status updates occur every 5 minutes.
SB-SUCCESS-*Simulates a parcel that progresses through all statuses to successful delivery.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
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.com3
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