Access Document
This article explains how to access the document made available by the process.
Documents signed during the flow can be accessed via the document_ids field available in GetProcess.
For the signed document (Signed Proposal/Contract) you can get the PDF file signed.
Accessing the document (Proposal/Signed Contract)
Make a request to the endpoint:
- UAT: https://signhom.acesso.io/api/v1/service/file/{id-document}
- Production: https://sign.acesso.io/api/v1/service/file/{id-document}
- Postman
- cURL
To use Postman, follow these steps:
- Select the GET method.
- Enter the URL
https://sign.acesso.io/api/v1/service/file/
and add the document ID. - Select the Authorization tab.
- In the Type list, select Bearer Token.
- Enter the token obtained in the Token field with the prefix
Bearer
.
curl -X 'GET' \
'https://sign.acesso.io/api/v1/service/file/{id-document}' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {{TOKEN}}'
Example of a {id-document}: 00000000-0000-0000-0000-000000000000
Request executed successfully
If the request was successfully executed, the return response is a 200 OK
and a string encoded in Base64 that must be converted to a PDF file in your application.
Response example:
JVBERi0xLjcKCjEgMCBvYmogICUgZW50cnkgcG9pbnQKPDwKICAvVHlwZSAvQ2F0YWxvZwog
IC9QYWdlcyAyIDAgUgo+PgplbmRvYmoKCjIgMCBvYmoKPDwKICAvVHlwZSAvUGFnZXMKICAv
TWVkaWFCb3ggWyAwIDAgMjAwIDIwMCBdCiAgL0NvdW50IDEKICAvS2lkcyBbIDMgMCBSIF0K
Pj4KZW5kb2JqCgozIDAgb2JqCjw8CiAgL1R5cGUgL1BhZ2UKICAvUGFyZW50IDIgMCBSCiAg
L1Jlc291cmNlcyA8PAogICAgL0ZvbnQgPDwKICAgICAgL0YxIDQgMCBSIAogICAgPj4KICA+
PgogIC9Db250ZW50cyA1IDAgUgo+PgplbmRvYmoKCjQgMCBvYmoKPDwKICAvVHlwZSAvRm9u
dAogIC9TdWJ0eXBlIC9UeXBlMQogIC9CYXNlRm9udCAvVGltZXMtUm9tYW4KPj4KZW5kb2Jq
Cgo1IDAgb2JqICAlIHBhZ2UgY29udGVudAo8PAogIC9MZW5ndGggNDQKPj4Kc3RyZWFtCkJU
CjcwIDUwIFRECi9GMSAxMiBUZgooSGVsbG8sIHdvcmxkISkgVGoKRVQKZW5kc3RyZWFtCmVu
ZG9iagoKeHJlZgowIDYKMDAwMDAwMDAwMCA2NTUzNSBmIAowMDAwMDAwMDEwIDAwMDAwIG4g
CjAwMDAwMDAwNzkgMDAwMDAgbiAKMDAwMDAwMDE3MyAwMDAwMCBuIAowMDAwMDAwMzAxIDAw
MDAwIG4gCjAwMDAwMDAzODAgMDAwMDAgbiAKdHJhaWxlcgo8PAogIC9TaXplIDYKICAvUm9v
dCAxIDAgUgo+PgpzdGFydHhyZWYKNDkyCiUlRU9G
Any concerns?
Missing something or still need help? If you are already a customer or partner, you can contact us through the Help Center.