hmanne@vaultcr… | Posts: 1

Error updating package status to OPTED_OUT

0 votes

Hi 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"}


 


sukhman_kaur | Posts: 17

Reply to: Error updating package status to OPTED_OUT

0 votes

Hello,

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"   
}


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