Create a draft document

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

Using the POST method /api/v2/eds/doc it is possible to create a draft of the document of the specified type for the specified recipient.

URL

Method

POST

URL query

/api/v2/eds/doc?gln=9864065702429&doc_type=orders

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

application/json OR application/xml OR application/pkcs7-signature

REQUEST

JSON Body

The body of the request method transmit a document in JSON or XML or P7S format in binary form (Request example + document specifications)

RESPONSE

Response transmits data of the created document (object XDoc ).