GET /dashboard/puratos/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 |
---|---|---|
start_date | Date | Date in YYYY-MM-DD |
end_date | Date | Date in YYYY-MM-DD |
GET /dashboard/puratos/statistics?start_date=2019-01-31&end_date=2019-01-31 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 8155
{
"products": [
{
"name": "...",
"orders": [
{
"shop": {
"id": 13,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 19,
"gram": 12,
"product_name": "...",
"matched_on": "...",
"multi": true,
"price_unit": 15,
"price_unit_with_discount": 12,
"price_total": 13,
"price_total_with_discount": 14,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 13
},
{
"shop": {
"id": 15,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 16,
"gram": 11,
"product_name": "...",
"matched_on": "...",
"multi": false,
"price_unit": 15,
"price_unit_with_discount": 11,
"price_total": 18,
"price_total_with_discount": 18,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 14
},
{
"shop": {
"id": 17,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 18,
"gram": 13,
"product_name": "...",
"matched_on": "...",
"multi": true,
"price_unit": 12,
"price_unit_with_discount": 16,
"price_total": 15,
"price_total_with_discount": 18,
"currency": "...",
"country": "...",
"isop": true,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 10
}
],
"totals": {
"amount": 16,
"gram": 14,
"price_unit_average": 16,
"price_total": 19
}
},
{
"name": "...",
"orders": [
{
"shop": {
"id": 15,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 16,
"gram": 14,
"product_name": "...",
"matched_on": "...",
"multi": true,
"price_unit": 11,
"price_unit_with_discount": 10,
"price_total": 17,
"price_total_with_discount": 11,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 13
},
{
"shop": {
"id": 14,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 11,
"gram": 10,
"product_name": "...",
"matched_on": "...",
"multi": false,
"price_unit": 14,
"price_unit_with_discount": 10,
"price_total": 15,
"price_total_with_discount": 19,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 12
},
{
"shop": {
"id": 19,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 12,
"gram": 14,
"product_name": "...",
"matched_on": "...",
"multi": true,
"price_unit": 14,
"price_unit_with_discount": 18,
"price_total": 13,
"price_total_with_discount": 19,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 17
}
],
"totals": {
"amount": 12,
"gram": 14,
"price_unit_average": 16,
"price_total": 11
}
},
{
"name": "...",
"orders": [
{
"shop": {
"id": 16,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 17,
"gram": 14,
"product_name": "...",
"matched_on": "...",
"multi": false,
"price_unit": 11,
"price_unit_with_discount": 13,
"price_total": 11,
"price_total_with_discount": 15,
"currency": "...",
"country": "...",
"isop": true,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 14
},
{
"shop": {
"id": 18,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 17,
"gram": 10,
"product_name": "...",
"matched_on": "...",
"multi": true,
"price_unit": 13,
"price_unit_with_discount": 11,
"price_total": 18,
"price_total_with_discount": 14,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 19
},
{
"shop": {
"id": 17,
"name": "..."
},
"order_date": "2019-01-31",
"amount": 10,
"gram": 15,
"product_name": "...",
"matched_on": "...",
"multi": false,
"price_unit": 17,
"price_unit_with_discount": 10,
"price_total": 14,
"price_total_with_discount": 14,
"currency": "...",
"country": "...",
"isop": false,
"payment_method": "...",
"acquire_method": "...",
"customer_id": 14
}
],
"totals": {
"amount": 16,
"gram": 17,
"price_unit_average": 13,
"price_total": 15
}
}
]
}