Creating a ticket №14 (revoke COMDOC signing)

To work with this method, the user must be authorized.

Important

Only the sender of the document can revoke the signing of 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 value [ЕлектроннийДокумент/Відхилив/GLN] must match the gln parameter in the request. The USREOU must comply with the signature [КодКонтрагента] or [ІПН] in one of the blocks [ЕлектроннийДокумент/Сторони/Контрагент]

URL

Method

POST

URL query

/api/v2/eds/comdoc/revoke?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 or application/xml

REQUEST

JSON Body

The body of the method request can transmit:

  • signed p7s data in binary form with Content-Type=application/pkcs7-signature;

  • unsigned xml (COMDOC_021) in binary form with Content-Type=application/application/xml.

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"
}