gbaskar.cs | Posts: 1 Retrieve Package Id Tuesday, January 12, 2021 at 09:57am 0 votes HI, How should I get package Id in E-sign call back? I am working with .NET MVC. Thanks, Baskar G January 12 Created January 12 Last Updated 3 years ago Last Reply 1 Replies 164 Views 2 Users 0 Likes 0 Links Duo_Liang | Posts: 3776 Reply to: Retrieve Package Id Tuesday, January 12, 2021 at 12:19pm 0 votes Hi Baskar, Thanks for your post! Per your question, are we talking about getting package ID when package creation or callback handling? If the former, package ID is returned at the package creation call: SDK: PackageId packageId2 = eslClient.CreatePackageOneStep(superDuperPackage); REST API: var response = httpClient.PostAsync(new Uri(API_URL) + "/packages/", jsonContent).Result; Common.WriteToDebug("Package Id: " + response.Content.ReadAsStringAsync().Result); If you are interested in callback handling, whenever an event of your interest(for example, a package has been completed), OneSpan Sign system sends a POST call to your callback listener, with payload similar to below: { "@class": "com.silanis.esl.packages.event.ESLProcessEvent", "name": "PACKAGE_COMPLETE", "sessionUser": "0787be84-f095-44c7-ba00-787093df86fc", "packageId": "KHiRfOXgKK0gpVWwwpFOSNy6o34=", "message": null, "documentId": null } where you are parse the package ID out of it. Duo Log in or register to post comments
Duo_Liang | Posts: 3776 Reply to: Retrieve Package Id Tuesday, January 12, 2021 at 12:19pm 0 votes Hi Baskar, Thanks for your post! Per your question, are we talking about getting package ID when package creation or callback handling? If the former, package ID is returned at the package creation call: SDK: PackageId packageId2 = eslClient.CreatePackageOneStep(superDuperPackage); REST API: var response = httpClient.PostAsync(new Uri(API_URL) + "/packages/", jsonContent).Result; Common.WriteToDebug("Package Id: " + response.Content.ReadAsStringAsync().Result); If you are interested in callback handling, whenever an event of your interest(for example, a package has been completed), OneSpan Sign system sends a POST call to your callback listener, with payload similar to below: { "@class": "com.silanis.esl.packages.event.ESLProcessEvent", "name": "PACKAGE_COMPLETE", "sessionUser": "0787be84-f095-44c7-ba00-787093df86fc", "packageId": "KHiRfOXgKK0gpVWwwpFOSNy6o34=", "message": null, "documentId": null } where you are parse the package ID out of it. Duo Log in or register to post comments
Reply to: Retrieve Package Id
Tuesday, January 12, 2021 at 12:19pmHi Baskar,
Thanks for your post! Per your question, are we talking about getting package ID when package creation or callback handling?
If the former, package ID is returned at the package creation call:
SDK:
PackageId packageId2 = eslClient.CreatePackageOneStep(superDuperPackage);
REST API:
var response = httpClient.PostAsync(new Uri(API_URL) + "/packages/", jsonContent).Result;
Common.WriteToDebug("Package Id: " + response.Content.ReadAsStringAsync().Result);
If you are interested in callback handling, whenever an event of your interest(for example, a package has been completed), OneSpan Sign system sends a POST call to your callback listener, with payload similar to below:
{
"@class": "com.silanis.esl.packages.event.ESLProcessEvent",
"name": "PACKAGE_COMPLETE",
"sessionUser": "0787be84-f095-44c7-ba00-787093df86fc",
"packageId": "KHiRfOXgKK0gpVWwwpFOSNy6o34=",
"message": null,
"documentId": null
}
where you are parse the package ID out of it.
Duo