Create a draft document (for CONDRA)

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

URL

Method

POST

URL query

/api/eds/doc?doc_type=condra&doc_number=weba1&doc_date=1614636000&gln=9864067620417&recipient=9864067620424&family=edi

URL parameters

gln (mandatory) 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

OR

guid (mandatory) String - unique identifier of the organization on the EDIN 2.0 platform

doc_type (mandatory) String - document type (parameter description)

doc_number (mandatory) String - document number

doc_date (mandatory) int - date of the document (UNIX-timestamp format)

recipient (mandatory) String (13) - recipient gln

family (mandatory) String (13) - service; possible values:

  • edi

  • uzd

created_from (optional) String - document or chain ID

created_from_doc_id (optional) String - base document ID (document on the basis of which a new one will be created)

Headers

Authorization

SID - token obtained during authorization

Content-Type

application/json

REQUEST

JSON Body

A document in JSON format is transmitted in the body of the method request (document specifications). Example request body to create CONDRA

RESPONSE

Response transmits doc_uuid (unique document ID) in text form:

e64a304b-b0c0-454b-a361-5dc5d6987952