Introduction
Reports
records
- cursor-paginated API recordstimeseries
- formatted in a way that is easily usable to build chartsReports
folder.Rate limiting (not active yet)
Metadata
endpoint always adds 1
token in totalEndpoints
Metadata
- it returns basic information about report including fields that you can filter by, available aggregates and format of returned dataField metadata
- it allows to fetch more information about given field (for example it can be used to build dynamic filter selector with available values in given timeframes)Query
- it is the main endpoint which queries the dataAPI Permits
Reporting:Api:Query
permit which grants general access to Reporting API
Customer context
X-Customer
header specification for more details.Timezones
timeseries
data. In order to support cross-customer queries with correct comparisons and bucketing of data, we have decided to keep timeseries events in customer's timezone.timeseries
report works with timezones, we need to separate two cases:Customers having same timezone
from
and to
request parameters are translated to the timezone.{
"interval": "1d",
"range_timezone": "Europe/Oslo",
"time_buckets": [
"2024-04-30T00:00:00.000+02:00",
"2024-05-01T00:00:00.000+02:00",
],
"series": [
{ "label": {}, "values": [20, 10] }
],
"result_type": "timeseries"
}
range_timezone
parameter with computed timezonetime_buckets
are returned as ISO8601 time as an offset from UTCCustomers having different timezones
from
and to
request parameters are assumed to be UTC time.{
"interval": "1d",
"range_timezone": "local",
"time_buckets": [
"2024-04-30T00:00:00.000",
"2024-05-01T00:00:00.000",
],
"series": [
{ "timezone": "Europe/Oslo", "label": { "
loyalty_club_id": 10 }, "values": [20, 10] },
{ "timezone": "America/Denver", "label": { "loyalty_club_id": 11 }, "values": [10, 20] }
],
"result_type": "timeseries"
}
range_timezone
parameter with local
valuetime_buckets
are returned as UTC timeseries
include additional parameter - timezone
10
has value 20
on 2024-04-30T00:00:00
- 2024-04-30T23:59:00 CEST
time.Loyalty club with ID
11
has value 10
on 2024-04-30T00:00:00
- 2024-04-30T23:59:00 MDT
time.Data lag/freshness
Modified at 2024-08-22 11:41:30