List all tariffs
curl --request GET \
--url https://energy-api.flatpeak.com/tariffs \
--header 'Authorization: Bearer <token>'import requests
url = "https://energy-api.flatpeak.com/tariffs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://energy-api.flatpeak.com/tariffs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://energy-api.flatpeak.com/tariffs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://energy-api.flatpeak.com/tariffs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://energy-api.flatpeak.com/tariffs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://energy-api.flatpeak.com/tariffs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"url": "/users",
"next_cursor": "djF8ZXZ0fGE5ZjN8NjYxNjc3ODdjMTY1MmIzZmJlYmE1ZjAx",
"data": [
{
"id": "trf_66ba584eb6923d7c3b942ef6",
"object": "tariff",
"live_mode": true,
"fallback": false,
"location_id": "loc_641b90b758fb8e6293716e40",
"connection_type": "MANUAL",
"connection_status": "CONNECTED",
"tariff_type": "COMMODITY",
"direction": "IMPORT",
"display_name": "Agile Octopus v3 2024",
"timezone": "Europe/London",
"contract_start_date": "2026-01-24T00:00:00Z",
"contract_end_date": "2026-01-24T00:00:00Z",
"supplier": {
"id": "sup_63a6087272921ef075a8fd3e",
"display_name": "Octopus Energy",
"logo_url": "https://s.flatpeak.com/83b06a60e38c2.png"
},
"schedule": [
{
"months": [
"All"
],
"dates": [
24
],
"days_and_hours": [
{
"days": [
"All"
],
"hours": [
{
"valid_from": "05:00:00",
"valid_to": "23:30:00",
"rate": {
"vat_included": "YES",
"variables": {
"index": "BELPEX",
"spread": 1.25,
"fees": 2.1,
"unit_scale": 0.01
},
"expression": "(($index + $spread + $fees) * $unit_scale)",
"vat_percentage": 0.12
}
}
]
}
]
}
],
"time_created": "2026-05-05T05:37:27Z",
"account_id": "acc_661677911f2197045e6cf1b1",
"device_id": "dev_63a6087272941ef077a8fd3e",
"meter_records_required": false
}
]
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}Tariffs
List all tariffs
Returns active tariffs, most recent first. Filter by location_id, or by device_id for the tariffs at the device’s current location.
GET
/
tariffs
List all tariffs
curl --request GET \
--url https://energy-api.flatpeak.com/tariffs \
--header 'Authorization: Bearer <token>'import requests
url = "https://energy-api.flatpeak.com/tariffs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://energy-api.flatpeak.com/tariffs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://energy-api.flatpeak.com/tariffs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://energy-api.flatpeak.com/tariffs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://energy-api.flatpeak.com/tariffs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://energy-api.flatpeak.com/tariffs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"url": "/users",
"next_cursor": "djF8ZXZ0fGE5ZjN8NjYxNjc3ODdjMTY1MmIzZmJlYmE1ZjAx",
"data": [
{
"id": "trf_66ba584eb6923d7c3b942ef6",
"object": "tariff",
"live_mode": true,
"fallback": false,
"location_id": "loc_641b90b758fb8e6293716e40",
"connection_type": "MANUAL",
"connection_status": "CONNECTED",
"tariff_type": "COMMODITY",
"direction": "IMPORT",
"display_name": "Agile Octopus v3 2024",
"timezone": "Europe/London",
"contract_start_date": "2026-01-24T00:00:00Z",
"contract_end_date": "2026-01-24T00:00:00Z",
"supplier": {
"id": "sup_63a6087272921ef075a8fd3e",
"display_name": "Octopus Energy",
"logo_url": "https://s.flatpeak.com/83b06a60e38c2.png"
},
"schedule": [
{
"months": [
"All"
],
"dates": [
24
],
"days_and_hours": [
{
"days": [
"All"
],
"hours": [
{
"valid_from": "05:00:00",
"valid_to": "23:30:00",
"rate": {
"vat_included": "YES",
"variables": {
"index": "BELPEX",
"spread": 1.25,
"fees": 2.1,
"unit_scale": 0.01
},
"expression": "(($index + $spread + $fees) * $unit_scale)",
"vat_percentage": 0.12
}
}
]
}
]
}
],
"time_created": "2026-05-05T05:37:27Z",
"account_id": "acc_661677911f2197045e6cf1b1",
"device_id": "dev_63a6087272941ef077a8fd3e",
"meter_records_required": false
}
]
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}Query Parameters
Response
Tariff list response.
Standard envelope for paginated list endpoints.
Was this page helpful?

