i am trying to set a document status as "Declined" / "Completed" through API call however i a mgetting back an error mentioning only "sent" created or voided or the valid status
Can someone help me if i am making any error in the request
https://demo.docusign.net/restapi/v2/accounts//envelopes/
{"status":"completed"} OR {"status":"declined","voidedReason":"test"}
But getting the follwoing response back from DOCUSIGN { errorCode: "INVALID_REQUEST_PARAMETER" message: "The request contained at least one invalid parameter. Value for 'status' must be 'created', 'sent' or 'voided'." }