How to stop getting back AutoResponded code for an Envelope

蓝咒 提交于 2019-12-12 02:16:27

问题


I know the fact that in case of an invalid email address DocuSign sends back AutoResponded as an envelope status. So, whenever I get back AutoResponded some of my services break. Is there a way to turn this feature off of my DocuSign account?

In simple words just ignore if an status is AutoResponded.

Thanks


回答1:


You can exclude the AutoResponded recipientEventStatusCode from the eventNotification.

Here is a sample CreateEnvelope request which includes all eventNotifications. You can remove the events that you do not want to receive.

{

    "eventNotification": {
        "url": "[Callback Url]",
        "loggingEnabled": "true",
        "requireAcknowledgment": "true",
        "envelopeEvents": [
            { "envelopeEventStatusCode": "Delivered" },
            { "envelopeEventStatusCode": "Completed" },
            { "envelopeEventStatusCode": "Declined" },
            { "envelopeEventStatusCode": "Voided" },
            { "envelopeEventStatusCode": "Sent" }
        ],
        "recipientEvents": [
            { "recipientEventStatusCode": "Sent" },
            { "recipientEventStatusCode": "Delivered" },
            { "recipientEventStatusCode": "Completed" },
            { "recipientEventStatusCode": "Declined" },
            { "recipientEventStatusCode": "AuthenticationFailed" },
            { "recipientEventStatusCode": "AutoResponded" }
        ],
    },

    "recipients": {
        "signers": [
            {
                "name": "john smith",
                "email": "johnsmith@foo.com",
                "recipientId": "1",
                "routingOrder": "1"
            }
        ]
    },
    "documents": [
        {
            "documentId": "1",
            "name": "Agreement ",
            "fileExtension": "pdf",
            "documentBase64": "[Document Bytes]"
        }
    ],
    "status": "sent",
    "emailSubject": "Envelope for auto responded status"
}


来源:https://stackoverflow.com/questions/42795966/how-to-stop-getting-back-autoresponded-code-for-an-envelope

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!