Retrieve Package Id
Tuesday, January 12, 2021 at 09:57amHI,
How should I get package Id in E-sign call back? I am working with .NET MVC.
Thanks,
Baskar G
OneSpan Introduces DigipassONE, Bringing a Unified Platform Approach to Authentication Modernization
A new authentication platform helps financial institutions support diverse customer authentication preferences while modernizing at their own pace Learn More
HI,
How should I get package Id in E-sign call back? I am working with .NET MVC.
Thanks,
Baskar G
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