> 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

# SynchEnvelope

This method is only useful when the ‘Asynchronous’ flag is set to true on a CreateAndSendEnvelope call. It will determine when the queued envelope has been processed by the system.

**`C#`**

```csharp title="C#"
// Create envelope as shown in linked code
DocuSignWeb.Envelope envelope = <create envelope>;

// Assign it a transaction ID and make it asynchronous send
envelope.TransactionID = System.Guid.NewGuid().ToString();
envelope.Asynchronous = true;

// Go ahead and send the envelope
DocuSignWeb.EnvelopeStatus status = _apiClient.SendEnvelope(envelope);

// Request a synch using the transaction ID and account ID
// but don't block it from processing
DocuSignWeb.SynchEnvelopeStatus synchStatus =
    _apiClient.SynchEnvelope(envelope.TransactionID, _accountId, false);

// Display the status we got back
Console.WriteLine("Synch envelope status is {0}", synchStatus.EnvelopeStatus);
```

**`PHP`**

```php title="PHP"
// Create an envelope as shown in linked code
$env = <create envelope>;

// Assign a transaction ID and make it an asynchronous send
$env->TransactionID = guid(); //Helper function link
$env->Asynchronous = true;

// Send the envelope
$sendEnvelopeparams = new SendEnvelope();
$sendEnvelopeparams->Envelope = $env;
$status = $api->SendEnvelope($sendEnvelopeparams)->CreateAndSendEnvelopeResult;

// Request a sych without blocking
$synchEnvelopeparams = new SynchEnvelope();
$synchEnvelopeparams->AccountID = $AccountID;
$synchEnvelopeparams->Block = false;
$synchEnvelopeparams->TransactionID = $env->TransactionID;
$response = $api->SynchEnvelope($synchEnvelopeparams);
```

### Schema

![](/_fern-files/_img/408ebd77275492c374bf8aa5d5cc281a9960b0f83737fc06b5945a76e712ad1e.webp)

| Name          | Schema Type | Description                                                                                                                   |
| ------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------- |
| TransactionID | LongString  | External ID that is passed in CreateAndSendEnvelope when the ‘Asynchronous’ flag is set to true.                              |
| AccountID     | DSXId       | Account Id of the user who created the envelope                                                                               |
| Block         | Boolean     | If true, this call will wait to return until the queued envelope is done processing. The max time it will wait is 10 minutes. |

## SynchEnvelopeStatus

![](/_fern-files/_img/2de2cfef92935b818bed19e3cc5992ca215f49a2d1eb3ac48813af229843cbee.webp)

| Name           | Schema Type        | Description                                                                                                                                                                |
| -------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| EnvelopeStatus | EnvelopeStatusCode | Status of the envelope at that specific time. Enumeration values could be Voided, Created, Deleted, Sent, Delivered, Signed, Completed, Declined, TimedOut and Processing. |
| EnvelopeID     | LocalId            | The unique Id for the envelope.                                                                                                                                            |