Get periods
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/periods \
--header 'Authorization: Bearer <token>'using RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/periods");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.partner.cubee.cz/api/v1/reference/periods', 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/periods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
"2024",
"2025",
"12M"
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Reference data
Get periods
The values periodType accepts: fixed calendar years, plus 12M for the rolling last
12 completed months.
GET
/
api
/
v1
/
reference
/
periods
Get periods
curl --request GET \
--url https://api.partner.cubee.cz/api/v1/reference/periods \
--header 'Authorization: Bearer <token>'using RestSharp;
var options = new RestClientOptions("https://api.partner.cubee.cz/api/v1/reference/periods");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.partner.cubee.cz/api/v1/reference/periods', 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/periods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
"2024",
"2025",
"12M"
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Was this page helpful?