Creating a ticket №2 (COMDOC acceptance)
To work with this method, the user must be authorized.
New:
Important
Only the recipient of the document can accept the COMDOC document before the document changes its status to:
revoked (the document has ticket №14 )
rejected (the document has ticket №13)
repealed (the document has ticket №12)
accepted (the document has ticket №2)
The USREOU must comply with the signature [КодКонтрагента] or [ІПН] in one of the blocks [ЕлектроннийДокумент/Сторони/Контрагент]
URL |
|
Method |
POST |
URL query |
/api/v2/eds/comdoc/accept?gln=9864065702429&doc_uuid=c1f6a1d0-5aaf-4a06-b78d-71c238f70986 |
URL parameters |
gln - string (13); the GLN number of the organization that is associated with the authorized user of the EDIN 2.0 platform at the account level doc_uuid - string; document UUID COMDOC |
Headers |
|
Authorization |
SID - token obtained during authorization |
Content-Type |
application/pkcs7-signature |
REQUEST |
|
JSON Body |
The body of the request method transmit signed p7s data in binary form |
RESPONSE
Response transmits:
chain_uuid - the identifier of the chain in which the document is located
doc_uuid - document ID with a ticket
ticket_uuid - ticket ID
Example (JSON):
{
"chain_uuid": "7b6aef20-9f42-460e-9031-bb81c91e3b03",
"doc_uuid": "e013510a-4267-4553-80f0-eb5ebabdfd05",
"ticket_uuid": "1003706c-3656-497b-9438-c6f33e27c36d"
}
Deprecated:
URL |
|
Method |
POST |
URL query |
/api/v2/eds/comdoc/accept?gln=9864065702429&doc_uuid=c1f6a1d0-5aaf-4a06-b78d-71c238f70986 |
URL parameters |
gln - string (13); the GLN number of the organization that is associated with the authorized user of the EDIN 2.0 platform at the account level doc_uuid - string; document UUID COMDOC |
Headers |
|
Authorization |
SID - token obtained during authorization |
Content-Type |
application/json |
REQUEST |
|
JSON Body |
The body of the request method transmit data for performing the acceptance operation |
RESPONSE
Server code 200 (ok).