Ryan_Coleman

updating a signer via REST API

0 votes
Guys, I am trying to update a signer via the rest api call and it doesn't appear to be working. When I do the call in postman, it returns the response payload that is expected but it doesn't update the information. I do not get any errors and everything seems like it worked just fine. Here is a basic example of what I am sending up.
{
  "type": "SIGNER",
  "signers": [
    {
      "email": "[email protected]",
      "phone" : "+15127xxxxxxx",
      "firstName": "JAMES",
      "lastName": "SMITH",
      "auth": null
    }
  ]
}
Am I doing something wrong?

Reply to: updating a signer via REST API

0 votes
Hi Ryan, First, please make sure your package is in "DRAFT" status, and your payload should work except setting the "phone." If you want to use phone number as an authentication method, you can set it in this way:
{
  "type": "SIGNER",
  "signers": [
    {
      "email": "[email protected]",
      "auth":{
            "challenges":[
               {
                  "question":"5145711111"
               }
            ],
            "scheme":"SMS"
         },
      "firstName": "JAMES",
      "lastName": "SMITH"
    }
  ]
}
But if you just want to store it somewhere, the "phone" attribute can't be modified it seems, so as a workaround, you can put your information in the data attribute as an "Package Attribute", here's the guidance. Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: updating a signer via REST API

0 votes
Duo, Thanks for the response. I was forgetting the DRAFT mode step.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off