Sandbox
The test key sk_test_… allows you to debug integration for free: rate calculation, order reading, and error handling.
What is available with the test key
| Method | sk_test_… | sk_live_… |
|---|---|---|
GET /ping |
yes | yes |
GET /balance |
yes | yes |
POST /rates |
yes | yes |
POST /shipments |
no | yes |
GET /shipments |
yes | yes |
GET /shipments/{id} |
yes | yes |
POST /shipments/{id}/cancel |
yes | yes |
POST /shipments/cancel |
yes | yes |
GET /shipments/{id}/label |
yes | yes |
GET /shipments/{id}/tracking |
yes | yes |
GET /shipments/{id}/pickup_slots |
yes | yes |
POST /shipments/{id}/pickup |
no | yes |
POST /shipments/{id}/pickup/cancel |
yes | yes |
What happens when purchasing
Label purchase and pickup order may charge money, so the test key does not execute them and immediately responds with 403:
JSON (403)
{
"error": {
"code": "test_key_cannot_buy",
"message": "The test key does not buy labels, use a live key"
}
}How to debug integration
- Connect your CRM or script with the test key and make sure rates are received.
- Check error handling: empty fields, incorrect weight, foreign order number.
- Try to buy a label with the test key: a 403 response
test_key_cannot_buyshows the request reached and was processed correctly. - Replace the key with a live one, top up the balance, and buy your first label for a small amount.
How rates differ
The test key calculates rates through test carrier connections, so prices and carrier lists may differ from live ones. Always request rates with a live key before purchasing.