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

get Get New Invoices

/Output/GetNewInvoices/[DocId]/[RequestId]

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

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

Responses

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

{
    "key": 28,
    "value": [
        {
            "id": 347,
            "source": "Входящий",
            "docNumber": "12",
            "docDate": "2023-09-03T12:00:00Z",
            "vat": 1,
            "amountToPay": 90000,
            "amountWOVAT": 10000,
            "currency": "RUB",
            "operation": null,
            "state": "Согласовано",
            "employee": null,
            "department": 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": "779955555519",
                "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,
            "periodTo": "2023-09-20T12:00:00Z"
        },
        {
            "id": 397,
            "source": "Входящий",
            "docNumber": "18",
            "docDate": "2023-04-12T12:00:00Z",
            "vat": null,
            "amountToPay": 5000,
            "amountWOVAT": null,
            "currency": "",
            "operation": null,
            "state": "Согласовано",
            "contractor": {
                "id": 107,
                "name": "ИП Ромашка",
                "inn": "777777777777",
                "kpp": "777777777",
                "ext_ID": null,
                "organizationId": 29,
                "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": 29,
                "name": "ООО Орион",
                "inn": "111111111111",
                "kpp": "222222222",
                "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,
            "periodTo": "2023-08-31T12:00:00Z"
        }
    ]
}

Response 401

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

Response 500

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

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