| Code | Description |
|---|---|
2XX | Indicates success. |
4XX | Indicates an invalid request. (error type: invalid_request) |
429 | Indicates too many requests. (error type: rate_limit) |
5XX | indicates Flatpeak-related issues (error type: api_error). |
Error object
When an error needs to be returned in an API response, Flatpeak uses a standardised error object across all endpoints:| Property | Description |
|---|---|
object | Indicates API object type, i.e. error. |
live_mode | Indicates if live or test mode API key was used. |
context | Indicates error context. It provides information on which service and method has failed. For example, connect.postal_address_capture or api.location_create. |
type | Indicates error type; possible values are invalid_request - when your request is invalid. And api_error when the Flatpeak service cannot process the request (these are rare). |
code | Connect-related error codes are listed in the Connect section of api reference under the code sample of every page. General API-related error codes are listed in the API error codes table later on this page. Example: country_code_missing. |
message | Error description in the English language. Example: Country code is required. |
connect_token | The Connect token used to make the request resulted in an error. |
time_created | Timestamp when this error occurred. |
Important errors you must support
Your system must handle error codes related to energy price unavailability and cases where your Flatpeak account is disabled.Price unavailability errors
When energy price data is not available, Flatpeak returns a422 error for any endpoint that depends on price data, including retrieve a price, schedule by duration, schedule by price limit, and schedule by amount of energy.
- The
no_tariff_connectedcode indicates that no tariff is connected to the queried location. Note that IMPORT and EXPORT tariffs are treated separately. See Tariff categories, contexts, and energy flow directions. - The
pending_connectcode indicates that Flatpeak Connect is accessing the customer’s tariff for the first time and the connection is pending. See Tariff connection pending. - The
no_price_datacode indicates that Flatpeak was unable to retrieve price data for an extended period and has already emitted thetariff.fetch.failedwebhook. Review the Required webhooks article for more information.
Account disabled error
When your account is out of subscription or is disabled for any other reason, you will receive an error422 when trying to access any API endpoint.
Acount disabled error example
Rate limiting (429) error
Flatpeak enforces rate limits to ensure platform stability. If you exceed the allowed request rate, the API returns a429 error.
Rate limit error example
- Batch requests where possible rather than making many individual calls in quick succession.
- Implement exponential backoff — when you receive a
429response, wait before retrying and progressively increase the delay between subsequent retries.

