sohansp

delegated signing with fromfile=true

0 votes

Below are the step we use for hand drawn signature capture using api

POST https://sandbox.esignlive.com/api/packages/<t-id>/documents/<document-id>/approvals/<approval-id>/sign
Accept: application/json
Authorization: Basic delegatee_key
Content-Type: application/json
{"id": "dummy", "fields": [{"value": "handdrawnStrings"}]}

this works well for hand drawn signature. but does not work for fromFile=true where signature should refer to uploaded signature file which we receive from /https://sandbox.esignlive.com/api/account/senders/<sender-id>/signature/image.

was not able to signConfirm the document when i used the uploaded image base64 as the value for handdrawnStrings, though approval was successfull

/signConfirm api output:
{
  "messageKey": "error.validation.verifyDocument.couldNotBeFlattened",
  "message": "Could not upload PDF document: it contains a syntax error preventing proper processing of its data.",
  "code": 400,
  "name": "Validation Error"
}

 

Any solution for this? Also any how this would work with delegated user?

 

 

 

 


Reply to: delegated signing with fromfile=true

0 votes

Hi Sohan,

 

Happy new year and thanks for your post!

Are you bulk signing on behalf of your sender? If that's the case, please first make sure the sender has image signature uploaded in their profile, then you can directly sign with below API and this will automatically apply the autograph:

POST https://sandbox.esignlive.com/api/packages/<t-id>/documents/<document-id>/approvals/<approval-id>/sign
Accept: application/json
Authorization: Basic delegatee_key
Content-Type: application/json
{"id": "approval-id"}

On the other hand, I doubt it's possible to apply image signature for external signers since they don't have autograph stored in their profile.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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