docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

400 UNSPECIFIED_ERROR Object reference not set to an instance of an object.

Open Arlen22 opened this issue 2 years ago • 2 comments

options

{
  "method": "POST",
  "url":"https://demo.docusign.net/restapi/v2.1/accounts/redacted_uuid/envelopes",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer ey_redacted_3A"
  }
}

body

{
  "documents": [
    {
      "documentBase64": "<base64>",
      "name": "Signing document",
      "fileExtension": "pdf",
      "documentId": "1",
      "tabs": {
        "signHereTabs": [
          {
            "documentId": "1",
            "height": "0",
            "isSealSignTab": "false",
            "name": "SignHere",
            "optional": "false",
            "recipientId": "1",
            "scaleValue": "1",
            "stampType": "signature",
            "tabId": "692c2455-da28-4305-a9f1-d3d94ca6b582",
            "tabLabel": "Signature 4d50315c-268e-4e1e-af4e-fdd3b9f10833",
            "tabType": "signhere",
            "templateLocked": "false",
            "templateRequired": "false",
            "tooltip": "SignHere",
            "width": "0",
            "xPosition": "42",
            "yPosition": "347"
          }
        ]
      }
    }
  ],
  "emailSubject": "Please sign this document set",
  "recipients": {
    "signers": [
      {
        "email": "[email protected]",
        "name": "Arlen Redacted",
        "recipientId": "1",
        "routingOrder": "1"
      }
    ]
  },
  "status": "sent"
}

Arlen22 avatar Jun 23 '23 17:06 Arlen22

Hi Arien22,

Please move your "tabs" list to your Signers object. Like this:

"signers": [
			{
				"email": "[email protected]",
				"name": "Arlen Redacted",
				"recipientId": "1",
				"routingOrder": "1",
				"tabs": {
					"signHereTabs": [
						{
							"documentId": "1",
							"height": "0",
							"isSealSignTab": "false",
							"name": "SignHere",
							"optional": "false",
							"recipientId": "1",
							"scaleValue": "1",
							"stampType": "signature",
							"tabId": "692c2455-da28-4305-a9f1-d3d94ca6b582",
							"tabLabel": "Signature 4d50315c-268e-4e1e-af4e-fdd3b9f10833",
							"tabType": "signhere",
							"templateLocked": "false",
							"templateRequired": "false",
							"tooltip": "SignHere",
							"width": "0",
							"xPosition": "42",
							"yPosition": "347",
							"pagenumber": "1"
						}
					]
				}
			}
		]

Adrian DocuSign Developer Support

Adrian-DS-Support avatar Jun 24 '23 22:06 Adrian-DS-Support

The website docs seem to indicate that I can include it in either location. In my case, I can move it and it works fine then, but it seems like the docs should be updated at the very least or else this is a bug that needs to be fixed.

Arlen22 avatar Jul 04 '23 13:07 Arlen22