Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics

I'm trying to place signature using the text anchors in Payload in API Body by referring the blog(OneSpan Sign How To: Usi

could you please help me why i'm getting this error, here i want to request for signing only one document and one signer. Attached the file for which i'm testing.

 

{

Replies Created

Hi Duo_Liang,

Currently trying this in Postman

After adding the name "File" to the Key where the selected document is, this worked. But, the Signature anchor was positioned incorrectly.

And also I want to add 2 Signers to the document exactly where the people have to sign (Requester Signature &  Client Signature), i dont want to pass the measurement parameters in API body since documents are dynamic.


Reply to: Tried Text Anchors but getting Error 400

0 votes

as you suggested it worked thanks. currently the document is falling into drafts, instead how to trigger the approval process?

 

{

"documents": [

{

"approvals": [

{

"id": "ClientSignature",

"role": "Signer1",

"fields": [

{

"subtype": "FULLNAME",

"extract": false,

"extractAnchor": {

"text": "Client Signature",

"index": 0,

"width": 150,

"height": 50,

"anchorPoint": "TOPRIGHT",

"characterIndex": 0,

"leftOffset": 0,

"topOffset": 0

},

"type": "SIGNATURE",

"name": "ExampleSignatureId"

}

],

"name": ""

},

{

"id": "RequesterSignature",

"role": "Signer2",

"fields": [

{

"subtype": "FULLNAME",

"extract": false,

"extractAnchor": {

"text": "Requester Signature",

"index": 0,

"width": 150,

"height": 50,

"anchorPoint": "TOPRIGHT",

"characterIndex": 0,

"leftOffset": 0,

"topOffset": 0

},

"type": "SIGNATURE",

"name": "ExampleSignatureId"

}

],

"name": ""

}

],

"id": "sample-contract",

"name": "Test Document"

}

],

"status": "DRAFT",

"type": "PACKAGE",

"roles": [

{

"id": "Signer1",

"type": "SIGNER",

"signers": [

{

"email": "[email protected]",

"firstName": "John",

"lastName": "Smith",

"id": "Signer1"

}

],

"name": "Signer1"

},

{

"id": "Signer2",

"type": "SIGNER",

"signers": [

{

"email": "[email protected]",

"firstName": "Mary",

"lastName": "Doe",

"id": "Signer2"

}

],

"name": "Signer2"

}

],

"name": "Example Package"

}


Subscriptions

Topics Replies Freshness Views Users

I'm trying to place signature using the text anchors in Payload in API Body by referring the blog(OneSpan Sign How To: Usi

7 10 months 1 week ago 49
Profile picture for user Duo_Liang

could you please help me why i'm getting this error, here i want to request for signing only one document and one signer. Attached the file for which i'm testing.

 

{

3 10 months 1 week ago 40
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.