GET /dashboard/statistics
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Append the querystring with following properties to the URL.
A dictionary with fields
Field | Type | Description |
---|---|---|
select | Dictionary | Specify which statistics you want to receive |
start | Timestamp | Start timestamp |
end | Timestamp | End timestamp |
countries | [Country] | Optional. Filter statistics by country |
GET /dashboard/statistics?select%5Bshop_amount%5D=1&select%5Border_amount%5D=1&select%5Border_price%5D=1&select%5Bactive_users%5D=0&start=1657086024&end=1657086024&countries%5B0%5D=BE&countries%5B1%5D=BE&countries%5B2%5D=BE HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.1
Accept-Language: en-US,en;q=0.5
A dictionary with fields
Field | Type | Description |
---|---|---|
shop_amount | Int | Optional. Return total amount of shops |
order_amount | Int | Optional. Return order amount |
order_price | Int | Optional. Total price of orders in cents |
active_users | Int | Optional. Active users |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 96
{
"shop_amount": 10,
"order_amount": 15,
"order_price": 11,
"active_users": 14
}