Package Settings Mapping In Rest
Saturday, October 7, 2023 at 03:38pmWe 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": ""
}
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.
Reply to: Package Settings Mapping In Rest
Monday, October 9, 2023 at 09:43amHi 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