This topic contains 13 replies, has 3 voices, and was last updated by  jimmy 5 months, 1 week ago.

  • Author
    Posts
  • Participant
    myeoh
    Newbie
    Member since: 05.10.2017
    Number of posts: 2

    I am trying to create a package and include the Signing Method (personalCertificateSigning) for the roles in the package. Is there a way to send this as part of the package creation and not do this as an update, ie. needing to call PUT https://sandbox.e-signlive.com/api/packages/b12db619-d3bc-454d-a8d0-2496ba2acb77/roles/mT5yYC8AYUM8/verification

    What would the input look like? Can you confirm whether it is on the role or on the signer level?

    Thanks in advance!

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi,

    Unfortunately, personal signing certificate cannot be assigned during the package creation call. It will have to be a separate call following the package creation.


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    myeoh
    Newbie
    Member since: 05.10.2017
    Number of posts: 2

    Score

    0

    Thank you! I appreciate the clarification.

    Participant
    jimmy
    Member
    Member since: 02.11.2015
    Number of posts: 27

    Score

    0

    Hi Haris, is there any example of doing this flow? I’m currently trying to follow https://docs.esignlive.com/content/c_integrator_s_guide/rest_api/roles.htm#Assign for a package that is in Draft status but I’m getting

    {
        "messageKey": "error.notFound.signerVerificationNotFound",
        "message": "The specified signer verification cannot be found.",
        "code": 400,
        "name": "Validation Error"
    }
    

    I’m sending a PUT request with body application/JSON
    {
    “typeId”:”personalCertificateSigning”
    }

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi Jimmy,

    Personal Signing Certificate is not enabled by default. Have you asked support to enable this feature on your account?

    support@esignlive.com


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    jimmy
    Member
    Member since: 02.11.2015
    Number of posts: 27

    Score

    0

    Yes, I’m able to select Personal Certificate through the web UI.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Can you provide a package id for which you are experiencing this issue?

    Thanks,


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    jimmy
    Member
    Member since: 02.11.2015
    Number of posts: 27

    Score

    0

    Yeah, it’s TCp0ckXkcimxvOTqgLbMtAtsQJ0=.

    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Can you verify that you are not setting the verification twice? Because if personal signing certificate is already enabled for a signer, you will get an error if you try do it again for the same signer.


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    jimmy
    Member
    Member since: 02.11.2015
    Number of posts: 27

    Score

    0

    I created a package through the UI and didn’t send it for signing and then tried to modify the signing method.

    • This reply was modified 5 months, 1 week ago by  jimmy.
    Participant
    jimmy
    Member
    Member since: 02.11.2015
    Number of posts: 27

    Score

    0

    I’ve tried the following

    POST to https://sandbox.esignlive.com/api/packages
    With JSON body

    {
                    "name": "test create",
                    "type": "PACKAGE",
                    "language": "en",
                    "autocomplete": true,
                    "visibility": "ACCOUNT",
                    "status": "DRAFT",
                    "roles": [{
                                    "id": "ContractingOfficer",
                                    "name": "Contracting Officer",
                                    "index": "1",
                                    "reassign": false,
                                    "signers": [{
                                                    "auth": {
                                                                    "scheme": "NONE"
                                                    },
                                                    "delivery": {
                                                                    "download": false,
                                                                    "email": false
                                                    },
                                                    "id": "336744",
                                                    "email": "jimmy@gmail.com",
                                                    "firstName": "Jimmy",
                                                    "lastName": "Jimmy",
                                                    "phone": null,
                                                    "name": "myname"
                                    }]
                    }],
                    "documents": [{
                                    "name": "QA SMW_QA_2780.02",
                                    "description": "QA_SMW_QA_2780.02",
                                    "index": 0,
                                    "extract": true,
                                    "approvals": [{
                                                    "name": "ContractingOfficer",
                                                    "data": null,
                                                    "role": "ContractingOfficer",
                                                    "fields": [{
                                                                    "type": "SIGNATURE",
                                                                    "subtype": "FULLNAME",
                                                                    "extract": false,
                                                                    "left": 0,
                                                                    "width": 200,
                                                                    "height": 50,
                                                                    "top": 0,
                                                                    "page": 0,
                                                                    "extractAnchor": {
                                                                                    "index": 0,
                                                                                    "text": "31a.",
                                                                                    "width": 180,
                                                                                    "height": 30,
                                                                                    "anchorPoint": "TOPLEFT",
                                                                                    "leftOffset": 0,
                                                                                    "topOffset": 10,
                                                                                    "characterIndex": 0
                                                                    }
                                                    },
                                                    {
                                                                    "type": "INPUT",
                                                                    "subtype": "LABEL",
                                                                    "binding": "{approval.signed}",
                                                                    "extract": false,
                                                                    "left": 0,
                                                                    "width": 200,
                                                                    "height": 50,
                                                                    "top": 0,
                                                                    "page": 0,
                                                                    "value": "yyyy-MM-dd HH:mm:ss 'GMT'",
                                                                    "extractAnchor": {
                                                                                    "index": 0,
                                                                                    "text": "31c.",
                                                                                    "width": 80,
                                                                                    "height": 30,
                                                                                    "anchorPoint": "TOPLEFT",
                                                                                    "leftOffset": 0,
                                                                                    "topOffset": 10,
                                                                                    "characterIndex": 0
                                                                    }
                                                    }]
                                    }]
                    }],
                    "settings": {
                                    "ceremony": {
                                                    "events": {
                                                                    "complete": {
                                                                                    "dialog": false
                                                                    }
                                                    },
                                                    "layout": {
                                                                    "iframe": true,
                                                                    "header": {
                                                                                    "breadcrumbs": false,
                                                                                    "globalActions": {
                                                                                                    "confirm": false,
                                                                                                    "download": false,
                                                                                                    "hideEvidenceSummary": false,
                                                                                                    "saveAsLayout": false
                                                                                    },
                                                                                    "globalNavigation": false,
                                                                                    "sessionBar": false
                                                                    }
                                                    },
                                                    "hideLanguageDropdown": true
                                    }
                    }
    }
    

    PUT to https://sandbox.esignlive.com/api/packages/2aVHI39jIec3psEGVo2Ah0RnEcI=/roles/ContractingOfficer/verification also tried url encoding https://sandbox.esignlive.com/api/packages/2aVHI39jIec3psEGVo2Ah0RnEcI%3D/roles/ContractingOfficer/verification

    With JSON body

    {
                    "typeId":"personalCertificateSigning"
    }
    

    both give

    {
        "messageKey": "error.notFound.signerVerificationNotFound",
        "code": 400,
        "name": "Validation Error",
        "message": "The specified signer verification cannot be found."
    }
    
    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi Jimmy,

    Sorry I missed your earlier post. I will test with your payloads and get back to you tomorrow morning.


    Haris Haidary
    OneSpan Technical Consultant
    Keymaster
    Haris
    Jedi Master
    Member since: 05.11.2015
    Number of posts: 1450

    Score

    0

    Hi Jimmy,

    Try doing a POST instead of the PUT for the verification.


    Haris Haidary
    OneSpan Technical Consultant
    Participant
    jimmy
    Member
    Member since: 02.11.2015
    Number of posts: 27

    Score

    0

    Thanks Haris POST worked.

You must be logged in to reply to this topic.