get Get New Contracts
/Output/GetNewContracts/[DocId]/[RequestId]
Получение списка новых договоров
Необходимо вместо [DocId] в конце адреса запроса указать ид последнего загруженного договора, вместо [RequestId] - ид запроса
Responses
Response 200: ОК - Данные получены
{
"key": 27,
"value": [
{
"id": 7935,
"docNumber": "12",
"docDate": "2023-02-15T12:00:00Z",
"contractor": {
"id": 19,
"name": "ООО Орион",
"inn": "9686961876",
"kpp": "968601000",
"ext_ID": 6273,
"organizationId": 5,
"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": 5,
"name": "ООО Ромашка",
"inn": "7799555551",
"kpp": "968601000",
"ext_ID": "44046B99-AC13-42D2-904D-5AE103AD5A5G",
"clientId": 1,
"client": null,
"fullName": null,
"lawAddress": null,
"address": null,
"bill": null,
"bank": null,
"bik": null,
"phone": null,
"email": null,
"director": null,
"ogrn": null
},
"modified": "2023-02-15T13:18:36Z",
"modifiedBy": "ivanov@domain.ru",
"created": "2023-02-15T13:18:36Z",
"type": "",
"name": "Договор",
"amount": 1000,
"amountWOVAT": null,
"vat": null,
"currency": "RUB",
"comment": null,
"subject": null,
"docTypeId": 4,
"validityPeriod": "2023-11-24T12:00:00Z",
"state": "Согласовано"
},
{
"id": 7938,
"docNumber": "76",
"docDate": "2023-03-11T12:00:00Z",
"contractor": {
"id": 173,
"name": "ООО Орион",
"inn": "9686961876",
"kpp": "968601000",
"ext_ID": 6273,
"organizationId": 57,
"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": 57,
"name": "ООО Василек",
"inn": "7799555550",
"kpp": "968601000",
"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
},
"modified": "2023-03-11T13:42:21Z",
"modifiedBy": "ivanov@domain.ru",
"created": "2023-03-11T13:42:21Z",
"type": "",
"name": "Договор",
"amount": null,
"amountWOVAT": null,
"vat": null,
"currency": "",
"comment": null,
"subject": null,
"docTypeId": 4,
"validityPeriod": null,
"state": "Согласовано"
}
]
}
Response 401
Could not find any client for this token ( #err-40) - Не найден клиент с данным токеном
Response 500
Internal Server Error - Database Failure - Внутренняя ошибка сервера