Reputation: 15041
I am using DocuSign clickWrap API to download completed clickwraps;
I am able to download the completed clickwrap only - not able to find a way to download the completion certificate as part of the clickwrap response (like we have in the web UI)... there is no option in the API document for getAgreementPdf either
Upvotes: 0
Views: 1209
Reputation: 311
You can download the certificate through the getAgreementPdf
endpoint
by appending the query parameter: include_coc=true
. This seems to be missing from the live documentation, but is present in the Swagger spec.
Full example:
GET /clickapi/v1/accounts/{accountId}/clickwraps/{clickwrapId}/agreements/{agreementId}?include_coc=true
The agreement ID can be found either through the callback of onAgreed
:
docuSignClick.Clickwrap.render({
//...
onAgreed: (agreementData) => {
// agreementData.agreementId
}
}, '#host-element');
Or through a POST to createHasAgreed
with the same clientUserId
.
Upvotes: 3
Reputation: 412
You can get the certificate of completion by calling this endpoint:
https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopedocuments/get/
"If the account option Attach certification of completion to envelope is on, then the Certificate of Completion is also included in the PDF file."
Upvotes: -1