Get statistics

GET /dashboard/statistics

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

Query string (URL)

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

Example request 1

GET /dashboard/statistics?select%5Bshop_amount%5D=1&select%5Border_amount%5D=0&select%5Border_price%5D=1&select%5Bactive_users%5D=1&start=1657086120&end=1657086120&countries%5B0%5D=BE&countries%5B1%5D=BE&countries%5B2%5D=BE HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5

Response

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

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 96

{
    "shop_amount": 16,
    "order_amount": 18,
    "order_price": 16,
    "active_users": 16
}
This is a development version Do not use this version in production
1.10.0 development