Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Preferences
Replies
Topics Started
Topic Started
Topics |
---|
Hi,
How to send multiple document using API when creating the package?
Thanks in Adv.
|
Replies Created
Reply to: Unknown Error While creating package
Tuesday, September 11, 2018 at 04:35amHi Duo ,
I completely understand that , dashes in the beginning are consistent for all the boundary tags and there are only two dashes in the end.It the editor which is not showing it properly .Please help me . I
Reply to: Unknown Error While creating package
Tuesday, September 11, 2018 at 04:37amHi Duo ,
I have also attached another request as an image.
Reply to: Fetching SignerDoc Url
Friday, February 15, 2019 at 02:19amHi duo,
I get that, I need to call extra Api for getting signing url.
but I am sending the document with signing ceremony setting inPerson = true.
I need the InPerson signing url, So that the redirecting url take me to the doc where all the signers dropdown will be there on the right corner of the doc.
since i am sending multiple document with multiple roles , I am not able to understand witch roleId to use
Reply to: Fetching SignerDoc Url
Friday, February 15, 2019 at 11:46pmHi Duo ,
While creating a package , how can we add multiple signers for a document, request you for request json structure .
Also , once , multiple signers are added for a document , how can we create a signing url for the same package in which all the signers can be listed and they can sign
in person.
we are calling rest api and not . net sdk.
Thanks
Reply to: Sending Multiple Document using webclient in c# not working
Sunday, February 10, 2019 at 03:49amHi duo,
I am doing the same thing but getting 400 bad request.
Please find the attached text file as well as sample code below for the package Api request .
this is working good for sending a single document. but getting error when sending multiple doc.
using (WebClient wc = new WebClient())
{
var URI = new Uri("https://sandbox.esignlive.com/api/packages");
var MULTIPART_BOUNDARY = "----WebKitFormBoundary7MA4YWxkTrZu0gW";
wc.Headers["Content-Type"] = "multipart/form-data; boundary=" + MULTIPART_BOUNDARY;
wc.Headers["Accept"] = "application/json";
wc.Headers["Authorization"] = "Basic API_KEY";
var postData = new StringBuilder();
string jsonString = "{\n" +
" \"documents\":[\n" +
" {\n" +
" \"approvals\":[\n" +
" {\n" +
" \"id\":\"Signature1\",\n" +
" \"role\":\"Role1\",\n" +
" \"fields\":[\n" +
" {\n" +
" \"page\":0,\n" +
" \"top\":300,\n" +
" \"subtype\":\"FULLNAME\",\n" +
" \"optional\":true,\n" +
" \"height\":50,\n" +
" \"left\":100,\n" +
" \"width\":200,\n" +
" \"type\":\"SIGNATURE\",\n" +
" \"name\":\"ExampleSignature\"\n" +
" }\n" +
" ],\n" +
" \"name\":\"\"\n" +
" }\n" +
" ],\n" +
" \"id\":\"document1\",\n" +
" \"name\":\"ParallelPrograming\"\n" +
" },\n" +
" {\n" +
" \"approvals\":[\n" +
" {\n" +
" \"id\":\"Signature2\",\n" +
" \"role\":\"Role2\",\n" +
" \"fields\":[\n" +
" {\n" +
" \"page\":0,\n" +
" \"top\":300,\n" +
" \"subtype\":\"FULLNAME\",\n" +
" \"height\":50,\n" +
" \"left\":100,\n" +
" \"width\":200,\n" +
" \"type\":\"SIGNATURE\",\n" +
" \"name\":\"ExampleSignature\"\n" +
" }\n" +
" ],\n" +
" \"name\":\"\"\n" +
" }\n" +
" ],\n" +
" \"id\":\"document2\",\n" +
" \"name\":\"ParallelPrograming - Copy\"\n" +
" }\n" +
" ],\n" +
" \"status\":\"SENT\",\n" +
" \"type\":\"PACKAGE\",\n" +
" \"roles\":[\n" +
" {\n" +
" \"id\":\"Role1\",\n" +
" \"type\":\"SENDER\",\n" +
" \"signers\":[\n" +
" {\n" +
" \"id\":\"Signer1\",\n" +
" \"email\":\"[email protected]\",\n" +
" \"firstName\":\"rahul\",\n" +
" \"lastName\":\"rathore\"\n" +
" }\n" +
" ],\n" +
" \"name\":\"Role1\"\n" +
" },\n" +
" {\n" +
" \"id\":\"Role2\",\n" +
" \"type\":\"SIGNER\",\n" +
" \"signers\":[\n" +
" {\n" +
" \"id\":\"Signer2\",\n" +
" \"email\":\"[email protected]\",\n" +
" \"firstName\":\"Crm\",\n" +
" \"lastName\":\"Next\"\n" +
" }\n" +
" ],\n" +
" \"name\":\"Role2\"\n" +
" }\n" +
" ],\n" +
" \"name\":\"Example Package with multiple documents\"\n" +
"}";
postData.Append("--" + MULTIPART_BOUNDARY + "\r\n");
postData.Append("Content-Disposition: form-data; name=\"file\"; filename=\"ParallelPrograming.pdf\"\r\n");
postData.Append("Content-Type: application/pdf\r\n\r\n");
postData.Append(System.Text.Encoding.Default.GetString(File.ReadAllBytes("C:/Users/rahulk/Downloads/ParallelPrograming.pdf")));
postData.Append("--" + MULTIPART_BOUNDARY + "\r\n");
postData.Append("Content-Disposition: form-data; name=\"file\"; filename=\"ParallelPrograming - Copy.pdf\"\r\n");
postData.Append("Content-Type: application/pdf\r\n\r\n");
postData.Append(System.Text.Encoding.Default.GetString(File.ReadAllBytes("C:/Users/rahulk/Downloads/ParallelPrograming - Copy.pdf")));
postData.Append("\r\n\r\n");
postData.Append("--" + MULTIPART_BOUNDARY + "\r\n");
postData.Append("Content-Disposition: form-data; name=\"payload\"\r\n\r\n");
postData.Append(jsonString);
postData.Append("\r\n\r\n");
postData.Append("--" + MULTIPART_BOUNDARY + "--");
wc.UploadString(URI, "POST", postData.ToString());
Subscriptions
Topics | Replies | Freshness | Views | Users |
---|---|---|---|---|
Hi,
How to send multiple document using API when creating the package?
Thanks in Adv.
|
4 | 1 year 2 months ago | 98 |
Subscriptions Release Notes
This user is not subscribed to any release notes.