Receiving document content

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

With the api/eds/doc/body method, you can quickly get the content of a document without signatures / seals, as well as the body of the signature or the body of the seal. The request must contain an authorized user ID (GLN), document ID (doc_uuid), document body type.

URL

Method

GET

URL query

/api/eds/doc/body?gln=9864065702429&doc_uuid=97c06d02-7c3c-4467-aaac-4a808078609f&body_type=JSON&response_type=base64

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_uuid (mandatory) UUID - document ID

body_type (mandatory) String - document body type; possible values:

  • content - base64 content without signatures / seals;

  • json - json of the document;

  • sign - base64 signature body;

  • xml - document body in xml format;

response_type (optional) String - the format of the expected response; possible values:

  • bytes (by default)

  • file

  • base64

Headers

Authorization

SID - token obtained during authorization

Content-Type

application/json

RESPONSE

Response transmits string of values in the Base64 format.