Get list of reports V2
Get a list of reports ordered by created date from a location depending on the page parameters provided.
GET
/v2/reports/authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
Query Parameters
since?string
Start date for date range (first day included). Accepts a date in the format ISO 8601 : YYYY-MM-DD
until?string
End date for date range (last day included). Accepts a date in the format ISO 8601 : YYYY-MM-DD
index?integer
Index of the page query parameter
Default
0Range
0 <= valuesize?integer
Number of record on a page query parameter (capped to 100)
Default
10Range
1 <= value <= 100locationId?string
Location id query parameter
Format
uuidResponse Body
application/json
curl -X GET "https://api-staging.pragma-project.dev/v2/reports/"{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"startedAt": null,
"finalizedAt": null,
"totalSales": 0
}
],
"meta": {
"totalPage": 0,
"totalCount": 0,
"currentPageIndex": 0,
"pageSize": 0,
"hiddenByFilterCount": 0
},
"links": {
"self": "string",
"first": "string",
"last": "string",
"next": "string",
"prev": "string"
},
"nextPageToken": "string"
}