GET /v1/batches/{batch_number}

View batch by ID


Parameters

+ batch_number (number, required) - batch identifier

Request

application/json
TS-Apikey: api_key
{}

Response

application/json
HTTP 200
{
    "item": {
        "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": 1,
            "type": "R"
        }