Resend DocuSign Emails

前端 未结 5 1929
谎友^
谎友^ 2020-12-02 00:18

Is there an API endpoint which allows me to retrigger emails to recipients? Sometimes users may not get or lose the DocuSign emails which contain their signing link. I\'d li

5条回答
  •  生来不讨喜
    2020-12-02 00:47

    You can use the "modify recipient(s)" request to trigger a re-send of the email notification to specific recipient(s).

    PUT /accounts/{accountId}/envelopes/{envelopeId}/recipients?resend_envelope=true
    

    Be sure to include the querystring parameter/value resend_envelope=true in the URL (as shown above).

    For example, if a GET Recipients response shows that an Envelope contains the following recipients:

    {
        "signers": [
            {
                "name": "Jane Doe",
                "email": "janesemail@outlook.com",
                "recipientId": "3",
                "recipientIdGuid": "13e30b8d-3dd6-48e8-ad12-15237611a463",
                "requireIdLookup": "false",
                "userId": "2c9e06eb-f2c5-4bef-957a-5a3dbd6edd25",
                "routingOrder": "1",
                "status": "sent"
            },
            {
                "name": "John Doe",
                "email": "johnsemail@outlook.com",
                "recipientId": "1",
                "recipientIdGuid": "c2273f0f-1430-484a-886c-45ce2fb5e8a8",
                "requireIdLookup": "false",
                "userId": "03c8a856-c0ae-41bf-943d-ac6e92db66a8",
                "routingOrder": "1",
                "note": "",
                "roleName": "Signer1",
                "status": "sent",
                "templateLocked": "false",
                "templateRequired": "false"
            }
        ],
        "agents": [],
        "editors": [],
        "intermediaries": [],
        "carbonCopies": [],
        "certifiedDeliveries": [],
        "inPersonSigners": [],
        "recipientCount": "2",
        "currentRoutingOrder": "1"
    }
    

    Then, I could trigger a re-send of the Signing Invitation Email to the incomplete recipient ("Jane Doe") by using the following request:

    PUT https://{{env}}.docusign.net/restapi/{{version}}/accounts/{{acctId}}/envelopes/{{envelopeId}}/recipients?resend_envelope=true
    
    {
      "signers": [
       {
          "recipientId": "3",
          "name": "Jane Doe",
          "email": "janesemail@outlook.com"
        }
      ]
    }
    

    Notice that I'm sending the same (original) values for name and email -- so it's not going to actually modify the recipient -- it'll just re-send the email to Jane, since I included ?resend_envelope=true in the URL.

    API Documentation

    If you want to re-send the email notification to all pending recipients (i.e., anyone who's next in the routing order and hasn't yet completed the envelope), you can do so with the following request:

    PUT https://demo.docusign.net/restapi/v2/accounts//envelopes/?resend_envelope=true
    {}
    

提交回复
热议问题