Postman collection for retrieving documents
Tuesday, July 14, 2020 at 12:43pmDear 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?
Reply to: Postman collection for retrieving documents
Tuesday, July 14, 2020 at 02:55pmHi 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
Reply to: Hi Aravind, This API …
Tuesday, July 14, 2020 at 10:22pmThanks for quick response.
Where can we get REST API POSTMAN collections for the same. Please share POSTMAN collections.
Regards,
Aravind