Single Signer Package
Monday, December 7, 2020 at 04:41pmHello,
I am interested in creating a package with one document, which should be signed by one signer only.
No other signature is required on this document, by another person.
After the document is signed by this single signer, the package should be marked as Completed (PACKAGE COMPLETE).
Is it possible? And if yes, how could I do it?
Thanks,
Michail
Reply to: Single Signer Package
Tuesday, December 8, 2020 at 08:49amHi Michail,
Thanks for your post! With OneSpan Sign RESTful API, you have the flexibility to create and tailor the package to your demands. To create a one document one signer package, you can refer to the JSON used in the Quick Start Guide or below example:
{
"roles": [
{
"id": "Role1",
"signers": [
{
"email": "[email protected]",
"firstName": "1.firstname",
"lastName": "1.lastname",
"company": "OneSpan Sign"
}
]
}
],
"documents": [
{
"approvals": [
{
"role": "Role1",
"fields": [
{
"page": 0,
"top": 100,
"subtype": "FULLNAME",
"height": 50,
"left": 100,
"width": 200,
"type": "SIGNATURE"
}
]
}
],
"name": "Test Document"
}
],
"name": "Example Package",
"type": "PACKAGE",
"language": "en",
"emailMessage": "",
"description": "New Package",
"autocomplete": true,
"status": "SENT"
}
Duo
Reply to: Single Signer Package
Tuesday, December 8, 2020 at 09:40amHello Duo,
Thanks for your response.
How could I do it in Java?
In the Quick Start Guide it is always two signers to be added in the package.
Thanks and Regards,
Michail
Reply to: Single Signer Package
Tuesday, December 8, 2020 at 09:51amSure, here you are!
DocumentPackage documentPackage = PackageBuilder.newPackageNamed("Test Package Java SDK")
.withSigner(SignerBuilder.newSignerWithEmail("[email protected]")
.withCustomId("Signer")
.withFirstName("SignerFirstName")
.withLastName("SignerLastName"))
.withDocument(DocumentBuilder.newDocumentWithName("sampleAgreement")
.withId("document1")
.fromFile("your_file_path")
.withSignature(SignatureBuilder.signatureFor("[email protected]")
.withId(new SignatureId("signature1"))
.onPage(0)
.atPosition(175, 165)))
.autocomplete(true)
.build();
PackageId packageId = eslClient.createPackageOneStep(documentPackage);
eslClient.sendPackage(packageId);
Duo
Reply to: Single Signer Package
Monday, March 15, 2021 at 03:29amHello Duo,
As I see in your last answer, you have set the "autocomplete" of the DocumentPackage to TRUE. Does it mean that after the signature of the single signer, the status of the package will be set to completed?
If yes, what is the notification which will be sent by OneSpan in this case?
Normally, when we have more than one signers, we get the SIGNER_COMPLETE once the 1st signer signs, and the PACKAGE_COMPLETE when the last signer signs.
What is the notification in this case, for a single signer only?
Thanks,
Michail
Reply to: Hello Duo, As I see in…
Monday, March 15, 2021 at 08:26amHi Michail,
For your questions:
- yes, with "autoComplete" on, the package will be automatically set to completed once the single signer has completed signing.
- both "SIGNER_COMPLETE" and "PACKAGE_COMPLETE" events will be triggered.
Duo
Reply to: Single Signer Package
Wednesday, May 26, 2021 at 03:05amHello Duo,
As discussed earlier, I tried to create a package for a single signer (a customer), using Java.
The package will be created for the account cmcicnor@XXX in US1 Sandbox.
Unfortunately, when I try to create the package, I get the following error:
No role found for signer email CMCICESIGN@XXX
I don't want to use the CMCICESIGN@XXX as a signer. Do you have any idea why it fails?
PS. I replaced the domain of the emails with XXX
Thanks,
Michail
Reply to: Hello Duo, As discussed…
Wednesday, May 26, 2021 at 08:07amHi Michail,
Try to use createPackage() function instead of createPackageOneStep() and see if this solves the issue:
PackageId pkgId = eslClient.createPackage(pkg);
If this doesn't make any difference, please share the account email and the codes around package building to [email protected] so that I can have a closer look at your package structure.
Duo
Reply to: Single Signer Package
Wednesday, May 26, 2021 at 08:11amHi Duo,
This is what I have used:
EslClient eslClient = ESLCreatePackageRequest.getESLClient(epvAccountMapping.getApiKey());
DocumentPackage documentPackage = createPackageRequest.buildPackage(epvDynamics, epvAccountMapping);
PackageId packageId = eslClient.createPackage(documentPackage);
Do you see something wrong?
Regards,
Michail
Reply to: Single Signer Package
Wednesday, May 26, 2021 at 08:35amHi Michail,
"No role found for signer email xxx" is typically caused by the mismatch between the signer list and the signature email. Please make sure the signer list contains all the emails or the code didn't mistakenly pass in a wrong email.
DocumentPackage documentPackage = PackageBuilder.newPackageNamed("Test Package Java SDK")
.withSigner(SignerBuilder.newSignerWithEmail("cmcicnor@XXX")
.withCustomId("Signer1")
.withFirstName("SignerFirstName")
.withLastName("SignerLastName"))
.withDocument(DocumentBuilder.newDocumentWithName("sampleAgreement")
.fromFile("your_file_path")
.withSignature(SignatureBuilder.signatureFor("CMCICESIGN@XXX")
.onPage(0)
.atPosition(175, 165)))
.build();
PackageId packageId = eslClient.createPackage(documentPackage);
Duo
Reply to: Single Signer Package
Wednesday, May 26, 2021 at 11:58amHello Duo,
Thank you! I have fixed it.
As described by you above, I set the "autoComplete" to "on". For single signer packages, you said that both "SIGNER_COMPLETE" and "PACKAGE_COMPLETE" events will be triggered.
Unfortunately, for my package, I have only received the "SIGNER_COMPLETE".
My package ID is PY70PlVW6zGnUB5rMupPuu1SG4g= in US1 Sandbox.
Could you please have a look?
Thanks and Regards,
Michail
Reply to: Hello Duo, Thank you! I…
Wednesday, May 26, 2021 at 05:46pmHi Michail,
Just checked with our support team and seems your package "PY70PlVW6zGnUB5rMupPuu1SG4g=" has autocompleted : false and the package status is still SENT. Did you assign any required attachment to your signer? (Required attachment will force sender to accept manually)
Duo
Reply to: Single Signer Package
Thursday, May 27, 2021 at 02:25amMany thanks Duo!
Yes, I had some required attachments in this package id.
I tried again without required attachments and it worked as expected. I got the SIGNER_COMPLETE and the PACKAGE_COMPLETE.
Best Regards
Michail