Nakupy|Statistics
Create a new request for aggregated shop statistics report.
Create a new request for aggregated shop statistics report.
Statistics are aggregated across the entire premise.
Can be listed as shopAggregated report type.
Report can be downloaded using GET method for all reports on /sklik/reports endpoint.
post/nakupy/statistics/aggregated
Request
- Base URL: https://api.sklik.cz/v1
- URL: https://api.sklik.cz/v1/nakupy/statistics/aggregated
- Auth: OAuth 2 (authorization code, authorization URL https://www.sklik.cz/oauth/api, token URL /user/token; client credentials, token URL /user/token)
Query parameters
premiseIdinteger required
ID of the shop on whose behalf the request is made.
Request body
Example request
{
"from": "2023-03-09T11:20:17Z",
"to": "2023-03-21T17:42:31Z",
"splitStats": [
"deviceType",
"webType",
"productType",
"conversionId"
],
"conversionIds": [
100113933,
100115363
]
}Response
Successful Response
Example response
{
"id": 123456,
"meta": {
"from": "2023-03-09T11:20:17Z",
"to": "2023-03-21T17:42:31Z",
"splitStats": [
"deviceType",
"webType",
"productType",
"conversionId"
],
"conversionIds": [
100113933,
100115363
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.