Score
0
Hi asingla,
I am afraid we don’t have a direct API call for retrieving date field value. But you can build this capability in your own system. First, you can use following call to retrieve the approval info where your date field is binding to:
GET /api/packages/{packageId}/documents/{documentId}/approvals/{approvalId}
The response payload could look like this:
{
"role": "66da473d-3717-4ff7-bf85-f7f134e73be4",
"id": "BYT22iCrsCYD",
"optional": false,
"accepted": "2018-07-10T14:47:58Z",
"signed": "2018-07-10T14:47:59Z",
"data": null,
"fields": [
{
"binding": "{approval.signed}",
"validation": null,
"id": "TCb173e6x08A",
"page": 0,
"subtype": "LABEL",
"height": 37,
"width": 165,
"left": 458,
"top": 287,
"extract": false,
"extractAnchor": null,
"data": null,
"type": "INPUT",
"value": "yyyy-MM-dd HH:mm:ss 'GMT'",
"name": ""
},
{
"binding": null,
"validation": null,
"id": "k1VrxYhqUm0Q",
"page": 0,
"subtype": "FULLNAME",
"height": 37,
"width": 165,
"left": 161,
"top": 287,
"extract": false,
"extractAnchor": null,
"data": null,
"type": "SIGNATURE",
"value": "",
"name": ""
}
],
"name": ""
}
As you noticed, the “accepted” attribute is the date stamp shown on the document.( not signed attribute)
Then you can deal with the String with the programming language your system is using to retrieve the Year/Month/Date.
Hope this reply could help you!
Duo Liang
OneSpan Junior Technical Evangelist
-
This reply was modified 7 months, 2 weeks ago by
Duo_Liang.