DocuSign - How to Post Envelopes

When using the POST /envelopes endpoint in DocuSign, there are a few details that you would need to know. First, to have a better overview of this endpoint and how you can use it more efficiently, we recommend reading the vendor API documentation here: 

https://developers.docusign.com/esign-rest-api/reference/Envelopes/Envelopes/create#envelopeDefinition

The main requirement when posting an envelope is the "name" of the document in the request body (placed in the "envelope" field) must match the name of the attached file.

Note: Special characters are accepted and passed through correctly. Example : {"name":"München"}.

Example request body:

{   "name": "example",
   "recipients": {
        "signers": [
            {
                "email": "******",
                "name": "*****",
                "recipientId": "1"
            }
        ]
    },
    "emailSubject": "Subject",
    "documents": [{
        "documentId": "1",
        "name": "image.pdf"
    }]
}