Get HDO regions
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/regionsusing RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/regions");
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/{distributor}/regions', 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/{distributor}/regions"
response = requests.get(url)
print(response.text)[
{
"id": "d4f6b8c0-4e5a-4b9c-1d2e-3f4a5b6c7d8e",
"key": "STRED",
"name": "Střed",
"sortIndex": 1
},
{
"id": "e5a7c9d1-5f6b-4c0d-2e3f-4a5b6c7d8e9f",
"key": "ZAPAD",
"name": "Západ",
"sortIndex": 2
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Reference data
Get HDO regions
The regions a distributor splits its HDO commands by. Empty when its commands are not region-specific.
GET
/
api
/
v1
/
reference
/
distributors
/
{distributor}
/
regions
Get HDO regions
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/regionsusing RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/distributors/{distributor}/regions");
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/{distributor}/regions', 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/{distributor}/regions"
response = requests.get(url)
print(response.text)[
{
"id": "d4f6b8c0-4e5a-4b9c-1d2e-3f4a5b6c7d8e",
"key": "STRED",
"name": "Střed",
"sortIndex": 1
},
{
"id": "e5a7c9d1-5f6b-4c0d-2e3f-4a5b6c7d8e9f",
"key": "ZAPAD",
"name": "Západ",
"sortIndex": 2
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Path Parameters
Distributor code — CEZ, PRE or EGD.
Response
OK
Unique identifier of the type (region).
Example:
"d4f6b8c0-4e5a-4b9c-1d2e-3f4a5b6c7d8e"
Stable key of the type (region) — use as distribution.lowTariffRegion.
Example:
"STRED"
Display name of the type (region).
Example:
"Střed"
Optional ordering index for display.
Example:
1
Was this page helpful?