Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

HI!

I would like to ask if exists a way to sent an SMS with the transaction created instead of redirect from the current site.

There is any specification about the fields that came on the response body of this service?

Replies Created

Reply to:

0 votes

Hi Duo!

The main difference between your snippet and my actual code it's I was creating the DocumentPackage like this:

private DocumentPackage createPackage(String name, Signer signer, Document document, DocumentPackageSettings settings) {
        PackageBuilder builder = PackageBuilder.newPackageNamed(name).withSigner(signer).withDocument(document).withSettings(settings).autocomplete(true);
        return builder.build();
}

Then:

PackageId packageId = client.getTemplateService().createPackageFromTemplate(new PackageId("Ug_EIC8CCV8md-Jc7PJCHkEnrx0="), documentPackage);
client.uploadDocuments(packageId, document);

The document that I'm uploading it's created on the app like this (from a file):

DocumentBuilder builder = DocumentBuilder.newDocumentWithName(name).fromStream(input, DocumentType.PDF) .withExtractionType(ExtractionType.TEXT_TAGS).enableExtraction();

The signer is created like this:

 

SignerBuilder builder = SignerBuilder.newSignerWithEmail(email).withFirstName(firstName).withLastName(lastName) .withCustomId("Signer1").withAttachmentRequirement(atteachment1Req()) .withAttachmentRequirement(attachment2Req()) .withSmsSentTo(phoneNumber); .replacing(new Placeholder("901da53c-9bd8-43ff-8b63-460a5cccd95f"));

 

And has this to locate the signature for the Signer:

signature position at document

Maybe I need to change the order or to modify my custom document creation.
Not all the use cases have to use the template.

------

The transaction that I've used is on the sandbox:
TemplateID: Ug_EIC8CCV8md-Jc7PJCHkEnrx0=
PackageID: SouOnYztjTy2RvoD6n_TPh2gPKA=

 

Thanks for your response.


0 votes

Hi Duo!

I was facing a similar issue and take the AttachmentRequirement creation using a custom id.

In what state should the transaction be to get the attachement downloaded by the custom id?

I've created a transaction with id t-7Yt2FLAruJWcik9dd2ESFV28s=, but when try to download, get an 404 exception:

com.silanis.esl.sdk.internal.RequestException: HTTP GET on URI https://sandbox.esignlive.com/api/packages/t-7Yt2FLAruJWcik9dd2ESFV28s=/attachment/41ee5ebe-01b1-432c-b915-183d5fb6ef67popa resulted in response with status code: [404, Not Found]. Optional details: {"technical":"Attachment requirement with uid [41ee5ebe-01b1-432c-b915-183d5fb6ef67popa] doesn't exist.","messageKey":"error.notFound.attachmentRequirementNotFound","message":"[error.notFound.attachmentRequirementNotFound]","code":404,"name":"Resource Not Found"}

Thanks in advance.

RC.


0 votes

Hi Duo!

I've do this and it's work. I was strugling a bit because I was misunderstanding this but happens to work. You can see it here in this transaction: dJU2HhLmJuzRKtrtgQybs1s5uBo=.

Now, I know there the SDK have a method to download all signed docs. Exists anyway to loop over it, one by one?

 

Thanks in advance.


Subscriptions

Topics Replies Freshness Views Users

HI!

I would like to ask if exists a way to sent an SMS with the transaction created instead of redirect from the current site.

9 1 year 5 months ago 81
5 1 year 6 months ago 63

There is any specification about the fields that came on the response body of this service?

1 2 years 2 months ago 105

Hi,

Could you please let me know how to download a attachment via JAVA SDK call when the package is complete?

 

Thanks

Wendy

8 1 year 7 months ago 71

Code Share

This user has not submitted any code shares.