Test (sandbox) mode
Test mode is an isolated environment in your FlatPeak account that enables you to develop and test your integration without affecting your production data.
What is test mode
In test mode, you can use all FlatPeak services and create real objects in the API. Because test data is fully separated you can use test mode to try various scenarios knowing your production data will not be affected.
Randomised data in test mode
Test mode is completely free to use. API calls and objects created in Test mode do not count toward your subscription limits. However Rates and all Cost Calculations endpoints will return randomized data in test mode. This is so it is easier for you to test how your integration functions when tariff data is changing.
When to use test mode
We recommend you use test mode during initial integration development and testing when you need to validate how your systems handle changes to tariff Rates.
You may also find it useful to switch to Test mode after you have launched FlatPeak to validate your implementation, especially when dealing with a large number of objects that might be billable in Live mode.
Switching between test and live modes
The same API endpoints are used across both modes. The required mode is automatically determined through the use of test or live mode API Key.
- All Test mode keys have the prefix sk_test_
- API will return test mode objects with “live_mode” parameter set to
false
.
Test mode API key example:
Live mode API key example:
Test and Live mode API response objects. The test object has "live_mode": false
Was this page helpful?