Skip to main content

Sandbox & Testing

Use a pr_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": true in 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 the label.tracking_number starts with 9999 and the payload includes "sandbox": true. Use a tool like webhook.site to inspect payloads during development.

Going live

  1. Verify your sandbox integration works end-to-end
  2. Fund your wallet (minimum $5)
  3. Create a pr_live_ key with the same scopes
  4. Replace the key in your environment variables
  5. Your first real label is one API call away