Send a document (without creating a draft)

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

This POST method /api/eds/doc/create_and_send creates and sends the document at the same time.

URL

Method

POST

URL query

/api/eds/doc/create_and_send?doc_type=desadv&gln=9864065702429

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_type - string; document type (parameter description)

Headers

Authorization

SID - token obtained during authorization

Content-Type

multipart/form-data

REQUEST

JSON Body

Only one attachment is passed in the request body of the method in the application/json or application/xml or application/pkcs7-signature format (examples of requests + document specifications)!

Note

With specifying of application/pkcs7-signature, the possibility of processing BASE64 format is available.

RESPONSE

  • chain_uuid - the identifier of the chain in which the document is located;

  • doc_uuid - document ID on the EDIN 2.0 platform;

  • ticket_uuid - ticket ID (for COMDOC documents).

Response example (JSON):

{
  "chain_uuid": "7ccff78e-ea42-47ea-81e4-5508ed4fbd51",
  "doc_uuid": "3698b501-e1ef-464d-a71a-58066f556114",
  "ticket_uuid": "1003706c-3656-497b-9438-c6f33e27c36d"
}