Get distributors
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/distributorsusing RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/distributors");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET'};
fetch('https://api.partner.cubee.cz/api/v1/reference/distributors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.partner.cubee.cz/api/v1/reference/distributors"
response = requests.get(url)
print(response.text)[
{
"id": "a1c3e5f7-1b2d-4e6f-8a9b-0c1d2e3f4a5b",
"name": "ČEZ Distribuce",
"key": "CEZ",
"logoUrl": "https://…/cez.svg"
},
{
"id": "b2d4f6a8-2c3e-4f7a-9b0c-1d2e3f4a5b6c",
"name": "PRE distribuce",
"key": "PRE",
"logoUrl": "https://…/pre.svg"
},
{
"id": "c3e5a7b9-3d4f-4a8b-0c1d-2e3f4a5b6c7d",
"name": "EG.D",
"key": "EGD",
"logoUrl": "https://…/egd.svg"
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Reference data
Get distributors
The distributors the calculator supports. Use a returned key as distribution.distributor.
GET
/
api
/
v1
/
reference
/
distributors
Get distributors
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/distributorsusing RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/distributors");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET'};
fetch('https://api.partner.cubee.cz/api/v1/reference/distributors', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.partner.cubee.cz/api/v1/reference/distributors"
response = requests.get(url)
print(response.text)[
{
"id": "a1c3e5f7-1b2d-4e6f-8a9b-0c1d2e3f4a5b",
"name": "ČEZ Distribuce",
"key": "CEZ",
"logoUrl": "https://…/cez.svg"
},
{
"id": "b2d4f6a8-2c3e-4f7a-9b0c-1d2e3f4a5b6c",
"name": "PRE distribuce",
"key": "PRE",
"logoUrl": "https://…/pre.svg"
},
{
"id": "c3e5a7b9-3d4f-4a8b-0c1d-2e3f4a5b6c7d",
"name": "EG.D",
"key": "EGD",
"logoUrl": "https://…/egd.svg"
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Response
OK
Unique identifier of the distributor.
Example:
"a1c3e5f7-1b2d-4e6f-8a9b-0c1d2e3f4a5b"
Display name of the distributor (e.g. "ČEZ Distribuce").
Example:
"ČEZ Distribuce"
Stable code of the distributor — one of CEZ, PRE, EGD. Use as distribution.distributor.
Example:
"CEZ"
URL of the distributor's logo, if available.
Example:
"https://…/cez.svg"
Was this page helpful?