GET /company/companies/@id/lists/production
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Company ID |
Pass the following properties via application/json or form encoding in the body of the request.
A dictionary with fields
Field | Type | Description |
---|---|---|
shop_ids | [Int] | Array of Int |
start_date | Date | Date in YYYY-MM-DD |
end_date | Date | Date in YYYY-MM-DD |
acquire_methods | [String] | Array of String |
sort_by | String | String enumarion of 'product_name', 'category_name', 'acquire_time_hour', 'product_code', 'plu_code' |
output_format | String | String enumarion of 'html', 'excel' |
order_number_start | Int | Optional. An integer value |
order_number_end | Int | Optional. An integer value |
plu_code_start | String | Optional. A String value |
plu_code_end | String | Optional. A String value |
only_orders_with_warranty | Bool | Optional. A boolean value |
group_by_shop | Bool | Optional. A boolean value |
group_by_acquire_date | Bool | Optional. A boolean value |
new_page_per_category | Bool | Optional. Only when sort_by is "category_name" |
category_ids | [Int] | Optional. Only allow these catergory ids |
GET /company/companies/16/lists/production HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 586
{
"shop_ids": [
13,
18,
18
],
"start_date": "2019-01-31",
"end_date": "2019-01-31",
"acquire_methods": [
"takeout",
"delivery",
"latch"
],
"sort_by": "product_name",
"output_format": "html",
"order_number_start": 18,
"order_number_end": 17,
"plu_code_start": "...",
"plu_code_end": "...",
"only_orders_with_warranty": true,
"group_by_shop": true,
"group_by_acquire_date": true,
"new_page_per_category": false,
"category_ids": [
12,
11,
12
]
}
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 5
"..."