docusign / docusign-click-csharp-client

Docusign Click lets you capture consent to standard agreement terms with a single click: terms and conditions, terms of service, terms of use, privacy policies, and more. The Click API lets you include this customizable clickwrap solution in your Docusign integrations.
MIT License
2 stars 5 forks source link

Are declined responses being retrieved by default when querying GetClickwrapAgreements without options? #8

Closed NJarZe closed 2 years ago

NJarZe commented 2 years ago

More of a question than an actual issue, since I could not get a clear answer from the API documentation or the SDK.

I have a call to the GetClickwrapAgreements(accountId, clickwrapId) method for a clickwrap that is storing declined responses; however, those responses are not coming back in the GetClickwrapAgreements response.

Do I need to make two calls, one for accepted and one for declined responses, using the options object?

Thanks!

InbarGazit commented 2 years ago

the default status (if not provided) is set to 'accept'. So GetClickwrapAgreements will return only agreed clickwraps. If the you wish to look for declined, then the status parameter must be sent. (agreed or declined)

NJarZe commented 2 years ago

Indeed, I figured it out by trial and error. To solve this, I ended up doing two api calls, one for agreed and one for declined; I then combine the two responses elsewhere. Thanks for clarifying!