GET /v1/stocktakings/?date={date}&id_warehouse={id_warehouse}&headers={headers}

View stocktaking by ID


Parameters

+ date (string, required) - date of stocktaking (in format YYYY-MM-DD)
+ id_warehouse (number, required) - identifier of stocktaking's warehouse

Request

application/json
TS-Apikey: api_key
{}

Response

application/json
HTTP 200
{
    "item":{
        "id_warehouse":5,
        "date":"2018-11-29",
        "status":0,
        "in_doc":null,
        "in_ufid":"",
        "out_doc":1805000025,
        "out_ufid":"O/2018/5/25",
        "stocktaking_items":[
            {
                "id_warehouse":5,
                "date":"2018-11-29",
                "product_code":"baldovskacitron",
                "lot":"190726",
                "date_exp":"2019-07-26",
                "name":"Baldovska citron",
                "amount_real":9.0,
                "amount_snap":9.0,
                "amount_diff":0.0
            },
            {
                "id_warehouse":5,
                "date":"2018-11-29",
                "product_code":"baldovskaorange",
                "lot":"190724",
                "date_exp":"2019-07-24",
                "name":"Baldovska pomaranc",
                "amount_real":7.5,
                "amount_snap":5.0,
                "amount_diff":2.5
            },
            {
                "id_warehouse":5,
                "date":"2018-11-29",
                "product_code":"gemerkajemnep",
                "lot":"190619",
                "date_exp":"2021-07-06",
                "name":"Gemerka jemne perliva",
                "amount_real":2,
                "amount_snap":4,
                "amount_diff":-2
            }
        ]
    }