get Get Meta By Type And State
/Output/GetMetaByTypeAndState/[DocId]/[DoctypeId]/[DockindId]/[State]/[RequestId]
Получение информации о типе и состоянии любого документа
Необходимо вместо [DocId] в конце адреса запроса указать ид документа, по которому требуется информация, вместо [DoctypeId] - ид типа документа, вместо [DockindId] - ид вида документа, вместо [State] - статус документа, а вместо [RequestId] - ид запроса.
Responses
Response 200: ОК - Данные получены
{
"key": 23,
"value": [
{
"id": 627,
"source": null,
"docNumber": null,
"docDate": "2023-09-10T12:00:00Z",
"dockindId": 53,
"vat": null,
"amountToPay": null,
"amountWOVAT": null,
"amount": null,
"docDateInvoice": null,
"docDateTaxInvoice": null,
"docNumTaxInvoice": null,
"docNumInvoice": null,
"currency": null,
"operation": null,
"state": "Новый",
"contractor": 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
},
"project": null,
"employee": null,
"department": null,
"comment": null,
"tablePart": null,
"periodFrom": null,
"periodTo": null,
"address": null,
"counter": null,
"ext_ID": null
},
{
"id": 1310,
"source": null,
"docNumber": "23",
"docDate": "2023-01-10T12:00:00Z",
"dockindId": 53,
"vat": null,
"amountToPay": null,
"amountWOVAT": null,
"amount": null,
"docDateInvoice": null,
"docDateTaxInvoice": null,
"docNumTaxInvoice": null,
"docNumInvoice": null,
"currency": null,
"operation": null,
"state": "Новый",
"contractor": null,
"organization": {
"id": 54,
"name": "ИП Ромашка",
"inn": "779943492675",
"kpp": "779901001",
"ext_ID": "a9e8b409-1cda-11e6-a31d-14dae9b19a48",
"clientId": 1,
"client": null,
"fullName": null,
"lawAddress": null,
"address": null,
"bill": null,
"bank": null,
"bik": null,
"phone": null,
"email": null,
"director": null,
"ogrn": null
},
"project": null,
"employee": null,
"department": null,
"comment": null,
"tablePart": null,
"periodFrom": null,
"periodTo": null,
"address": null,
"counter": null,
"ext_ID": null
}
]
}
Response 401
Could not find any client for this token ( #err-40) - Не найден клиент с данным токеном
Response 500
Internal Server Error - Database Failure - Внутренняя ошибка сервера