GetSessionsByTransactionId

This call will get deprecated in the near future, the preferred call to make is the paginated call GetSessionsLiteByTransactionId which will get released in December 2019.

Retrieves an array of SigningSession object(s) by an individual transaction Id.

URI GET rest/v1/users/{userName}/transactions/{transactionId}

Returns – A SessionResponse containing an array of Session Object(s).  (See SessionResponse 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.
transactionId string Required. Clients’ system transaction id for the transaction
username string Required. User’s username, their email address.

Example – C#
[gdlr_notification icon=”none” type=”color-border” border=”#31BEF9″ color=”#000000″]
string uri = “rest/v1/users/{0}/transactions/{1}”;
string responseString = string.Empty;
JavaScriptSerializer jss = new JavaScriptSerializer();
SessionResponse sessionResponse;

uri = string.Format(uri, username, “Transaction Id”);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(host + uri);
request.Headers.Add(“Authorization” , encryptedToken);
request.Method = “GET”;
request.ContentType = “application/json”;

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

[/gdlr_notification]