> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# Embedded Callback Event Codes

> **Note**
>
> This page describes functionality for the older eSignature SOAP API. See [Envelopes: listStatusChanges](/docs/esign-rest-api/reference/envelopes/envelopes/liststatuschanges) for more information on this topic in the more actively-supported eSignature REST API documentation.

When Docusign redirects the Recipient to the Embedded client application, it will append a URL parameter “event” to the CallbackURL to indicate which terminal state the Recipient reached. The valid values are: | Event | Description | | --- | --- | | OnSigningComplete | The Recipient successfully completed the signing the document. | | OnViewingComplete | The Recipient successfully viewed the document. | | OnCancel | The Recipient canceled the document while viewing the envelope. | | OnDecline | The recipient declined the envelope. | | OnSessionTimeout | The recipient session has timed out. | | OnTTLExpired | If a Recipient Token URL is invoked after it is expired. | | OnAccessCodeFailed | The Recipient failed to provide the correct Access Code. | | OnIdCheckFailed | The Recipient failed to pass the ID Check authentication questions. | | OnException | If an exception is thrown. | | OnFaxPending | If a faxed in document is pending. |

## Asynchronous Document Generation

The following value can be set to cause the system to report that the envelope has been completed before the actual final documents have been generated. | Name | Schema Type | Description | | --- | --- | --- | | GenerateSignedDocumentAsynch | Boolean | Optional flag. If true, the final document generation will happen after the envelope status has been set to ‘Completed’. Default is false. |