I just voided several of my envelopes and had no problems, you must be doing something wrong. What's the return code when you make the request, are you receiving a 200 or something else? I suspect one of 4 common problems with your request:
- You are setting the request body wrong.
- You are doing a POST request instead of a PUT request.
- You are PUT-ing to the wrong URI.
- You are trying to void the wrong envelope.
The body for the void request is very simple so let's start with that. I just voided all of my envelopes with the following request body:
{
"status": "voided",
"voidedReason": "Void Testing..."
}
Next make sure you are doing a PUT request and not a POST, as is a common mistake, and also make sure you are PUT-ing to the correct URI (following is for DEMO environment):
https://demo.docusign.net/restapi/v2/accounts/{accountId}/envelopes/{envelopeId}
Of course, make sure you are using a valid envelopeId that is currently in status "In-Process" and that you check the correct corresponding envelope after the call. For more information on the void call see THIS LINK.