anilsha

Package Settings Mapping In Rest

0 votes

We have below settings that we are using in SOAP now we are migrating to REST.
Please provide us exact mappings to REST service for below fields

"setting": {      "declineReaons": [       "string"      ],

      "optOutReaons": [        "string"      ],

      "enableDecline": "",

      "enableOptOut": "",

      "redirectURL": ""

    }

Image removed.

We have mapped as below
new Settings
                {
                    Ceremony = new Ceremony
                    {
                        DeclineReasons = eSignPackage.Setting.DeclineReaons,
                        OptOutReasons = eSignPackage.Setting.OptOutReaons,
                        DisableDeclineOther = false,
                        DisableOptOutOther = false,
                        DeclineButton = bool.Parse(eSignPackage.Setting.EnableDecline),
                        OptOutButton = bool.Parse(eSignPackage.Setting.EnableOptOut),
                        HandOver = new HandOver
                        {
                            Text = "",
                            Title = "",
                            Href = eSignPackage.Setting.RedirectURL
                        }

                    }
                };

 

Please advise incase of any issue in the above.


Approved Answer

Reply to: Package Settings Mapping In Rest

0 votes

Hi Anilsha,

 

Thanks for your post! A quick reminder is that the opt-out option has been deprecated, signers should use the decline button instead. Below is the raw package JSON covering all these settings:

{
  "settings": {
    "ceremony": {
      "declineButton": true,
      "declineReasons": ["Reason1","Reason2","Reason3"],
      "disableDeclineOther": false,
      "handOver": {
        "href": "https://www.google.com",
        "text": "Back to Join",
        "title": "Click here to go back to Join",
        "autoRedirect": true,
        "parameters": [
          "SIGNER",
          "STATUS",
          "PACKAGE"
        ]
      }
    }
  }
}

 

Besides the opt-out related settings, your mapping looks fine to me.

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


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