nehme | Posts: 153 Decline Reason Monday, December 10, 2018 at 05:14am 0 votes Hello, How I can capture the decline reason, if the user decline to sign the package. Thanks, Nehme December 10 Created January 21 Last Updated 5 years ago Last Reply 1 Replies 86 Views 2 Users 0 Likes 0 Links Duo_Liang | Posts: 3776 Reply to: Decline Reason Monday, December 10, 2018 at 05:25am 0 votes Hi nehme, You can refer to this guide to retrieve decline reason. It's stored at the "content" within "messages" attribute at package level: DocumentPackage documentPackage = client.GetPackage(packageId); IList messages = client.GetPackage(packageId).Messages; Debug.WriteLine(documentPackage.Status.ToString() + " reason : " + messages[0].Content); And this is the construction of the messages JSON: "messages": [ { "status": "NEW", "from": { "group": null, "language": "en", "signature": null, "id": "a8e907ec-9472-4cb9-812a-efe5af88ed1b", "data": null, "title": "", "auth": { "scheme": "NONE", "challenges": [] }, "updated": "2018-05-02T15:56:02Z", "external": null, "knowledgeBasedAuthentication": null, "email": "[email protected]", "firstName": "john", "lastName": "smith", "phone": "", "professionalIdentityFields": [], "userCustomFields": [], "company": "", "delivery": { "download": false, "email": false, "provider": false }, "address": null, "created": "2018-05-02T15:56:03Z", "name": "", "specialTypes": [] }, "content": "I do not wish to sign electronically.", "created": "2018-05-04T19:13:22Z", "to": [], "documents": [] } ] And you may want to make sure your package status is in DocumentPackageStatus.DECLINED Hope this could help! Duo Log in or register to post comments
Duo_Liang | Posts: 3776 Reply to: Decline Reason Monday, December 10, 2018 at 05:25am 0 votes Hi nehme, You can refer to this guide to retrieve decline reason. It's stored at the "content" within "messages" attribute at package level: DocumentPackage documentPackage = client.GetPackage(packageId); IList messages = client.GetPackage(packageId).Messages; Debug.WriteLine(documentPackage.Status.ToString() + " reason : " + messages[0].Content); And this is the construction of the messages JSON: "messages": [ { "status": "NEW", "from": { "group": null, "language": "en", "signature": null, "id": "a8e907ec-9472-4cb9-812a-efe5af88ed1b", "data": null, "title": "", "auth": { "scheme": "NONE", "challenges": [] }, "updated": "2018-05-02T15:56:02Z", "external": null, "knowledgeBasedAuthentication": null, "email": "[email protected]", "firstName": "john", "lastName": "smith", "phone": "", "professionalIdentityFields": [], "userCustomFields": [], "company": "", "delivery": { "download": false, "email": false, "provider": false }, "address": null, "created": "2018-05-02T15:56:03Z", "name": "", "specialTypes": [] }, "content": "I do not wish to sign electronically.", "created": "2018-05-04T19:13:22Z", "to": [], "documents": [] } ] And you may want to make sure your package status is in DocumentPackageStatus.DECLINED Hope this could help! Duo Log in or register to post comments
Reply to: Decline Reason
Monday, December 10, 2018 at 05:25amDocumentPackageStatus.DECLINED
Hope this could help! Duo