Test (sandbox) mode
Test (aka sandbox) 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.
When to use test mode
We recommend you use test mode during initial integration, development, and testing.
You may also find it helpful to switch to Test mode after launching FlatPeak to validate your implementation, especially when dealing with many objects that might be billable in Live mode.
Switching between test and live modes
Both modes use the same API endpoints. The required mode is automatically determined using the 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