Reputation: 2306
I am using the following library for integrating Docusign into my project. [docusign-php-client]
Lets say I have sent the document to 2 recipients A and B. Recipient A has signed the document while recipient B has not yet signed it.
Using the above library how do I go about checking if user A has signed the document or not. I did figure out how to check if the whole Envelope is signed or not. But this is not what I need.
I want to check specifically using the above library if user A has signed the document or not.
Upvotes: 0
Views: 465
Reputation: 49114
Yes, you can either poll the DocuSign platform to learn the current status of the envelope and its signer fields, or much better and highly recommended, have the platform tell your app when someone has signed.
The latter (highly recommended) is generically called a webhook.
DocuSign offers webhook subscriptions on either a per envelope or per account basis. Per envelope: this is the eventNotification
feature of the Envelopes::Create endpoint. Per account: this is the Connect
feature.
Either way, DocuSign will call your app with the news that a signing recipient has opened the document(s) (this is delivered
status) or signed the document(s) in the envelope.
You can see how this works via the Webhook recipe. Here is the PHP example of the webhook recipe. You can try out the recipe, free, on Heroku. See the recipe page on GitHub.
Polling the DocuSign Platform for Status
This technique is not recommended. If you want to do it, note that the platform imposes limits on how often you can poll (no more than once every 15 minutes).
For more information, see the recipe.
Upvotes: 0