Does CorrectAndResendEnvelope SOAP API now support for REST API? -


we had migrated soap api rest api , trying "add/remove recipients on existing envelope".

we using correctandresendenvelope method , recipientcorrection property in soap api. there corresponding rest api method , property?

trying in rest:

docusignweb.correction correction = new docusignweb.correction();  correction.recipientcorrections[0] = new docusignweb.recipientcorrection();  correction.recipientcorrections[0].previoususername = poldname; correction.recipientcorrections[0].correctedusername = pnewname;  correction.recipientcorrections[0].previousemail = poldemail; correction.recipientcorrections[0].correctedemail = pnewemail;  correction.recipientcorrections[0].previousroutingorder = poldroutingorder; correction.recipientcorrections[0].correctedroutingorder = pnewroutingorder;  correction.recipientcorrections[0].resend = true; correction.recipientcorrections[0].resendspecified = true;  docusignweb.correctionstatus correctionstatus = _apiclient.correctandresendenvelope(correction); 

thanks response, new rest , keep getting bad request 400 response code below:

i have standard baseurl , authenticatestr other sample...

_recipientid, pnewemail, pnewname , pnewroutingorder passed in parameters procedures.

string envdef = "http://www.docusign.com/restapi\">" + "" + "" + "" + _recipientid + "" + "" + pnewemail + "" + "" + pnewname + "" + "" + pnewroutingorder + "" + "" + "" + "";

            url = baseurl + "/envelopes/" + penvelopeid + "/recipients";             request = (httpwebrequest)webrequest.create(url);             request.headers.add("x-docusign-authentication", authenticatestr);             request.contenttype = "application/xml";             request.accept = "application/xml";             request.contentlength = envdef.length;             request.method = "put";             // write body of request             byte[] body = system.text.encoding.utf8.getbytes(envdef);             stream datastream = request.getrequeststream();             datastream.write(body, 0, envdef.length);             datastream.close();             // read response             webresponse = (httpwebresponse)request.getresponse();             sr.close();              responsetext = "";             sr = new streamreader(webresponse.getresponsestream());             responsetext = sr.readtoend();  

yes, can using rest api well. please read rest api documentation explains how this:

docusign documentation

open either online version or download pdf rest api, , search "resend" , you'll see 2 pages show how modify existing envelopes , resend them. call you'll making looks this:

put https://{server}/restapi/{apiversion}/accounts/{accountid}/envelopes/{envelopeid}/recipients  x-docusign-authentication: <docusigncredentials><username>{name}</username><password>{password}</password><integratorkey>{integrator_key}</integratorkey></docusigncredentials> accept: application/json content-type: application/json {   "signers" :   [     {   "email": "new_email_address",   "name": "new_name",   "recipientid": "1"     }  ] } 

to resend envelope after modifying you'll want append url parameter url:

?resend_envelope=true 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -