GET /v1/batches/?headers={headers}
List of batches
Parameters
None.
Request
application/json
TS-Apikey: api_key
{}
Response
application/json
HTTP 200
{ "list": [ { "batch_extras": [ { "key": "test", "value": "data" } ], "batch_items": [ { "amount_base_unit": 3.65, "barcode": "155496531", "batch_number": 1, "date_exp": "2018-11-08", "doc_item_number": 1, "doc_number": 1800000001, "id_batch_item": 342, "lot": "456", "name": "Müsli sypané - testovacie", "palette": 1, "product_code": "MUT", "status": 1, "timestamp_client": "2018-06-14T10:25:54.503+0200", "user_visible_batch_item_id": 1, "wplace": "jh675" }, { "amount_base_unit": 3.65, "barcode": "155496531", "batch_number": 1, "date_exp": "2018-11-08", "doc_item_number": 2, "doc_number": 1800000002, "id_batch_item": 343, "lot": "456", "name": "Müsli sypané - ovocné", "palette": 1, "product_code": "MUT", "status": 1, "timestamp_client": "2018-06-14T10:25:54.503+0200", "user_visible_batch_item_id": 2, "wplace": "jh675" } ], "batch_settings": { "app_version": "2.0.0", "batch_number": 1, "date": "2018-01-20", "created_date": "2018-01-20", "direction": "I", "id_warehouse": 1, "name": "davka 1", "truck": 2, "type": "R" } }, { "batch_extras": [ { "key": "edited", "value": "new" } ], "batch_items": [ { "amount_base_unit": 3.65, "barcode": "164397826", "batch_number": 2, "date_exp": "2018-11-28", "doc_item_number": 1, "doc_number": 1800000003, "id_batch_item": 344, "lot": "123", "name": "Müsli sypané - ovocné", "palette": 1, "product_code": "MUT", "status": 1, "timestamp_client": "2018-06-14T10:25:54.503+0200", "user_visible_batch_item_id": 1, "wplace": "jh675" }, { "amount_base_unit": 3.65, "barcode": "155496531", "batch_number": 2, "date_exp": "2018-11-28", "doc_item_number": 2, "doc_number": 1800000003, "id_batch_item": 345, "lot": "456", "name": "Müsli sypané - ovocné", "palette": 1, "product_code": "MUT", "status": 1, "timestamp_client": "2018-06-14T10:25:54.503+0200", "user_visible_batch_item_id": 2, "wplace": "jh675" } ], "batch_settings": { "app_version": "2.0.0", "batch_number": 2, "date": "2018-01-20", "created_date": "2018-01-20", "direction": "I", "id_warehouse": 1, "name": "modified", "truck": 3, "type": "R" }