SendSignerEmailInvites

URI PUT rest/v1/signers/invite

Returns – A RequestResponse containing any errors in the Details  property. (See RequestResponse in Appendix B)

Parameters

Name Type Description
encryptedToken string Required. Encrypted Token returned from client
authentication. Returns null if token has expired or
is invalid.
signerList Array of Signer Objects Required. A list of Signers.
signingsessionId string Required. The id of the signing session.
returnURL string Required. Your Host URL.

 

Example – C#
[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]

string uri = “rest/v1/signers/invite”;
JavaScriptSerializer jss = new JavaScriptSerializer();
RequestResponse requestResponse;

Signer signer = new Signer();
List<Signer> signerList = new List<Signer>();

signer.SignerId = “signerId”;
signer.Sequence = 0;
signer.FirstName = “firstname”;
signer.LastName = “lastname”;
signer.EmailAddress = “email address”;
signer.StateCode = 0;
signer.StatusCode = 1;
signerList.Add(signer);

var data = new
{
signerList = signerList,
signingSessionId = signingsessionId,
returnURL = returnURL
};
string json = serializer.Serialize(data);

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedToken);
request.Method = “PUT”;
request.ContentType = “application/json”;

using (StreamWriter writer = new StreamWriter(request.GetRequestStream()))
{
writer.Write(json);
}

HttpWebResponse response = (HttpWebResponse)request.GetResponse();
responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
requestResponse = jss.Deserialize<RequestResponse>(responseString);

[/gdlr_notification]