API Reference
cURL
curl --request GET \ --url https://api.flatpeak.com/tariffs/rates/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "rts_65e42cdd73e9f861edda35d7", "object": "tariff_rate", "live_mode": true, "location_id": "loc_65e42ce4d3b813479b252160", "location_timezone": "Europe/London", "currency_code": "EUR", "direction": "IMPORT", "last_updated": "2022-05-24T14:15:22Z", "next_update": "2022-05-24T23:00:00Z", "request": { "include_tariff": true, "include_carbon": true, "direction": "IMPORT", "start_time": "2022-05-24T14:15:22Z", "end_time": "2022-05-24T16:15:22Z" }, "data": [ { "valid_from": "2022-12-28T01:00:00Z", "valid_to": "2022-12-28T02:30:00Z", "tariff": { "rate": 4.998, "confidence": 1 }, "carbon": { "intensity": 42, "relative": 0.1, "confidence": 0.9 } } ], "time_created": "2022-05-24T15:15:22Z", "account_id": "acc_661677911f2197045e6cf1b1" }
Returns raw tariff rates in time series format, by Location ID.
Show child attributes