Skip to content
Proud to collaborate with Microsoft for Startups

docusign.void-envelope ​

Void an in-process DocuSign envelope with a reason every recipient sees

Void an in-process envelope; completed/declined ones surface the refusal.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-docusign
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped DocuSign CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
envelope_refstringYes—In-process envelope id to void
reasonstringYes—Shown to every recipient (DocuSign voidedReason, ≤ 200 chars)

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID injected by the workflow boundary
connection_uuiduuidYes—Organization-scoped DocuSign CloudConnection UUID
workflow_run_idstringNo—Engine-stamped parent DAG run id
envelope_refstringYes—In-process envelope id to void
reasonstringYes—Shown to every recipient (DocuSign voidedReason, ≤ 200 chars)
envelope_statusstringNo——
voided_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo——
failed_layerintegerNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
retryablebooleanNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeVoiding the envelope
completedNoYesYes—Envelope voided
failedNoYesNo—Envelope void failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
voidedSUCCESSThe envelope was voidedenvelope_status, voided_at
failedFAILUREEnvelope void failedfailure_reason, failure_type, retryable

Business Errors ​

CodeMessage Template
DOCUSIGN_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
DOCUSIGN_CONNECTION_NOT_FOUNDDocuSign connection {connection_uuid} was not found in the authenticated organization
DOCUSIGN_CONNECTION_WRONG_PROVIDERConnection {connection_uuid} is not a DocuSign connection
DOCUSIGN_CONNECTION_SERVICE_UNAVAILABLEThe shared cloud connection service is unavailable
DOCUSIGN_PROVIDER_CAPABILITY_MISSINGThe installed DocuSign provider does not expose the required API operation
DOCUSIGN_AUTHENTICATION_FAILEDDocuSign refused the request:
DOCUSIGN_PROVIDER_REQUEST_FAILEDThe DocuSign API request failed:
DOCUSIGN_RESPONSE_SHAPE_INVALIDThe DocuSign API returned an unexpected shape:
DOCUSIGN_PAGINATION_INVALIDpage must be >= 1 and limit between 1 and
DOCUSIGN_ENVELOPE_NOT_FOUNDNo envelope {envelope_ref} is visible in this DocuSign account
DOCUSIGN_DOCUMENT_TOO_LARGEThe document exceeds the {max_bytes}-byte envelope cap
DOCUSIGN_DOCUMENT_FETCH_FAILEDCould not fetch the document from its source URL:
DOCUSIGN_UPLOAD_FAILEDThe presigned destination refused the document:
DOCUSIGN_ENVELOPE_STATE_INVALIDDocuSign refused the envelope operation:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "docusign.void-envelope",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "envelope_ref": "value",
    "reason": "value"
  }
}