# acumatica/acumatica-esign architecture

> Architecture diagram of the GitHub repository acumatica/acumatica-esign, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/acumatica/acumatica-esign
- Repository: https://github.com/acumatica/acumatica-esign

## Overview

This is an Acumatica Cloud ERP e-signature integration for Adobe Sign and DocuSign. Its main workflow configures a provider account, prepares an envelope and recipients from a managed file, sends it through the selected provider, and tracks status in eSign Central or through synchronization. The graph preserves both provider implementations and the documented account, envelope, and status capabilities. Some workflow links are dashed because the README describes them but the relevant implementation excerpts are incomplete.

Main entry points: [`AcumaticaESign/SM/WikiFileMaintenanceESExt.cs`](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/SM/WikiFileMaintenanceESExt.cs) (File management), [`AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/DocumentsService.cs`](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/DocumentsService.cs) (Agreement operations), [`AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs`](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs) (Adobe client), [`AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs`](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs) (eSign Central)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_erp["Acumatica workflow"]
  node_file_ui["File management"]
  node_account_ui["Account setup"]
end

subgraph group_domain["eSign domain"]
  node_accounts[("Provider accounts<br/>[ESignAccount.cs]")]
  node_account_rules[("User account rules")]
  node_envelope[("Envelope data")]
  node_recipients[("Recipients<br/>[ESignRecipient.cs]")]
end

subgraph group_adobe["Adobe Sign"]
  node_adobe_builder["Client construction"]
  node_adobe_client["Adobe client<br/>[AdobeSignClient.cs]"]
  node_adobe_auth["Authentication"]
  node_adobe_docs["Agreement operations"]
  node_request_builder["Request builder<br/>[RequestBuilder.cs]"]
  node_request_deps["Request dependencies"]
end

subgraph group_docusign["DocuSign"]
  node_docusign_service["Envelope operations<br/>[DocuSignService.cs]"]
end

subgraph group_tracking["Status tracking"]
  node_central["eSign Central"]
  node_sync["Status synchronization"]
  node_envelope_enq["Envelope inquiry"]
end

node_user(("ERP user"))
node_adobe_service{{"Adobe Sign"}}
node_docusign_external{{"DocuSign"}}

node_user -.->|"configures"| node_account_ui
node_account_ui -.->|"maintains"| node_accounts
node_user -.->|"prepares file"| node_file_ui
node_file_ui -->|"creates envelope"| node_envelope
node_file_ui -->|"adds recipients"| node_recipients
node_file_ui -->|"builds Adobe client"| node_adobe_builder
node_adobe_builder -->|"constructs"| node_adobe_client
node_adobe_client -->|"creates auth service"| node_adobe_auth
node_adobe_client -->|"creates document service"| node_adobe_docs
node_adobe_auth -->|"builds requests"| node_request_builder
node_adobe_docs -->|"builds requests"| node_request_builder
node_request_builder -->|"uses dependencies"| node_request_deps
node_adobe_docs -.->|"calls API"| node_adobe_service
node_file_ui -->|"uses DocuSign"| node_docusign_service
node_docusign_service -.->|"calls API"| node_docusign_external
node_user -.->|"checks status"| node_central
node_central -->|"reads envelopes"| node_envelope
node_user -.->|"requests refresh"| node_sync
node_sync -.->|"refreshes Adobe status"| node_adobe_docs
node_sync -.->|"refreshes DocuSign status"| node_docusign_service
node_central -->|"opens inquiry"| node_envelope_enq

click node_file_ui "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/SM/WikiFileMaintenanceESExt.cs"
click node_account_ui "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignAccountEntry.cs"
click node_accounts "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignAccount.cs"
click node_account_rules "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignAccountUserRule.cs"
click node_envelope "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignEnvelopeInfo.cs"
click node_recipients "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignRecipient.cs"
click node_adobe_builder "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClientBuilder.cs"
click node_adobe_client "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs"
click node_adobe_auth "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/AuthenticationService.cs"
click node_adobe_docs "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/DocumentsService.cs"
click node_request_builder "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestBuilder.cs"
click node_request_deps "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestDependencies.cs"
click node_docusign_service "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/DocuSign/Services/DocuSignService.cs"
click node_central "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs"
click node_sync "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignSyncProcess.cs"
click node_envelope_enq "https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignEnvelopeEnq.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_file_ui,node_account_ui,node_user toneBlue
class node_accounts,node_account_rules,node_envelope,node_recipients toneAmber
class node_adobe_builder,node_adobe_client,node_adobe_auth,node_adobe_docs,node_request_builder,node_request_deps toneMint
class node_docusign_service toneRose
class node_central,node_sync,node_envelope_enq,node_adobe_service,node_docusign_external toneIndigo
```

## Components

### Acumatica workflow

- [File management](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/SM/WikiFileMaintenanceESExt.cs): `AcumaticaESign/SM/WikiFileMaintenanceESExt.cs`
- [Account setup](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignAccountEntry.cs): `AcumaticaESign/AcumaticaESign/ESignAccountEntry.cs`

### eSign domain

- [Provider accounts](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignAccount.cs): `AcumaticaESign/AcumaticaESign/DAC/ESignAccount.cs`
- [User account rules](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignAccountUserRule.cs): `AcumaticaESign/AcumaticaESign/DAC/ESignAccountUserRule.cs`
- [Envelope data](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignEnvelopeInfo.cs): `AcumaticaESign/AcumaticaESign/DAC/ESignEnvelopeInfo.cs`
- [Recipients](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/DAC/ESignRecipient.cs): `AcumaticaESign/AcumaticaESign/DAC/ESignRecipient.cs`

### Adobe Sign

- [Client construction](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClientBuilder.cs): `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClientBuilder.cs`
- [Adobe client](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs): `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs`
- [Authentication](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/AuthenticationService.cs): `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/AuthenticationService.cs`
- [Agreement operations](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/DocumentsService.cs): `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/DocumentsService.cs`
- [Request builder](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestBuilder.cs): `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestBuilder.cs`
- [Request dependencies](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestDependencies.cs): `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestDependencies.cs`

### DocuSign

- [Envelope operations](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/Providers/DocuSign/Services/DocuSignService.cs): `AcumaticaESign/AcumaticaESign/Providers/DocuSign/Services/DocuSignService.cs`

### Status tracking

- [eSign Central](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs): `AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs`
- [Status synchronization](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignSyncProcess.cs): `AcumaticaESign/AcumaticaESign/ESignSyncProcess.cs`
- [Envelope inquiry](https://github.com/acumatica/acumatica-esign/blob/master/AcumaticaESign/AcumaticaESign/ESignEnvelopeEnq.cs): `AcumaticaESign/AcumaticaESign/ESignEnvelopeEnq.cs`

### Other components

- **ERP user**
- **Adobe Sign**
- **DocuSign**

## Connections

- ERP user → Account setup: configures
- Account setup → Provider accounts: maintains (evidence: `AcumaticaESign/AcumaticaESign/ESignAccountEntry.cs`)
- ERP user → File management: prepares file
- File management → Envelope data: creates envelope (evidence: `AcumaticaESign/SM/WikiFileMaintenanceESExt.cs`)
- File management → Recipients: adds recipients (evidence: `AcumaticaESign/SM/WikiFileMaintenanceESExt.cs`)
- File management → Client construction: builds Adobe client (evidence: `AcumaticaESign/SM/WikiFileMaintenanceESExt.cs`)
- Client construction → Adobe client: constructs (evidence: `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClientBuilder.cs`)
- Adobe client → Authentication: creates auth service (evidence: `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs`)
- Adobe client → Agreement operations: creates document service (evidence: `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/AdobeSignClient.cs`)
- Authentication → Request builder: builds requests (evidence: `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/AuthenticationService.cs`)
- Agreement operations → Request builder: builds requests (evidence: `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Services/DocumentsService.cs`)
- Request builder → Request dependencies: uses dependencies (evidence: `AcumaticaESign/AcumaticaESign/Providers/AdobeSign/Infrastructure/RequestBuilder.cs`)
- Agreement operations → Adobe Sign: calls API
- File management → Envelope operations: uses DocuSign (evidence: `AcumaticaESign/SM/WikiFileMaintenanceESExt.cs`)
- Envelope operations → DocuSign: calls API
- ERP user → eSign Central: checks status
- eSign Central → Envelope data: reads envelopes (evidence: `AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs`)
- ERP user → Status synchronization: requests refresh
- Status synchronization → Agreement operations: refreshes Adobe status
- Status synchronization → Envelope operations: refreshes DocuSign status
- eSign Central → Envelope inquiry: opens inquiry (evidence: `AcumaticaESign/AcumaticaESign/ESignDocumentSummaryEnq.cs`)
