API v2 ########### .. hint:: All requests of the following API methods EDIN 2.0 platform should be sent at: https://edo-v2.edin.ua Authorization ============== +------------+-----------------------------+----------------------------------------------------------------------------------------------------------+ | **Method** | **URL query** | **Description** | +============+=============================+==========================================================================================================+ | POST | ``/api/authorization/hash`` | `Authorization `__ | +------------+-----------------------------+----------------------------------------------------------------------------------------------------------+ | GET | ``/api/auth_check`` | `Session activity check `__ | +------------+-----------------------------+----------------------------------------------------------------------------------------------------------+ Work with directories ============================ +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **Method** | **URL query** | **Description** | +============+======================================+============================================================================================================================================================================================+ | GET | ``/api/oas/user`` | `Obtaining information on the authorized user `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/account/users`` | `Obtaining information about all company users (at the account level) `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/account/identifiers`` | `Receiving information on GLN numbers associated with the authorized user (at the account level) `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/retailers`` | `Obtaining a list of retail networks that are associated with a given GLN `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/retailer/identificators`` | `Obtaining a list of GLN numbers that are associated with a given retail network `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/allretailers`` | `Obtaining a list of all retail networks `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/units`` | `Obtaining a list of available units of measurement `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/oas/identifiers`` | `Obtaining information about the organization by Name / TIN / PPC / GLN `__ | +------------+--------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Work with documents ============================ +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | **Method** | **URL query** | **Description** | +============+==================================+===========================================================================================================================================================+ | POST | ``/api/v2/eds/doc`` | `Create a draft document `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | PATCH | ``/api/eds/doc/send`` | `Drafts sending `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/eds/doc/create_and_send`` | `Send a document (without creating a draft) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/eds/docs/search`` | `Document search (filtering), the selection list of documents `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc`` | `Obtaining information (meta-data) about the document `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/chain`` | `Obtaining a chain of documents `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc/body`` | `Receiving document content `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc/xml`` | `Receiving XML document content `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc/download`` | `Download the document body / sign `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc/condra/body`` | `Download «Unstructured (Universal) Document» (CONDRA) as an archive `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | PATCH | ``/api/eds/doc/condra/send`` | `Send «Unstructured (Universal) Document» (CONDRA) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/eds/doc/statuses`` | `Sending document status `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc/statuses`` | `Obtaining document status `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/eds/doc/body`` | `Add an attachment (for CONDRA) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/eds/doc`` | `Create a draft document (for CONDRA) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/office/uuid`` | `Getting the UUID (for CONDRA) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/eds/doc/body`` | `File signing (for CONDRA) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | PUT | ``/api/eds/doc/extra_fields`` | `Indexes filling (adding / updating extra parameter fields) `__ | +------------+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ Work with tickets ============================ +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | **Method** | **URL query** | **Description** | +============+======================================+===================================================================================================================================================================================+ | GET | ``/api/eds/doc/signers`` | `Obtaining information about subscribers `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/eds/doc/ticket/body`` | `Receive ticket data / content `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/v2/eds/comdoc/repeal`` | `Creating a "Cancellation" ticket on the Server (COMDOC_019) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | GET | ``/api/v2/eds/comdoc/reject`` | `Creating a "Notice of refusal to sign the document" ticket on the server (COMDOC_021) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/v2/eds/doc/ticket`` | `Creating a ticket №1 (draft signature) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/v2/eds/comdoc/accept`` | `Creating a ticket №2 (COMDOC acceptance) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/v2/eds/comdoc/repeal`` | `Creating a ticket №11 (COMDOC repeal request) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/v2/eds/comdoc/repeal/accept`` | `Creating a ticket №12 (acceptance of the COMDOC repeal request) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/v2/eds/comdoc/reject`` | `Creating a ticket №13 (COMDOC rejection) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | POST | ``/api/v2/eds/comdoc/revoke`` | `Creating a ticket №14 (revoke COMDOC signing) `__ | +------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Work in a personal account =================================== +------------+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+ | **Method** | **URL query** | **Description** | +============+======================================+====================================================================================================================================================+ | GET | ``/api/oas/personal/tariff/balance`` | `Obtaining data on the balance, tariffs, transaction history `__ | +------------+--------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------+