List saved devices
curl --request GET \
--url https://api.leap.energy/beta/incentives/devices/saved \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.leap.energy/beta/incentives/devices/saved"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.leap.energy/beta/incentives/devices/saved', 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://api.leap.energy/beta/incentives/devices/saved",
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://api.leap.energy/beta/incentives/devices/saved"
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://api.leap.energy/beta/incentives/devices/saved")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leap.energy/beta/incentives/devices/saved")
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{
"devices": [
{
"device_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"device": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"device_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"device_category": "<string>",
"manufacturer": "<string>",
"model_number": "<string>",
"model_name": "<string>",
"description": "<string>",
"subcategory": "<string>",
"is_active": true,
"date_available": "2023-12-25",
"date_discontinued": "2023-12-25",
"manufacture_year": 123,
"charger_level": "<string>",
"charging_power_kw": 123,
"connector_types": [
"<string>"
],
"seer2_rating": 123,
"eer2_rating": 123,
"hspf2_rating": 123,
"ceer_rating": 123,
"capacity_tons": 123,
"capacity_btu": 123,
"capacity_kw": 123,
"msrp": 123,
"is_energy_star_certified": true,
"is_ul_listed": true,
"is_networked": true,
"is_ocpp_compliant": true,
"battery_capacity_kwh": 123,
"battery_chemistry": "<string>",
"is_mobile_plugin_charger": true
},
"label": "<string>"
}
],
"total": 123
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}Saved devices
List saved devices
List the devices you’ve saved, most recently saved first. Each entry carries the full catalog record plus your own optional label. Saving the products you sell keeps them on hand without a catalog search every time. Results are scoped to your account; page through them with limit and offset.
GET
/
beta
/
incentives
/
devices
/
saved
List saved devices
curl --request GET \
--url https://api.leap.energy/beta/incentives/devices/saved \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.leap.energy/beta/incentives/devices/saved"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.leap.energy/beta/incentives/devices/saved', 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://api.leap.energy/beta/incentives/devices/saved",
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://api.leap.energy/beta/incentives/devices/saved"
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://api.leap.energy/beta/incentives/devices/saved")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.leap.energy/beta/incentives/devices/saved")
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{
"devices": [
{
"device_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"device": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"device_category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"device_category": "<string>",
"manufacturer": "<string>",
"model_number": "<string>",
"model_name": "<string>",
"description": "<string>",
"subcategory": "<string>",
"is_active": true,
"date_available": "2023-12-25",
"date_discontinued": "2023-12-25",
"manufacture_year": 123,
"charger_level": "<string>",
"charging_power_kw": 123,
"connector_types": [
"<string>"
],
"seer2_rating": 123,
"eer2_rating": 123,
"hspf2_rating": 123,
"ceer_rating": 123,
"capacity_tons": 123,
"capacity_btu": 123,
"capacity_kw": 123,
"msrp": 123,
"is_energy_star_certified": true,
"is_ul_listed": true,
"is_networked": true,
"is_ocpp_compliant": true,
"battery_capacity_kwh": 123,
"battery_chemistry": "<string>",
"is_mobile_plugin_charger": true
},
"label": "<string>"
}
],
"total": 123
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}{
"error": {
"message": "<string>",
"details": [
{
"error_code": "<string>",
"reason": "<string>"
}
]
}
}Authorizations
Your Leap API key as a Bearer token. Send it in the Authorization header: Authorization: Bearer <api-key>.
Query Parameters
Required range:
1 <= x <= 200Required range:
x >= 0Was this page helpful?