GET /v1/docs/?headers={headers}

List of warehouse documents


Parameters

None.


Request

application/json
TS-Apikey: api_key
{}

Response

application/json
HTTP 200
{
    "list": [
        {
            "batch_number": -1, 
            "date": "2018-01-01", 
            "direction": "O", 
            "doc_number": 1800000001, 
            "doc_created_date": "2018-10-11", 
            "id_customer": 0, 
            "id_warehouse": 1, 
            "wh_doc_items": [
                {
                    "amount_base_unit": 14.6, 
                    "date_exp": "2018-11-08", 
                    "doc_number": 1800000001, 
                    "doc_created_date": "2018-10-11", 
                    "item_number": 1, 
                    "lot": "5683377", 
                    "meta": {
                        "created_time": "2018-10-11T09:31:41.793+0200", 
                        "created_user": "a@example.com", 
                        "last_modified_time": "2018-10-11T09:31:41.793+0200", 
                        "last_modified_user": "a@example.com", 
                        "note": "my document"
                    }, 
                    "name": "Müsli testovacie - ovocné", 
                    "product_code": "MUT", 
                    "timestamp_from_client": "1970-01-01T01:00:00.000+0100", 
                    "user_visible_item_number": 1
                }, 
                {
                    "amount_base_unit": 14.6,
                    "date_exp": "2018-11-08",
                    "doc_number": 1800000001,
                    "doc_created_date": "2018-10-11",
                    "item_number": 2,
                    "lot": "5683377",
                    "name": "new_cola",
                    "product_code": "MUT",
                    "timestamp_from_client": "1970-01-01T01:00:00.000+0100",
                    "user_visible_item_number": 0
                }
            ]
        }, 
        {
            "batch_number": 1,
            "date": "2018-01-01",
            "direction": "I",
            "doc_number": 1800000002,
            "doc_created_date": "2018-10-11",
            "id_customer": 0,
            "id_warehouse": 1,
            "wh_doc_items": [
                {
                    "amount_base_unit": 3.65,
                    "date_exp": "2018-11-08",
                    "doc_number": 1800000002,
                    "doc_created_date": "2018-10-11",
                    "item_number": 1,
                    "lot": "123",
                    "name": "Müsli sypané - ovocné",
                    "product_code": "MUT",
                    "timestamp_from_client": "2018-06-14T10:25:54.503+0200",
                    "user_visible_item_number": 2
                }, 
                {
                    "amount_base_unit": 3.65,
                    "date_exp": "2018-11-08",
                    "doc_number": 1800000002,
                    "doc_created_date": "2018-10-11",
                    "item_number": 2,
                    "lot": "456",
                    "name": "Müsli sypané - ovocné",
                    "product_code": "MUT",
                    "timestamp_from_client": "2018-06-14T10:25:54.503+0200",
                    "user_visible_item_number": 3
                }
            ]
        }