Account


Earned badges

Achievement: Latest Unlocked

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

Hello how are you?

would it be possible via API to call this screen to capture the signature?

Replies Created

Reply to: Capture Signature

0 votes

Hello 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

0 votes

Hello 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


0 votes

I 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?
 


0 votes

I 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?

 


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 ago 57
Profile picture for user Duo_Liang

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 1 week ago 70
Profile picture for user Duo_Liang
1 9 months 2 weeks ago 38
Profile picture for user Duo_Liang

Hello how are you?

would it be possible via API to call this screen to capture the signature?

3 9 months 2 weeks ago 58
Profile picture for user Duo_Liang

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.