Flow per Hour GET
URL: https://api.painelalter.com/api/v2/countPerHour?dateBegin=2020-10-02&dateEnd=2020-10-03&eventType=11
Retrieves specific flow events between two given dates for all stores registered under a user and organizes them in the format 'YYYY-MM-DD' and 'HH'.
Query Parameters
| Parameter | Description |
|---|---|
| dateBegin | Start date. Format YYYY-MM-DD (Inclusive) |
| dateEnd | End date. Format YYYY-MM-DD (Inclusive) |
| eventType | ID of the event type to be retrieved (1 = entry flow) |
Event Type IDs Table
| EventType | Description |
|---|---|
| 1 | Entry Flow |
| 2 | Exit Flow |
| 3 | Checkout Stop |
| 4 | External Flow Left |
| 5 | External Flow Right |
| 6 | Employee Entry |
| 7 | Employee Exit |
| 8 | Vehicle Entry |
| 9 | Vehicle Exit |
| 10 | In-store Flow |
| 11 | Group Entry |
Response Example
json
[
{
"store_identifier": "1",
"day": "2022-12-01",
"hour": 12,
"count": 5
},
{
"store_identifier": "2",
"day": "2022-12-01",
"hour": 12,
"count": 7
},
{
"store_identifier": "2",
"day": "2022-12-01",
"hour": 13,
"count": 2
},
{
"store_identifier": "3",
"day": "2022-12-01",
"hour": 18,
"count": 5
}
]
