docusignapidocusign-sdk

How to send WhatsApp DocuSign


I'm trying to send, to receive the envelope via WhatsApp. I'm using SDK, with version 3.16.1 of docusign-esign-java, I'm putting

additionalNotification.setSecondaryDeliveryMethod("WhatsApp")

however, I am receiving the following error:

EXError while requesting server, received a non successful HTTP code 400 with response Body: '{"errorCode":"ADDITIONAL_NOTIFICATION_CHANNEL_NOT_SUPPORTED","message":"The Additional Notification channel is not supported. Envelope definition should not have additional notification channel: WhatsApp for recip 1"}'


Solution

  • my account was not enabled to send whatsapp and it was also sending the wrong parameters.

    correct json:

    "signers": [
        {
            "phoneNumber": {
                "countryCode": "{SIGNER_PHONE_COUNTRY}",
                "number": "{SIGNER_PHONE_NUMBER}"
            },
            "name": "{SIGNER_NAME}",
            "recipientId": "1",
            "routingOrder": "1",
            "deliveryMethod": "WhatsApp"
    "tabs": {
                "signHereTabs": [
                    {
                        "anchorString": "**signature_1**",
                        "anchorUnits": "pixels",
                        "anchorXOffset": "20",
                        "anchorYOffset": "10"
                    },
                    {
                        "anchorString": "/sn1/",
                        "anchorUnits": "pixels",
                        "anchorXOffset": "20",
                        "anchorYOffset": "10"
                    }
                ]
            }
        }
    ]