aravindp | Posts: 2

Postman collection for retrieving documents

0 votes

Dear Champs,

I'm looking for REST API POSTMAN collection for GET https://sandbox.esignlive.com/api/packages/{packageId}/documents/{documentId}/pdf

Also advise where can we get packageId and documentId?

 


Duo_Liang | Posts: 3776

Reply to: Postman collection for retrieving documents

0 votes

Hi Aravind,

 

This API "GET /api/packages/{packageId}/documents/{documentId}/pdf" is used to download a particular document from a package.

Firstly, you need to identify the package Id, if you created the package from sender UI, it's part of the URL when you viewing the transaction edit page, in format of "https://sandbox.esignlive.com/a/transaction/e9olpTki2lBxxxgofIxdM=", or if you created the package through REST API / SDK, the package Id is returned at the response body. Otherwise, you may have to loop through all packages by "GET /api/packages?from=1&to=100"

For document ID, if you programmatically created the package, you can specify the document ID, or if you created the package through UI, you have to retrieve the package metadata by "GET /api/package/{packageId}", loop through the "documents" array from response and filter the document by its name.

 

Duo

 

 

 


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off