Download a document attached to an order response
How to download a document from an order or line response
You can download documents using two methods:
If the webhook order or line
document
contains anobjectId
: Download the supplier's document from the Tradecloud object-storage using theobjectId
anddownloadUrl
If the webhook order or line
document
contains anurl
: Download the document from the supplier's content server.
Method 1. Download the document from the Tradecloud object-storage
Step 1. Retrieve the objectId
from the document
objectId
from the documentPlease check the documents
fields in:
In this example the objectId
is:
Step. 2. Retrieve the downloadUrl
from the object storage
downloadUrl
from the object storageStep 3. Download the document using the downloadUrl
downloadUrl
Just GET the downloadUrl
This Amazon AWS S3 presigned url will expire within 1 minute.
Method 2. Download the document from the supplier content server
Step 1. Retrieve the url
from the document
url
from the documentPlease check the documents
fields in:
In this example the url
is:
Step 2. Download the document using the url
url
Just GET the url
Last updated