Test mode is free to use, we do not apply any limits and it’s not billable regardless of your plan but tariff-rates and cost calculations will return randomized 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:

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