Signer/Role Signing status
Monday, May 2, 2022 at 11:41amHello everyone,
Currently I have a requirement to have multiple signers following a signing order for each transaction. To do this I am creating the transactions with two Roles (I specify the signing order per role) and a signer each. Everything is working fine but a new requirement emerged, we need to know if signer 1 has completed the signing process. As of now we have identify a way to get the transaction's signing status but is it possible to get the signer's signing status? We tried using the signingStatus API but it seems to retrieve the transaction's signing status even if you pass the signer id or the document id.
Reply to: Signer/Role Signing status
Monday, May 2, 2022 at 12:00pmHi AlfonsoEscobar,
Thanks for your post!
It's a known documentation mistake that the two parameters should be "signer" and "document" without "id", see below examples:
GET /api/packages/{packageId}/signingStatus?signer={signerId}
GET /api/packages/{packageId}/signingStatus?document={documentId}
GET /api/packages/{packageId}/signingStatus?signer={signerId}&document={documentId}
Both parameters are optional.
On top of that, it's worth mentioning that it is strongly recommended that you use a Callback Listener instead of polling for transaction statuses. The use of polling may consume unnecessary resources on both your end, and on the OneSpan Sign service.
Duo
Reply to: Signer/Role Signing status
Wednesday, May 11, 2022 at 03:49pmHi Duo,
Could you show some Java code for getting the "currently signed" signer when A) there are multiple signers and B) the document has not been completely signed and C) the package is still "In Progress"?
Thanks!
JP
Reply to: Signer/Role Signing status
Wednesday, May 11, 2022 at 05:53pmHi JP,
Attached is a sample code I created, where #1 it's written with OSS Java SDK #2 only pulls package JSON once and all the calculations are done in local #2 depending on how your work flow treats optional signature, your logic could be slightly vary from mine. (In my case, if a signer has left any optional signature, the signing status would still be in progress)
Duo
Reply to: Signer/Role Signing status
Thursday, May 12, 2022 at 06:28amThank you Duo!
This is very helpful.
JP