Навигационное меню

get Get New Inputs

/Output/GetNewInputs/[DocId]/[RequestId]

Получение списка новых поступлений

Необходимо вместо [DocId] в конце адреса запроса указать ид последнего загруженного поступления, вместо [RequestId] - ид запроса

Responses

Response 200: ОК - Данные получены

{
    "key": 4818,
    "value": [
        {
            "id": 48,
            "source": "Входящий",
            "docNumber": "450к",
            "docDate": "2023-06-01T21:00:00Z",
            "vat": null,
            "amountToPay": null,
            "amountWOVAT": null,
            "amount": 450,
            "docDateInvoice": null,
            "docDateTaxInvoice": null,
            "docNumTaxInvoice": null,
            "docNumInvoice": null,
            "currency": null,
            "operation": null,
            "state": null,
            "contractor": {
                "id": 25,
                "name": "ООО Орион",
                "inn": "7799555550",
                "kpp": "779901001",
                "ext_ID": null,
                "organizationId": 6,
                "organization": null,
                "diadocID": null,
                "type": "ЮрЛицо",
                "address": "Москва",
                "contact": "Павел",
                "phone": "+7(234)354-64-56",
                "fullName": "ООО Орион",
                "lawAddress": "Москва",
                "bill": "345646546",
                "bank": "BestBank",
                "bik": "123432432",
                "email": "noname@domain.ru",
                "director": "Павел",
                "ogrn": "14523698",
                "manager": "ivanov@domain.ru",
                "code": null,
                "workKind": null,
                "clientId": 1,
                "client": null,
                "url": null,
                "comment": null
            },
            "organization": {
                "id": 6,
                "name": "ООО Альфа",
                "inn": "7799555555",
                "kpp": null,
                "ext_ID": "0f6ddb2d-54ca-11ec-a293-c860006e479a",
                "clientId": 1,
                "client": null,
                "fullName": null,
                "lawAddress": null,
                "address": null,
                "bill": null,
                "bank": null,
                "bik": null,
                "phone": null,
                "email": null,
                "director": null,
                "ogrn": null
            },
            "comment": null,
            "tablePart": null
        },
        {
            "id": 123,
            "source": "Входящий",
            "docNumber": "1",
            "docDate": "2023-10-18T21:00:00Z",
            "vat": null,
            "amountToPay": null,
            "amountWOVAT": 123,
            "amount": 1,
            "docDateInvoice": null,
            "docDateTaxInvoice": null,
            "docNumTaxInvoice": null,
            "docNumInvoice": null,
            "currency": null,
            "operation": null,
            "state": null,
            "contractor": {
                "id": 18,
                "name": "ИП Ромашка",
                "inn": "3434343434",
                "kpp": "758685886",
                "ext_ID": "44046B99-AC13-42D2-904D-5AE103AD5A5G",
                "organizationId": 4,
                "organization": null,
                "diadocID": null,
                "type": null,
                "address": null,
                "contact": null,
                "phone": null,
                "fullName": null,
                "lawAddress": null,
                "bill": null,
                "bank": null,
                "bik": null,
                "email": null,
                "director": null,
                "ogrn": null,
                "manager": null,
                "code": null,
                "workKind": null,
                "clientId": 1,
                "client": null,
                "url": null,
                "comment": null
            },
            "organization": {
                "id": 4,
                "name": "ООО Альфа",
                "inn": "7777777777",
                "kpp": "111111111",
                "ext_ID": null,
                "clientId": 1,
                "client": null,
                "fullName": null,
                "lawAddress": null,
                "address": null,
                "bill": null,
                "bank": null,
                "bik": null,
                "phone": null,
                "email": null,
                "director": null,
                "ogrn": null
            },
            "comment": null,
            "tablePart": null
        }
    ]
}

Response 401

Could not find any client for this token ( #err-40) - Не найден клиент с данным токеном

Response 500

Internal Server Error - Database Failure - Внутренняя ошибка сервера

EnDocs — единое информационное пространство для управления проектами, документами, задачами и сотрудниками