-->

的DocuSign不打网络挂接网址(Docusign not hitting webhook URL

2019-09-29 07:55发布

I'm trying to use webhooks, but no events are being sent to my application via the webhook url. So far I was able to configure and send correctly envelopes with enough information to monitor status, but when things changes in the envelopes, nothing happens, I mean, no requests are made to my webhook URL, at all.

My app is doing good, so if I manually hit (GET) https://subdomain.app.com/docusign/webhook, it works fine and it shows both on my app log and Nginx log. But viewing, signing and completing documents/envelopes are not generating events to the webhook url.

I noticed that, in the examples, the events are capitalized for recientEvents, but not for envelopeEvents, is this right?

Is there anything else to be configured?

Is is possible to see this information in the Docusign web interface (https://account-d.docusign.com/logout#/username)? I would like to check if this data is correctly set in the envelope.

Here's the envelope request (minus some data):

{
    "documents": [{
        "documentId": 1,
        "name": "XXXXXXXXX.pdf",
        "documentBase64": "XXXXXXX"
    }],
    "recipients": {
        "signers": [{
            "tabs": {
                "signHereTabs": [{
                    "documentId": 1,
                    "recipientId": 1,
                    "pageNumber": 1,
                    "anchorString": "recipient_signature"
                }]
            },
            "name": "XXXXXX",
            "email": "XXXX@XXXX.co",
            "recipientId": 1,
            "clientUserId": XXXX
        }]
    },
    "eventNotification": {
        "url": "https:\/\/subdomain.app.com\/docusign\/webhook",
        "loggingEnabled": "true",
        "envelopeEvents": [{
            "envelopeEventStatusCode": "sent"
        }, {
            "envelopeEventStatusCode": "delivered"
        }, {
            "envelopeEventStatusCode": "completed"
        }, {
            "envelopeEventStatusCode": "declined"
        }, {
            "envelopeEventStatusCode": "voided"
        }, {
            "envelopeEventStatusCode": "sent"
        }, {
            "envelopeEventStatusCode": "sent"
        }],
        "recipientEvents": [{
            "recipientEventStatusCode": "Sent"
        }, {
            "recipientEventStatusCode": "Delivered"
        }, {
            "recipientEventStatusCode": "Completed"
        }, {
            "recipientEventStatusCode": "Declined"
        }, {
            "recipientEventStatusCode": "AuthenticationFailed"
        }, {
            "recipientEventStatusCode": "AutoResponded"
        }]
    },
    "status": "sent",
    "emailSubject": "XXXXXX",
    "brandId": "XXXXXXXXXX"
}

EDIT:

Entering Connect -> Log/Failures looks like the system is not really performing as it should, because sometimes I get

And some other times I get an empty list. Going in the publish option, when it's working I get a list of documents/envelopes, and I see the last envelope I sent there, which looks fine.

Answer 1:

您可以在查看最近的连接日志/失败的DocuSign管理 Web应用程序。 详见说明书使用管理网站在这里

如果你的连接信息没有发送到您提供的监听器URL,就应该在失败的部分显示出来。

API:您还可以使用查看连接日志/失败connectEvents的API

下面是一些文档进行故障排除连接问题。

状态代码的资本化是不是一个问题。 他们是不区分大小写。



文章来源: Docusign not hitting webhook URL