POST /v1/docs/filter?headers={headers}

Filter warehouse documents on server


Parameters

None.


Request

application/json
TS-Apikey: api_key
{
    "data":{
        "id_warehouses": [1],
        "level": -1,
        "doc_direction": "",
        "date_from": "2018-01-20",
        "date_to": "2019-01-20"
    }

Response

application/json
HTTP 200
{
    "list":[
        {
            "id_warehouse":5,
            "date":"",
            "direction":"I",
            "doc_number":1805000001,
            "id_customer":0,
            "batch_number":46,
            "ufid":"I/2018/5/1",
            "doc_created_date":"2018-11-22",
            "wh_doc_items":[
                {
                    "amount_base_unit":1,
                    "date_exp":"",
                    "direction":"I",
                    "doc_created_date":"2018-11-22",
                    "doc_number":1805000001,
                    "item_number":1,
                    "lot":"",
                    "lot_level":0,
                    "name":"pivo Zlaty Bazant 6 pack",
                    "product_code":"pivo",
                    "timestamp_from_client":"2018-11-22T09:38:38.727+0100",
                    "user_visible_item_number":26027
                }
            ]
        }
    ]
}