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.

Test mode is free to use, we do not apply any limits, and it’s not billable regardless of your pla,n but these objects should not be used in any production systems.

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:

sk_test_bef6f179e61343b1bf8854658e6dca91

Live mode API key example:

sk_live_65e88ad8b13031c26a39c06c

Test and Live mode API response objects. The test object has "live_mode": false

{
  "id": "rts_65e42cdd73e9f861edda35d7",
  "object": "tariff_rate",
  "live_mode": false,
  "location_id": "loc_65e42ce4d3b813479b252160",
  "data": [ ... ]
}