⚠️ Note: This integration does not rely on a shared DocuSign account provided by Avianis. Each customer must create and configure their own DocuSign developer account and provide the necessary credentials.
Ensure the DocuSign module is enabled for your organization in Avianis.
You’ll need an active DocuSign Developer account. You can create one here: https://developers.docusign.com
In your DocuSign developer account, go to Integrations > Apps and Keys.
Click "Add App and Integration Key".
Save the Integration Key that is generated.
Click on your new App.
Under Authentication, generate a Secret Key.
Save this key somewhere secure—you’ll need it in Avianis later.
In the same application settings, add a Redirect URI:
{your-avianis-instance}/docusign
Save your changes.
Navigate to Integrations > Connect in your DocuSign developer account.
Click “Add Configuration” and choose “Custom”.
Provide the function webhook URL (supplied by Avianis DevOps).
This URL is the same for all customers in the same environment (Staging | Production).
Under "Envelope and Recipients", configure the following:
Enable relevant trigger events (e.g., Sent, Delivered, Completed).
Under "Include Data", include necessary envelope details and custom fields.
💡 We use Custom Fields to pass
CompanyGuidID
, which is critical for identifying which organization the webhook relates to.
Click "Add Configuration" to save.
Log into your Avianis instance.
Go to the Integration Settings page.
Locate the DocuSign Integration section.
Paste in your previously saved:
Integration Key
Client Secret
Click “Save & Authorize”.
You’ll be redirected to DocuSign.
Log in and grant consent.
The account you use here is the one that Avianis will impersonate for all document signing operations.
Initially, your DocuSign application is in sandbox mode.
You must complete at least 20 API calls before requesting production access from DocuSign.
Once approved, switch the webhook and redirect URLs to point to your production Avianis instance.
After initial authorization, our system configures and stores a refresh token.
Tokens are auto-renewed by our system every ~20 days.
The refresh token is stored in the
ModuleXML
field of theOrganizationModule
table in the application database.
DocuSign may send multiple webhook calls per event.
Each signing action (e.g., sent, signed) creates a new entry in ESignatureDocument
in the DB.
Entries are grouped by EnvelopeID
.
Drafted
is an internal status indicating the signing process has started in Avianis but has not yet been handed off to DocuSign (no EnvelopeID yet).
Avianis can only impersonate one DocuSign account per organization.
If that account is deleted or becomes inactive, the integration will fail until re-authorized with a different account.
Your redirect URI must match the domain of your Avianis environment. This ensures proper token exchange and prevents failed authentications.
Avoid enabling multiple active Connect configurations in a single DocuSign account for both staging and production—DocuSign will send callbacks to both.