Docusign · Arazzo Workflow

DocuSign Void Envelope If Not Completed

Version 1.0.0

Check an envelope's status and void it only if signing has not yet completed.

1 workflow 1 source API 1 provider
View Spec View on GitHub AgreementsContractsDigital Transaction ManagementDocumentsElectronic SignaturesE-SignatureArazzoWorkflows

Provider

docusign

Workflows

void-envelope-if-not-completed
Void an in-flight envelope, leaving completed envelopes untouched.
Retrieves the envelope status and, only when the envelope is still sent or delivered, transitions it to voided with the supplied reason.
2 steps inputs: accountId, envelopeId, voidedReason outputs: envelopeId, voided
1
getEnvelopeStatus
Retrieve the envelope's current status to decide whether it is eligible to be voided.
2
voidEnvelope
Void the envelope by updating its status to voided and recording the supplied void reason.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: DocuSign Void Envelope If Not Completed
  summary: Check an envelope's status and void it only if signing has not yet completed.
  description: >-
    A safe cancellation flow. The workflow reads the current status of an
    envelope and branches: when the envelope is still in flight (sent or
    delivered) it voids the envelope by updating its status to voided with a
    void reason, and when the envelope has already completed it ends without
    making any change so a finished agreement is never disturbed. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-150.10
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-150.10
      capability_name: Contract Management
      spec: docusign-envelopes-api-openapi.yml
      confidence: 0.8
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: envelopesApi
  url: ../openapi/docusign-envelopes-api-openapi.yml
  type: openapi
workflows:
- workflowId: void-envelope-if-not-completed
  summary: Void an in-flight envelope, leaving completed envelopes untouched.
  description: >-
    Retrieves the envelope status and, only when the envelope is still sent or
    delivered, transitions it to voided with the supplied reason.
  inputs:
    type: object
    required:
    - accountId
    - envelopeId
    - voidedReason
    properties:
      accountId:
        type: string
        description: The DocuSign account ID (GUID or short account number).
      envelopeId:
        type: string
        description: The ID of the envelope to evaluate and possibly void.
      voidedReason:
        type: string
        description: The reason recorded for voiding the envelope.
  steps:
  - stepId: getEnvelopeStatus
    description: >-
      Retrieve the envelope's current status to decide whether it is eligible
      to be voided.
    operationId: Envelopes_GetEnvelope
    parameters:
    - name: accountId
      in: path
      value: $inputs.accountId
    - name: envelopeId
      in: path
      value: $inputs.envelopeId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      status: $response.body#/status
    onSuccess:
    - name: eligibleToVoid
      type: goto
      stepId: voidEnvelope
      criteria:
      - context: $response.body
        condition: $.status == 'sent' || $.status == 'delivered'
        type: jsonpath
    - name: alreadyDone
      type: end
      criteria:
      - context: $response.body
        condition: $.status == 'completed' || $.status == 'declined' || $.status == 'voided'
        type: jsonpath
  - stepId: voidEnvelope
    description: >-
      Void the envelope by updating its status to voided and recording the
      supplied void reason.
    operationId: Envelopes_UpdateEnvelope
    parameters:
    - name: accountId
      in: path
      value: $inputs.accountId
    - name: envelopeId
      in: path
      value: $inputs.envelopeId
    requestBody:
      contentType: application/json
      payload:
        status: voided
        voidedReason: $inputs.voidedReason
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      envelopeId: $response.body#/envelopeId
  outputs:
    envelopeId: $inputs.envelopeId
    voided: $steps.voidEnvelope.outputs.envelopeId

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/docusign-void-envelope-if-not-completed-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.