API request into equivalent SDK code
Monday, August 13, 2018 at 08:09am
HI All,
Can you help me to convert the below API request into equivalent SDK code to create the package(with one document file as attachment to sign off):
{
"name": "packagename",
"status": "SENT",
"roles": [
{
"id": "signer1",
"index": "1",
"type": "SIGNER",
"signers": [
{
"email": "[email protected]",
"firstName": "TestUser1",
"lastName": "TestUser1",
"delivery": {
"email": false,
"provider": false,
"download": false
}
}
]
},
{
"id": "signer2",
"index": "1",
"type": "SIGNER",
"signers": [
{
"email": "[email protected]",
"firstName": "TestUser2",
"lastName": " TestUser2",
"delivery": {
"email": false,
"provider": false,
"download": false
}
}
]
},
{
"id": "employee",
"index": "0",
"type": "SIGNER",
"signers": [
{
"email": "[email protected]",
"firstName": "Employee1",
"lastName": " Employee1",
"delivery": {
"email": false,
"provider": false,
"download": false
}
}
]
}
],
"documents": [
{
"extract": true,
"name": "SaskatchewanLoanProtectionPlan",
"index": 0,
"fields": [
{
"FieldName": "CUSTNUM",
"FieldValue": "2321495"
},
{
"FieldName": "CUSTBR",
"FieldValue": "2546"
},
{
"FieldName": "CUSTSURNAME",
"FieldValue": "Houlihan"
}
]
}
]
}
Thanks in advance.
Reply to: API request into equivalent SDK code
Monday, August 13, 2018 at 08:41am“deliveryâ€: {“emailâ€: false,“providerâ€: false,“downloadâ€: false}
this part is set to false by default I think. If you are using Text Injection, please make sure the pdf form property name is in consistent with your field name. And if you are applying Document Extraction,.enableExtraction()
function is enough to tell OneSpan Sign the info of your approvals and fields. But if you are using other kinds of extraction, please do the corresponding changes in the code. Hope this could help you! DuoReply to: API request into equivalent SDK code
Tuesday, August 14, 2018 at 02:32amReply to: API request into equivalent SDK code
Tuesday, August 14, 2018 at 05:12amReply to: API request into equivalent SDK code
Tuesday, August 14, 2018 at 06:30am