### GET /api/v3/drafts/ToProcess Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DraftsAPI Example of a successful response containing a list of drafts awaiting processing. ```json { "count": 1, "data": [ { "id": "C0775FB3-B718-4CD5-B95A-2856A179C779", "senderAbonentId": "3925EF38-5937-4253-9797-5B77FC13E075", "status": "Строка", "recipients": [ { "id": "C3842CCD-FB76-4348-8C38-C90579858A40", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "name": "Рога и Копыта", "inn": "9678731893", "kpp": "999901006", "docflowId": "Строка", "departmentId": "Строка" } ], "name": "Акт № 1 от 29.07.2020", "function": "Строка", "type": "Строка", "uploadDate": "2022-02-11T13:03:05.670Z", "responseSignatureRequired": true, "hasMarkingCodes": true, "packageId": "Строка", "updatedDate": "2022-02-11T13:03:05.670Z", "departmentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "draftDelegation": { "creatorAbonentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "createdAt": "2022-02-11T13:03:05.670Z", "whoPaidAbonentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "creatorDepartmentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "creatorEmployeeId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "counterpartyGlobalId": "Строка", "recipientName": "Строка", "recipientInn": "Строка", "recipientKpp": "Строка" }, "isAllowed": true, "isTemplate": true, "templateInfo": { "paths": [ "Строка" ] }, "templateId": "Строка" } ] } ``` -------------------------------- ### Get Employees Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/EmployeesAPI Example of a successful response from the GET /api/v1/employees endpoint. ```json { "count": 1, "data": [ { "id": "71957841-691e-4436-b695-ee65625ae8d9", "abonentId": "8b1ea303-b01c-462f-bfe1-c996fbb33150", "userId": "a60f7d80-b9d9-4faa-a2f1-3d697c08d426", "status": "Строка", "role": { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Owner.", "displayName": "Владелец.", "permissions": [ "Строка" ] }, "position": "Директор", "fullName": { "surname": "Константинопольский", "name": "Константин", "patronymic": "Константинович" } } ] } ``` -------------------------------- ### Invitation Details Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI Example JSON response structure for the GET /api/v1/invitations/{invitationId} endpoint. ```json { "id": "b53e7790-a772-465f-a8c0-95a5e9bd1c9d", "sentDate": "2022-02-11T13:03:05.670Z", "invitationStatus": "Строка", "sender": { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" }, "recipient": { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" }, "operator": { "id": "ef2687fc-2a40-4bca-886c-e52283105315", "prefix": "2AE", "name": "АО Калуга Астрал" }, "docflowId": "Строка" } ``` -------------------------------- ### Available Actions Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DocflowsActionsAPI Example of a successful response containing a list of available actions for a document flow. ```json { "count": 1, "data": [ "Строка" ] } ``` -------------------------------- ### Get Draft Changes Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DraftsAPI Example of a successful JSON response when retrieving a list of changed drafts. ```json { "abonentId": " 41ea218c-8539-49e4-83a9-9032ed6abc01 ", "limit": 1, "dateFrom": "2022-02-11T13:03:05.670Z", "count": 1, "totalCount": 1, "events": [ { "draftId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "updateDate": "2022-02-11T13:03:05.670Z" } ] } ``` -------------------------------- ### Import Draft Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DraftsAPI Example of a successful response body when importing a draft document. ```json { "draftDocumentId": "Строка", "senderChanged": true, "recipientChanged": true, "signerChanged": true, "changes": "Строка", "type": "Строка", "recipientIds": [ "42F774E0-2325-45FA-A94D-F10A578A1EA0" ], "message": "Строка", "employeeDepartmentId": "7143b542-80ed-48ae-9f4a-812dccfe3e73" } ``` -------------------------------- ### Registration Requests List Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/RegistrationAPI Successful response structure for the GET /api/v1/registration/requests method. ```json { "count": 1, "data": [ { "id": "a6a4bcd3-78c1-4504-a0c4-9cf18c5bb043", "abonentId": "71067ff8-fc03-4309-abee-8cefb13103dd", "inn": "9649563683", "kpp": "000000000", "organizationShortName": "Тестовое наименование организации", "organizationFullName": "ООО \"Тестовое наименование организации\"", "creationDate": "2022-02-11T13:03:05.670Z", "status": "Строка" } ] } ``` -------------------------------- ### Get Package Docflows Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI Successful response structure for the GET /api/v1/packages/{packageId}/docflows endpoint. ```json { "packageId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "count": 1, "docflows": [ { "id": "56877C86-73A4-4D97-BBCF-C63A44153C8C", "docflowPartId": "738D2745-B5EF-4E37-8C60-08E17C623499", "owner": { "id": "56877C86-73A4-4D97-BBCF-C63A44153C8C", "name": "Рога и Копыта", "inn": "9678731893", "kpp": "999901006", "departmentId": "56877C86-73A4-4D97-BBCF-C63A44153C8C" }, "counterparty": { "id": "56877C86-73A4-4D97-BBCF-C63A44153C8C", "name": "Рога и Копыта", "inn": "9678731893", "kpp": "999901006", "departmentId": "56877C86-73A4-4D97-BBCF-C63A44153C8C" }, "type": "Строка", "status": "Строка", "name": "Акт № 1 от 29.07.2020", "primaryDocumentId": "D45E6D2B-7929-4499-A8CE-06D9CA9EEACF", "primaryDocumentFunction": "Строка", "primaryDocumentType": "Строка", "creationDate": "2022-02-11T13:03:05.670Z", "hasMarkingCodes": true, "hasMarkingCodesDisparity": true, "hasMarkingCodeScanningStarted": true, "isViewed": true, "packageId": "Строка", "hasWarrant": true, "deal1CId": "Строка", "answerTitleInfo": { "resultCode": 1, "acceptanceDate": "2022-02-11T13:03:05.670Z", "contentOperation": "Строка", "documentOnDisagreements": { "name": "Строка", "number": "Строка", "date": "2022-02-11T13:03:05.670Z" }, "disagreementAdditionalInfoList": [ { "id": "Строка", "value": "Строка" } ] }, "closedMessageId": "Строка", "isAllowed": true, "sendingError": "Строка" } ] } ``` -------------------------------- ### Email Invitation Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI Example JSON structure for the request body when sending an email invitation. ```json { "recipientEmail": "Строка", "recipientInn": "Строка", "recipientKpp": "Строка" } ``` -------------------------------- ### Get Department Details Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DepartmentsAPI Example of a successful response containing detailed information about a specific department. ```json { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "code": "Строка", "kpp": "Строка", "parentDepartmentId": "Строка", "address": { "postalIndex": "Строка", "regionCode": "Строка", "regionName": "Строка", "area": "Строка", "city": "Строка", "settlement": "Строка", "street": "Строка", "house": "Строка", "housing": "Строка", "apartment": "Строка" } } ``` -------------------------------- ### Get Package Drafts Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI Successful response structure for the GET /api/v1/packages/{packageId}/drafts endpoint. ```json { "packageId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "count": 1, "drafts": [ { "id": "C0775FB3-B718-4CD5-B95A-2856A179C779", "senderAbonentId": "3925EF38-5937-4253-9797-5B77FC13E075", "status": "Строка", "recipients": [ { "id": "C3842CCD-FB76-4348-8C38-C90579858A40", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "name": "Рога и Копыта", "inn": "9678731893", "kpp": "999901006", "docflowId": "Строка", "departmentId": "Строка" } ], "name": "Акт № 1 от 29.07.2020", "function": "Строка", "type": "Строка", "uploadDate": "2022-02-11T13:03:05.670Z", "responseSignatureRequired": true, "hasMarkingCodes": true, "packageId": "Строка", "updatedDate": "2022-02-11T13:03:05.670Z", "departmentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "draftDelegation": { "creatorAbonentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "createdAt": "2022-02-11T13:03:05.670Z", "whoPaidAbonentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "creatorDepartmentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "creatorEmployeeId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "counterpartyGlobalId": "Строка", "recipientName": "Строка", "recipientInn": "Строка", "recipientKpp": "Строка" }, "isAllowed": true, "isTemplate": true, "templateInfo": { "paths": [ "Строка" ] }, "templateId": "Строка" } ] } ``` -------------------------------- ### Get Signing Requests Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CryptographyAPI Example JSON response containing a list of documents pending signature. ```json { "count": 1, "data": [ { "id": "78C31B88-C622-401F-BEED-21608FDA9071", "docflowId": "4ADB726E-F081-4548-89FA-B59EE04DD151", "docflowPartId": "73F55512-3FB2-4D09-9E16-355847BD8076", "transactionId": "B238661A-1422-43E6-AC2F-4B87E8EF1235", "documentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "signerAbonentId": "AF2F2FEF-1E9C-458F-92DE-AB60C896CAFE", "certificateSkid": "522E66D8E1964C509E54329D2DAFF009", "requestTime": "2022-02-11T13:03:05.670Z" } ] } ``` -------------------------------- ### DocumentWithSign Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI Example JSON structure for the DocumentWithSign model, representing a document with its associated signature and metadata. ```json { "document": "ФАЙЛ!!!", "documentSign": "ФАЙЛ!!!", "warrantNumber": "Строка", "isResponseSignature": "Строка" } ``` -------------------------------- ### Outgoing Invitations Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI Example JSON response for a successful GET request to the outgoing invitations endpoint. ```json { "count": 1, "data": [ { "id": "b53e7790-a772-465f-a8c0-95a5e9bd1c9d", "sentDate": "2022-02-11T13:03:05.670Z", "invitationStatus": "Строка", "sender": { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" }, "recipient": { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" }, "operator": { "id": "ef2687fc-2a40-4bca-886c-e52283105315", "prefix": "2AE", "name": "АО Калуга Астрал" }, "docflowId": "Строка" } ] } ``` -------------------------------- ### Successful Response for GET /api/v1/abonents Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/AbonentsAPI Example of a successful JSON response containing a list of subscribers with their identification and registration details. ```json { "count": 1, "data": [ { "id": "28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "globalId": "2АЕ28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "status": "Строка", "shortName": "Рога и Копыта", "fullName": "ООО «Рога и Копыта»", "inn": "9614663486", "kpp": "999901006", "ogrn": "1239535705122" } ] } ``` -------------------------------- ### GET /api/v3/documentRoutingRules Success Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DocumentRoutingRulesAPI Example of a successful response containing a list of routing rules. ```json { "count": 1, "data": [ { "routingRuleId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "sequenceNumber": 1 } ] } ``` -------------------------------- ### Counterparty Departments Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI Example JSON response structure for the GET /api/v1/counterparties/{counterpartyId}/departments endpoint. ```json { "totalCount": 1, "count": 1, "data": [ { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "parentDepartmentId": "Строка", "hasChildrenDepartments": true, "code": "Строка", "kpp": "Строка" } ] } ``` -------------------------------- ### EmployeeDepartmentInfo Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/EmployeesAPI JSON representation of the employee department visibility settings. ```json { "departmentId": "2ede67e9-0f40-4294-ae18-0a84b0605a23", "accessLevel": "Строка", "visibleDepartments": [ "42F774E0-2325-45FA-A94D-F10A578A1EA0" ] } ``` -------------------------------- ### Registration Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/RegistrationAPI Successful response structure for the POST /api/v2/registration method. ```json { "id": "6a65415a-1a41-416c-ae18-cbdbb2175b87", "abonentId": "8e26fb42-b2f1-45ed-b2ce-ab4c9308cbc5", "creatorUserId": "07d3ba7c-d0aa-4cdc-bec4-236d2e180003", "taxAuthority": { "id": "7157f9f8-fd9d-425f-939e-bd06fd6e90af", "code": "9999", "name": "Межрайонная инспекция ФНС России № 2 по Республике Тестостан" }, "status": "Строка", "partnerInfo": { "code": 1, "name": "АО \"Тестовый оператор\" ОПС ЭДО", "phone": "8 (000) 000 00 00", "email": "test@test.ru" }, "inn": "9649563683", "kpp": "000000000", "ogrn": "0000000000000", "organizationShortName": "Тестовое наименование организации", "ipRegistrationCertificateNumber": "00 000000000", "ipRegistrationDate": "2015-01-02", "legalAddress": { "postalIndex": "000000", "regionCode": "000", "regionName": "Тестовый регион", "area": "Тестовый район", "city": "Тестовый город", "settlement": "Тестовый населённый пункт", "street": "Тестовая улица", "house": "404", "housing": "А", "apartment": "10" }, "actualAddress": { "postalIndex": "000000", "regionCode": "000", "regionName": "Тестовый регион", "area": "Тестовый район", "city": "Тестовый город", "settlement": "Тестовый населённый пункт", "street": "Тестовая улица", "house": "404", "housing": "А", "apartment": "10" }, "name": "Константин", "surname": "Константинопольский", "patronymic": "Константинович", "snils": "138-050-393 43", "position": "Директор", "phone": "+70000000000", "email": "test@test.ru", "tariffs": [ { "id": "68b09b27-5701-47ed-8468-98886351473b", "extensions": [ "42F774E0-2325-45FA-A94D-F10A578A1EA0" ] } ] } ``` -------------------------------- ### GET /api/v3/documentRoutingRules/{routingRuleId} Success Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DocumentRoutingRulesAPI Example of a successful response containing detailed information about a specific routing rule. ```json { "routingRuleId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "sequenceNumber": 1, "documentTypes": [ "Строка" ], "counterpartiesIds": [ "42F774E0-2325-45FA-A94D-F10A578A1EA0" ], "departmentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "departmentName": "Строка" } ``` -------------------------------- ### ApprovalStepFull Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/ApprovalRoutesAPI JSON representation of the ApprovalStepFull data model. ```json { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "stepType": "Строка", "executorType": "Строка", "executorId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "executorName": "Строка" } ``` -------------------------------- ### Counterparty Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI JSON representation of a counterparty entity. ```json { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" } ``` -------------------------------- ### DraftDelegation Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI JSON representation of the DraftDelegation object. ```json { "creatorAbonentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "createdAt": "2022-02-11T13:03:05.670Z", "whoPaidAbonentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "creatorDepartmentId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "creatorEmployeeId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "counterpartyGlobalId": "Строка", "recipientName": "Строка", "recipientInn": "Строка", "recipientKpp": "Строка" } ``` -------------------------------- ### DraftChangeInfo Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/DraftsAPI Example of the JSON structure for DraftChangeInfo, containing the draft identifier and the last update timestamp. ```json { "draftId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "updateDate": "2022-02-11T13:03:05.670Z" } ``` -------------------------------- ### ApprovalRoute Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/ApprovalRoutesAPI JSON representation of the ApprovalRoute data model. ```json { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "isEnabled": true } ``` -------------------------------- ### CounterpartyEmployee Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI JSON representation of a counterparty employee entity. ```json { "fullName": "Константинопольский Константин Константинович", "position": "Директор", "phone": "+70000000000", "email": "test@test.tt" } ``` -------------------------------- ### AddressRequestArgs Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/RegistrationAPI Represents the parameters required for an address change request. ```json { "postalIndex": "000000", "regionCode": "000", "regionName": "Тестовый регион", "area": "Тестовый район", "city": "Тестовый город", "settlement": "Тестовое поселение", "street": "Тестовая улица", "house": "404", "housing": "2", "apartment": "1" } ``` -------------------------------- ### Import and Dispatch Package Request Model Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI Example request body for importing and dispatching a package. ```json { "documents": [ { "document": "ФАЙЛ!!!", "documentSign": "ФАЙЛ!!!", "warrantNumber": "Строка", "isResponseSignature": "Строка" } ] } ``` -------------------------------- ### License Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/AbonentsAPI JSON representation of a License object detailing activation dates, expiration, and usage limits. ```json { "type": "Строка", "activationDate": "2022-02-11T13:03:05.670Z", "expirationDate": "2022-02-11T13:03:05.670Z", "limit": 100, "balance": 1000, "extensionActivationDate": "2022-02-11T13:03:05.670Z", "extensionExpirationDate": "2022-02-11T13:03:05.670Z" } ``` -------------------------------- ### Tariff List Response Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/RegistrationAPI Successful response structure for retrieving the list of available tariffs. ```json { "count": 1, "data": [ { "id": "68b09b27-5701-47ed-8468-98886351473b", "name": "Промо", "duration": 30, "limit": 100 } ] } ``` -------------------------------- ### GET /api/v1/blockedOrganizations Success Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI Example of a successful response containing a list of blocked organizations. ```json { "count": 1, "data": [ { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "blockedBy": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "name": "Строка", "inn": "Строка", "kpp": "Строка", "blockingDate": "2022-02-11T13:03:05.670Z" } ] } ``` -------------------------------- ### TemplateInfo Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI JSON representation of template information containing file paths. ```json { "paths": [ "Строка" ] } ``` -------------------------------- ### PartnerInfo Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/RegistrationAPI Represents partner information, including contact details and identification code. ```json { "code": 1, "name": "АО \"Тестовый оператор\" ОПС ЭДО", "phone": "8 (000) 000 00 00", "email": "test@test.ru" } ``` -------------------------------- ### GET /api/v3/approvalRoutes Success Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/ApprovalRoutesAPI Example JSON response for a successful request to retrieve a list of approval routes. ```json { "count": 1, "data": [ { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "isEnabled": true } ] } ``` -------------------------------- ### Retrieve Counterparty Contact List Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/CounterpartiesAPI Example JSON response structure for a successful GET request to the contacts endpoint. ```json { "count": 1, "data": [ { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "owner": { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" }, "counterparty": { "id": "fc7011ec-616d-4493-9c0c-8a13be96ad98", "globalId": "2AE28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "organizationName": "ОАО Тестовая организация", "inn": "9632018827", "kpp": "999901001" }, "operator": { "id": "ef2687fc-2a40-4bca-886c-e52283105315", "prefix": "2AE", "name": "АО Калуга Астрал" } } ] } ``` -------------------------------- ### Docflow Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI JSON representation of a Docflow object showing all required and optional fields. ```json { "id": "56877C86-73A4-4D97-BBCF-C63A44153C8C", "docflowPartId": "738D2745-B5EF-4E37-8C60-08E17C623499", "owner": { "id": "56877C86-73A4-4D97-BBCF-C63A44153C8C", "name": "Рога и Копыта", "inn": "9678731893", "kpp": "999901006", "departmentId": "56877C86-73A4-4D97-BBCF-C63A44153C8C" }, "counterparty": { "id": "56877C86-73A4-4D97-BBCF-C63A44153C8C", "name": "Рога и Копыта", "inn": "9678731893", "kpp": "999901006", "departmentId": "56877C86-73A4-4D97-BBCF-C63A44153C8C" }, "type": "Строка", "status": "Строка", "name": "Акт № 1 от 29.07.2020", "primaryDocumentId": "D45E6D2B-7929-4499-A8CE-06D9CA9EEACF", "primaryDocumentFunction": "Строка", "primaryDocumentType": "Строка", "creationDate": "2022-02-11T13:03:05.670Z", "hasMarkingCodes": true, "hasMarkingCodesDisparity": true, "hasMarkingCodeScanningStarted": true, "isViewed": true, "packageId": "Строка", "hasWarrant": true, "deal1CId": "Строка", "answerTitleInfo": { "resultCode": 1, "acceptanceDate": "2022-02-11T13:03:05.670Z", "contentOperation": "Строка", "documentOnDisagreements": { "name": "Строка", "number": "Строка", "date": "2022-02-11T13:03:05.670Z" }, "disagreementAdditionalInfoList": [ { "id": "Строка", "value": "Строка" } ] }, "closedMessageId": "Строка", "isAllowed": true, "sendingError": "Строка" } ``` -------------------------------- ### Dispatch Package Success Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI Example response structure returned upon successful package dispatch. ```json { "packageId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "recipientId": "Строка", "documents": [ { "draftId": "Строка", "docflowId": "Строка", "sendStatus": "Строка", "counterpartyId": "Строка", "docflowStatus": "Строка", "description": "Строка", "senderDepartmentId": "Строка" } ] } ``` -------------------------------- ### GET /api/v3/approvalRoutes/{approvalRouteId} Success Response Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/ApprovalRoutesAPI Example JSON response for a successful request to retrieve detailed information about a specific approval route. ```json { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Строка", "isEnabled": true, "steps": [ { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "stepType": "Строка", "executorType": "Строка", "executorId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "executorName": "Строка" } ] } ``` -------------------------------- ### POST /api/v1/packages/{packageId} Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/PackagesAPI Imports and dispatches a package of documents to the system. ```APIDOC ## POST /api/v1/packages/{packageId} ### Description Imports and dispatches a package of documents to the system. The document size in the package must not exceed 60 MB. ### Method POST ### Endpoint /api/v1/packages/{packageId} ### Parameters #### Path Parameters - **packageId** (string(uuid)) - Required - Идентификатор пакета. #### Query Parameters - **recipientId** (string(uuid)) - Required - Внутренний идентификатор контрагента-получателя. - **isReadOnly** (boolean) - Optional - Индикатор, показывающий, что созданные черновики для документов в пакете будут доступены только на чтение. #### Request Headers - **abonentId** (string(uuid)) - Required - Внутренний идентификатор абонента. #### Request Body - **documents** (DocumentWithSign[array]) - Required - Список документов с открепленной подписью. ### Request Example { "documents": [ { "document": "ФАЙЛ!!!", "documentSign": "ФАЙЛ!!!", "warrantNumber": "Строка", "isResponseSignature": "Строка" } ] } ### Response #### Success Response (200) - **ProcessPackageResult** (object) - Результат импорта пакета. #### Response Example { "packageId": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "recipientId": "Строка", "documents": [ { "draftId": "Строка", "docflowId": "Строка", "sendStatus": "Строка", "counterpartyId": "Строка", "docflowStatus": "Строка", "description": "Строка", "senderDepartmentId": "Строка" } ] } ``` -------------------------------- ### EmployeeShortInfo Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/EmployeesAPI JSON representation of the short employee information object, containing only essential identification and role data. ```json { "id": "71957841-691e-4436-b695-ee65625ae8d9", "abonentId": "8b1ea303-b01c-462f-bfe1-c996fbb33150", "userId": "a60f7d80-b9d9-4faa-a2f1-3d697c08d426", "status": "Строка", "role": { "id": "42F774E0-2325-45FA-A94D-F10A578A1EA0", "name": "Owner.", "displayName": "Владелец.", "permissions": [ "Строка" ] }, "position": "Директор", "fullName": { "surname": "Константинопольский", "name": "Константин", "patronymic": "Константинович" } } ``` -------------------------------- ### GET /api/v1/drafts Source: https://info.edo.astral-dev.ru/docs/main/api/scenarios/unit_without_state Lists all imported drafts. ```APIDOC ## GET /api/v1/drafts ### Description Returns a list of all imported, non-sent drafts in the system. ### Method GET ### Endpoint /api/v1/drafts ``` -------------------------------- ### GET /api/v1/abonents Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/AbonentsAPI Retrieves a list of subscribers from the system. ```APIDOC ## GET /api/v1/abonents ### Description Retrieves a list of subscribers for use in the system. ### Method GET ### Endpoint /api/v1/abonents ### Parameters #### Query Parameters - **offset** (integer) - Optional - Starting index of the list. - **count** (integer) - Optional - Number of items to return (Default: 15). ### Response #### Success Response (200) - **count** (integer) - Total number of items. - **data** (array) - List of subscriber objects. #### Response Example { "count": 1, "data": [ { "id": "28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "globalId": "2АЕ28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "status": "Строка", "shortName": "Рога и Копыта", "fullName": "ООО «Рога и Копыта»", "inn": "9614663486", "kpp": "999901006", "ogrn": "1239535705122" } ] } ``` -------------------------------- ### EmployeeDepartmentInfoResponse Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/EmployeesAPI JSON representation of the employee department information response including the department name. ```json { "departmentId": "2ede67e9-0f40-4294-ae18-0a84b0605a23", "name": "Бухгалтерия", "accessLevel": "Строка", "visibleDepartments": [ "42F774E0-2325-45FA-A94D-F10A578A1EA0" ] } ``` -------------------------------- ### GET /api/v1/registration/tariffs Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/RegistrationAPI Retrieves the list of available tariffs. ```APIDOC ## GET /api/v1/registration/tariffs ### Description Retrieves a list of active tariffs available for use in the system. ### Method GET ### Endpoint /api/v1/registration/tariffs ### Response #### Success Response (200) - **count** (integer) - Number of tariffs - **data** (array) - List of tariff objects containing id, name, duration, and limit. ``` -------------------------------- ### AbonentShort Model Example Source: https://info.edo.astral-dev.ru/docs/main/api/controllers/AbonentsAPI JSON representation of the AbonentShort object containing identification and naming details. ```json { "id": "28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "globalId": "2АЕ28F6ABFC-546A-4EFA-AD43-6F8DB8738875", "status": "Строка", "shortName": "Рога и Копыта", "fullName": "ООО «Рога и Копыта»", "inn": "9614663486", "kpp": "999901006", "ogrn": "1239535705122" } ``` -------------------------------- ### GET /api/v1/cryptography/requests Source: https://info.edo.astral-dev.ru/docs/main/api/scenarios/unit_without_state Получение списка запросов на подпись. ```APIDOC ## GET /api/v1/cryptography/requests ### Description Возвращает список запросов на подпись с информацией о документообороте, транзакции и документе. ### Method GET ### Endpoint /api/v1/cryptography/requests ```