Add an attachment (for CONDRA)

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

URL

Method

POST

URL query

/api/eds/doc/body?body_type=content&doc_uuid=37c753a5-7746-4e3f-8485-332c16b63f83&gln=9864067620417&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_uuid (mandatory) UUID - document ID

family (optional) int - service; possible values:

  • edi

  • uzd

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;

Headers

Authorization

SID - token obtained during authorization

Content-Type

application/pkcs7-signature – for p7s file format

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet – for Excel file format

… etc MIME typification

REQUEST

JSON Body

The body of the request method transfering file in binary form.

RESPONSE

Server code 200 (ok).