Error updating package status to OPTED_OUT
Thursday, May 22, 2025 at 08:20pmHi Team,
We were wondering in what all scenarios we need to send "Comments" when we set the package status to OPTED_OUT ?
https://sandbox.e-signlive.ca/api/packages/<PACKAGE ID> Method - PUT
We are encountering following error on making an API call
{"message":"Invalid comment provided. Please provide a valid comment.","code":400,"messageKey":"error.validation.optOut.invalidComment","name":"Validation Error"}
Reply to: Error updating package status to OPTED_OUT
Thursday, May 29, 2025 at 08:08pmHello,
Please review the lifecycle status possible for a transaction : https://docs.onespan.com/v1/docs/changing-a-transactions-status
OPTED_OUT option has been removed from the Signer Experience.
In addition, you can utilize the "DECLINED" status. For this, you can use the below sample payload :
API Call: POST /api/packages/{packageId}
Payload :
{
"id":"{packageId}",
"messages":[
{
"from":{
"id":"{sender Role ID}"
},
"content":"{decline reason}",
"documents":[
{
"id":"default-consent" //the document you want to decline
}
]
}
],
"status":"DECLINED"
}