Schedule by time duration
Find the lowest or highest cost time slots for a required duration.
For example, to schedule 5 hours at the lowest cost within a specified time window, Flatpeak returns the optimal periods. To minimise cost, the schedule may be split across multiple time segments.
Authorizations
Authenticate with bearer you obtained from authentication endpoint.
Body
Flatpeak Location ID
"loc_641b90b758fb8e6293716e40"
RFC 3339 timestamp marking the start of the data window, e.g. 2023-06-15T09:00:00Z or 2023-06-15T08:00:00+01:00; use either UTC or time offset—if offsets differ, end_time takes precedence.
"2023-06-15T09:00:00Z"
RFC 3339 timestamp marking the start of the data window, e.g. 2023-06-15T09:00:00Z or 2023-06-15T08:00:00+01:00; use either UTC or time offset—if offsets differ, end_time takes precedence. The maximum period between start_time and end_time for a single request is 3 days.
"2023-06-16T09:00:00Z"
Set to HIGH to get the most expensive rate segment and to LOW to get the cheapest segment.
"HIGH"
Amount of time in minutes you need with the lowest or highest (set segment=HIGH/LOW) tariff over the requested period.
60
Flatpeak Device ID
"dev_63a6087272941ef077a8fd3e"
Sets the tariff direction; possible values are IMPORT, EXPORT, or LOCAL.
"IMPORT"
Response
Response example
This object is a container for tariff slots response.
Flatpeak unique object id.
"std_65e42cdd73e9f861edda35d7"
Represents the object's type.
"schedule_duration"
Flatpeak account ID.
"acc_661677911f2197045e6cf1b1"
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
The timezone at the location, in 'tz database format'. I.e. 'Europe/Berlin'.
"Europe/London"
Currency at the location in ISO 4217.
"EUR"
Direction of tariff. Supported options are IMPORT and EXPORT.
"IMPORT"
Slots response data.
Time when this response was calculated. In UTC.
"2024-05-23T15:14:22Z"
Flatpeak Device ID
"dev_63a6087272941ef077a8fd3e"
Flatpeak Location ID
"loc_65e42ce4d3b813479b252160"

