Account
Earned badges
Achievement: Latest Unlocked
Topics Started
Approved Answers
Replies
Preferences
Topic Started
Topics |
---|
I'm trying to send a new document in a package that has the status: Draft But I get the error response |
Hi there, I'm trying to delete a document in python but I'm getting this return: |
Hello, I need to send multiple documents, I saw this post: https://community.onespan.com/forum/adding-multiple-documents-meta-data And in this post it informs that it would not be possible, but it |
Hi, I am sending the following request: |
Hello how are you? would it be possible via API to call this screen to capture the signature? |
Replies Created
Reply to: Capture Signature
Monday, July 24, 2023 at 03:08pmHello Duo Liang, thanks for the reply!!
I made the request, but when I implemented it on my page, it only displayed "Succesfully created transaction"
I needed to open the signature page, inside my page
Reply to: Capture Signature
Monday, July 24, 2023 at 03:09pmHello Duo Liang, thanks for the reply!!
I made the request, but when I implemented it on my page, it only displayed "Succesfully created transaction"
I needed to open the signature page, inside my page
Reply to: Is it possible to send multiple documents with metadata?
Monday, July 31, 2023 at 01:19pmI need to send via python, but the request is returning 500,
I am sending this way:
files = {
"document1": ("file1.pdf", open("doc1.pdf", "rb").read(), 'application/pdf'),
"document2": ("file2.pdf", open("doc2.pdf", "rb").read(), 'application/pdf'),
}
data = {"Payload": json.dumps(
{"roles": [
{"id": "Role1", "signers": [
{"email": "[email protected]", "firstName": "Matheus", "lastName": "teste", "company": "JumpLabel"}
]
},
{"id": "Role2", "signers": [{"email": "[email protected]", "firstName": "Matheus ", "lastName": "teste", "company": "Jump"}]}],
"documents": [
{"approvals": [
{"role": "Role1", "fields": [
{"page": 0, "top": 0, "subtype": "FULLNAME", "height": 50, "left": 0, "width": 200, "type": "SIGNATURE"}]}],
"name": "document1.pdf", "id": 51},
{"approvals": [{"role": "Role2", "fields": [
{"page": 0, "top": 0, "subtype": "FULLNAME", "height": 50, "left": 0, "width": 200, "type": "SIGNATURE"}]}],
"name": "document1.pdf", "id": 51}],
"name": "Teste", "type": "PACKAGE", "language": "en", "emailMessage": "Segue para assinatura o acordo de serviço.", "description": "Envio de documento para assinatura", "autocomplete": True, "status": "DRAFT"}
)}
headers = {
'authorization': "api key",
'Content-Type': 'multipart/form-data'
}
response = requests.post(url, files=files, data=data, headers=headers)
in requests, sending as files=files and payload data=data?
Reply to: Is it possible to send multiple documents with metadata?
Monday, July 31, 2023 at 01:36pmI got the return <Response [500]>
I changed the ids, and the file dictionary:
files = {
"file": ("file1.pdf", open("doc1.pdf", "rb").read(), 'application/pdf'),
"file": ("file2.pdf", open("doc2.pdf", "rb").read(), 'application/pdf')
}
data = {"Payload": json.dumps(
{"roles": [
{"id": "Role1", "signers": [
{"email": "[email protected]", "firstName": "Matheus", "lastName": "Teste", "company": "JumpLabel"}
]
},
{"id": "Role2", "signers": [{"email": "[email protected]", "firstName": "Matheus ", "lastName": "Teste", "company": "Jump"}]}],
"documents": [
{"approvals": [
{"role": "Role1", "fields": [
{"page": 0, "top": 0, "subtype": "FULLNAME", "height": 50, "left": 0, "width": 200, "type": "SIGNATURE"}]}],
"name": "document1.pdf", "id": 50},
{"approvals": [{"role": "Role2", "fields": [
{"page": 0, "top": 0, "subtype": "FULLNAME", "height": 50, "left": 0, "width": 200, "type": "SIGNATURE"}]}],
"name": "documen2.pdf", "id": 51}],
"name": "Teste", "type": "PACKAGE", "language": "en", "emailMessage": "Segue para assinatura o acordo de serviço.", "description": "Envio de documento para assinatura", "autocomplete": True, "status": "DRAFT"}
)}
headers = {
'authorization': "api key",
'Content-Type': 'multipart/form-data'
}
response = requests.post(url, files=files, data=data, headers=headers) is this part correct?
Reply to: Is it possible to send multiple documents with metadata?
Monday, July 31, 2023 at 02:42pmheaders = {
'authorization': "Basic api_key"
}
I removed it, but now the return is now: <Response [400]>
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
Hi there, I'm trying to delete a document in python but I'm getting this return: |
2 | 9 months 1 week ago | 58 | |
Hello, I need to send multiple documents, I saw this post: https://community.onespan.com/forum/adding-multiple-documents-meta-data And in this post it informs that it would not be possible, but it |
8 | 9 months 2 weeks ago | 70 | |
Hi, I am sending the following request: |
1 | 9 months 3 weeks ago | 38 | |
Hello how are you? would it be possible via API to call this screen to capture the signature? |
3 | 9 months 3 weeks ago | 58 |