This topic contains 3 replies, has 2 voices, and was last updated by  Duo_Liang 2 months, 1 week ago.

  • Author
    Posts
  • Participant
    asingla
    Member
    Member since: 11.01.2018
    Number of posts: 19

    Is it possible to break down the date into Year, Month and Date into 3 different columns using REST APIs?

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 290

    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 2 months, 1 week ago by  Duo_Liang.
    Participant
    asingla
    Member
    Member since: 11.01.2018
    Number of posts: 19

    Score

    0

    Hi Duo,

    Let me put my question again. What I want is while doing signature, signature date field is populated automatically.
    Is it possible that instead of date in format ‘ yyyy-MM-dd HH:mm:ss ‘GMT” in single field. We can have year, month and date populated in 3 different fields?

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 290

    Score

    0

    Hi singla,

    Sorry for missing your point. If you want to have three fields and after the signature approval is finished, the date would inject into the three fields automatically instead of the original timestamp, I am afraid we don’t have this feature so far. What you can do is modify the time format. You can send an email to support@esignlive.com, with the request and the format you want.

    Hope you find this reply helpful!


    Duo Liang
    OneSpan Junior Technical Evangelist

You must be logged in to reply to this topic.