tehpaoliu

Creating package using REST API Text Tag not working

0 votes
Hi All, I followed instructions provided in https://developer.esignlive.com/guides/feature-guides/text-tags-extraction/ "REST API" tab Also "Code Share" hyperlink does not have any code sample to download. Using postman REST API client I am able to create package in esignlive but for some reason, it does not recognize Signature Text Tag for signing so I cannot send the package for signing Here is what I used for in Demo.docx {{esl:Signer1:capture:size(400,50)}} Here is payload that I used from the above link. Also I have attached Demo.docx that I am using { "documents": [ { "id": "Demo", "name": "Test Document", "extract": true, "data": { "esl_doc_extract_type": 1 } } ], "status": "DRAFT", "type": "PACKAGE", "roles": [ { "id": "signer1", "type": "SIGNER", "signers": [ { "email": "[email protected]", "firstName": "John", "lastName": "Smith", "id": "signer1" } ], "name": "signer1" } ], "name": "Text Tags Example Package" } Is the correct way to create package with Placeholder using REST API Any help will be appreciated. Thank you -Teh

Attachments
Demo.docx12.9 KB

Reply to: Creating package using REST API Text Tag not working

0 votes
Hi there, Ids care case sensitive in eSignLive. In your payload, you defined "signer1" as the id of your signer but in your document you have "Signer1". Simply make the correction in either your payload or document and it should be working.
Haris Haidary OneSpan Technical Consultant

Reply to: Creating package using REST API Text Tag not working

0 votes
Thanks Haris for quick response it is working! now. Also I noticed that in the package my name teh.p.liu get added as "Myself" is there any way to remove it using API or not create it at all. I just need Recipient Name I have attached screen shot

Attachments

Reply to: Creating package using REST API Text Tag not working

0 votes
Yes, you will need to add the "senderVisible" field in your payload.
{
  "documents": [
    {
      "id": "Demo",
      "name": "Test Document",
      "extract": true,
      "data": {
        "esl_doc_extract_type": 1
      }
    }
  ],
  "status": "DRAFT",
  "type": "PACKAGE",
  "roles": [
    {
      "id": "signer1",
      "type": "SIGNER",
      "signers": [
        {
          "email": "[email protected]",
          "firstName": "John",
          "lastName": "Smith",
          "id": "signer1"
        }
      ],
      "name": "signer1"
    }
  ],
  "name": "Text Tags Example Package",
  "data": {
    "senderVisible": false
  }
}
Haris Haidary OneSpan Technical Consultant

Reply to: Creating package using REST API Text Tag not working

0 votes
THANK YOU HARIS you have been a great help. Your solution resolved my issue.

Reply to: Creating package using REST API Text Tag not working

0 votes
My pleasure :)
Haris Haidary OneSpan Technical Consultant

Reply to: Creating package using REST API Text Tag not working

0 votes
I'm attempting to do something similar with the REST API, but the service reports that I must define approvals. Do I need to specify a particular version?

Reply to: Creating package using REST API Text Tag not working

0 votes
It looks like you're attempting to send a package without any signatures defined. Can you share your json payload (copy-paste it using the
 tags) along with your documents so I can have a look?
Haris Haidary OneSpan Technical Consultant

Reply to: Creating package using REST API Text Tag not working

0 votes
{"status":"SENT", "documents":[{ "id":"Application", "description":"Application.pdf", "name":"Application.pdf", "extract":true, "data":{ "esl_doc_extract_type":1 } }], "roles":[{ "signers":[{ "name":"OWNER1", "auth":{ "scheme":"NONE", "challenges": [] }, "id":"OWNER1", "language":"en", "title":"OWNER", "firstName":"Ken", "lastName":"Hartness", "email":"[email protected]", "company":"Hartness Inc.", "phone":"2815834432" }], "name":"OWNER1", "index":1, "id":"OWNER1", "type":"SIGNER" }], "visibility":"ACCOUNT", "notaryRoleId":null, "settings":{ "ceremony":{ "optOutReasons":["Signing application with agent", "Mailing application"], "maxAuthFailsAllowed":3, "handOver":{ "title":"Signed Merchant Application", "text":"Welcome!", "href":"https://www.merchantfoundry.com" }, "documentToolbarOptions":{ "downloadButton":true }, "hideLanguageDropdown":true, "hideCaptureText":true, "declineButton":true, "optOutButton":true, "hideWatermark":false } }, "type":"PACKAGE", "autocomplete":true, "trashed":false, "description":"MCPS Application", "name":"MCPS Application Package", "due":"2018-04-30T00:00:00Z", "language":"en", "completed":null, "data": { "senderVisible": false } }

Attachments
test-2.pdf222.76 KB

Reply to: Creating package using REST API Text Tag not working

0 votes
Looking at your pdf, you need to make sure that the text tags are not broken apart on different lines. See attachment.
Haris Haidary OneSpan Technical Consultant

Attachments

Reply to: Creating package using REST API Text Tag not working

0 votes
I reduced the date to 1-point font so it is entirely on one line. Still receiving this response: {"messageKey":"error.validation.sendPackage.noApprovals","entity":null,"technical":null,"packageId":null,"message":"Cannot send package without approvals.","code":400,"name":"Validation Error"}

Reply to: Creating package using REST API Text Tag not working

0 votes
I've updated your document to make it work using text tags. Please make sure that there aren't any typos in the text tags. Otherwise, it will not work.
Haris Haidary OneSpan Technical Consultant

Reply to: Creating package using REST API Text Tag not working

0 votes
curl -H "Authorization: Basic $1" -H "Accept: application/json; esl-api-version=11.12" -X POST $2 -k -F [email protected]$3 -F [email protected]$4 > $5 Your PDF (or mine) with the JSON I included, earlier, produces the following response: { "messageKey":"error.validation.sendPackage.noApprovals", "entity":null, "technical":null, "packageId":null, "message":"Cannot send package without approvals.", "code":400, "name":"Validation Error" }

Reply to: Creating package using REST API Text Tag not working

0 votes
Can you share a package id so I can have a look at your account with our support team?
Haris Haidary OneSpan Technical Consultant

Reply to: Creating package using REST API Text Tag not working

0 votes
7cc86556-171e-4ed4-b498-b9487a353423 We've never used anything other than position-specific signatures, but as the forms are updated, this is becoming impractical. If text tags must be enabled in the account, then that could be the problem. We could simply interpret the text as anchors, but text tags sounded so much easier.

Reply to: Creating package using REST API Text Tag not working

0 votes
Ah I see what's going on. Your account is still on the classic environment. The text tag extraction feature is only available on the new environments (https://sandbox.esignlive.com). Please create a new account there and then send an email to [email protected] to have the text tag extraction feature enabled.
Haris Haidary OneSpan Technical Consultant

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off