Skip to main content

Django-DocuSign

Django wrapper app for DocuSign functionalities

pip install django-docusign

Running Tests

We have a unit test defined for testing the los application. This can be executed using the below command.

python manage.py test

Usage

In order to use the system you must add los_docusign.apps.LosDocusignConfig to your installed apps in your settings.py file.

INSTALLED_APPS = [
    'los_docusign'
]

Test file has the sample implementation of the test_app

Functions in client.py

  1. generate_docusign_preview_url(dict)

    Params required in dict:

    • "envelope_id"
    • "authentication_method"
    • "email"
    • "user_name"
    • "client_user_id"
    • "return_url"
  2. create_envelope(payload)

    Params required:

    • DocuSign payload in JSON format
  3. download_docusign_document(dict)

    Params required in dict:

    • "envelope_id"
    • "doc_download_option"
      • Valid Values:
        1. archive - If the document to be downloaded in zip format.
        2. combined - If the document to be downloaded as a combined document.
  4. process_docusign_webhook(xml_string)

    Params required:

    • Webhook XML string received from Docusign.

    Response dict: { "envelopeId": "c57ec066-c5fa-4aa0-873d-6f285d70242a", "envelope_status": "sent", "recipients": [ { "recipient_id": "a7f73f21-c4ff-4bcb-97c4-b03c91b8528a", "email": "test@test.com", "name": "John Nash", "status": "autoresponded" }, { "recipient_id": "511b2ad3-6650-4773-a6b4-47f64a0ccdaf", "email": "jerry@test.com", "name": "Jerry Tunes", "status": "created" }, { "recipient_id": "0851505f-5af2-42df-bce4-9e0ebe8bd2e2", "email": "tom@test.com", "name": "Tom Tunes", "status": "created" } ] }

  5. update_envelope_and_resend(envelope_id, signers_data) This function is used to update the email/phone number of the signer. This is also used to resend the same envelope to the signers. For resending, recipientId and email are mandatory.

    Params required:

    • envelope_id - The envelope id for which we need to update the signers information or send the same envelope to the signers.
    • signers_data - The signer array which has the information about the signers that needs to be updated. Params required in signers_data:
    • email - The email of the signer.
    • recipientId - The recipient id of the signer
    • phone - The phone number of the signer (optional)

    signers_data example: [ { "recipientId":"123456", "email":"test@test.com", "phone":"1234567890" } ]

  6. update_envelope_status(status_info): This function is used to update the status of the envelope.

    Params required:

    • status_info - The dictionary variale which has the following parameters.
      • envelope_id - The envelope id for which the status needs to be updated
      • status - The status in which we need to set the envelope
      • reason - The reason (if applicable) to be set for the status change. This will be visible to the signer

    status_info example: { "envelope_id":"b1435c5d-3d67-46e8-ab6a-54789f42924e", "status":"voided", "reason":"Voiding an envelope" }

Metadata

Release files for los-docusign 0.5.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for los-docusign 0.5.8
File Size Uploaded
los_docusign-0.5.8.tar.gz 22.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for los-docusign 0.5.8
File Interpreter ABI Platform
los_docusign-0.5.8-py3-none-any.whl Python 3 none any Details

Total release size: 50.1 kB

Release files / los_docusign-0.5.8.tar.gz

Download URL los_docusign-0.5.8.tar.gz
Size 22.0 kB
Tags Source
SHA-256 checksum
How to use checksums
963c580b982e201d98dc567e0c78f6360f4c72125c5b164bf74c15e924c5cedc
BLAKE2b-256 checksum
How to use checksums
252dfcfa79386525c9db221f598712bbdf9cc7ecd02f98c66f42f5026ecc876f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.10 Darwin/20.6.0

Release files / los_docusign-0.5.8-py3-none-any.whl

Download URL los_docusign-0.5.8-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98922d39d59d45d6ea69e224a9a39775407ec221caebe045e1ab8b5cf38e79c4
BLAKE2b-256 checksum
How to use checksums
084a88b0e2932f7d344a8321a57ffe2c7fce9b442317546d0fda21dcefacb639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.10 Darwin/20.6.0

Release history Release notifications | RSS feed

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.9

2 release files

This release

0.5.8 This release

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page