Conversion GET
URL: https://api.painelalter.com/api/conversion?dateBegin=today&dateEnd=today&eventType=11
Returns traffic and sales data grouped by day and by store.
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": "01",
"uptime": 1,
"localDate": "2024-05-15",
"visitors": 162,
"nbSales": 70,
"totalSales": 9735
},
{
"store": "02",
"uptime": 0.9935,
"localDate": "2024-05-15",
"visitors": 169,
"nbSales": 61,
"totalSales": 7924
},
{
"store": "03",
"uptime": 0.99,
"localDate": "2024-05-15",
"visitors": 176,
"nbSales": 71,
"totalSales": 8782
},
{
"store": "04",
"uptime": 0.9914,
"localDate": "2024-05-15",
"visitors": 194,
"nbSales": 91,
"totalSales": 9903
}
]
