Get production list

GET /company/companies/@id/lists/production

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int Company ID

Body

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

Example request 1

GET /company/companies/17/lists/production HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.9.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 586
{
    "shop_ids": [
        14,
        16,
        11
    ],
    "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": 12,
    "order_number_end": 10,
    "plu_code_start": "...",
    "plu_code_end": "...",
    "only_orders_with_warranty": true,
    "group_by_shop": false,
    "group_by_acquire_date": true,
    "new_page_per_category": true,
    "category_ids": [
        15,
        10,
        11
    ]
}

Response

Example response 1

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

"..."
1.9.0 stable