Sandbox & Testing
Use apr_test_ key to test your integration. No billing occurs. No real labels are created. No carrier APIs are called.
How sandbox works
- Same base URL:
https://api.packageretriever.com/v1/ - Same endpoints, same response shapes
- Determined entirely by your API key prefix
- Sandbox responses include
"sandbox": truein every response
What differs in sandbox
Magic test values
Use these special values to trigger specific outcomes in sandbox mode:Addresses
ZIP codes
Weights
Tracking
Dashboard sandbox indicator
When your account has active sandbox keys, a yellow banner appears at the top of the dashboard:Sandbox mode active — API calls with test keys return simulated data. No billing occurs.This helps you visually confirm you’re testing, not accidentally operating in production.
Testing webhooks
Sandbox mode delivers real webhook payloads to your configured URL — the only difference is thelabel.tracking_number starts with 9999 and the payload includes "sandbox": true.
Use a tool like webhook.site to inspect payloads during development.
Going live
- Verify your sandbox integration works end-to-end
- Fund your wallet (minimum $5)
- Create a
pr_live_key with the same scopes - Replace the key in your environment variables
- Your first real label is one API call away

