Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arlen22 opened this issue Jun 23, 2023 · 2 comments
Open

Comments

@Arlen22
Copy link

Arlen22 commented Jun 23, 2023

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": "redacted@gmail.com",
        "name": "Arlen Redacted",
        "recipientId": "1",
        "routingOrder": "1"
      }
    ]
  },
  "status": "sent"
}
@Arlen22 Arlen22 changed the title $00 UNSPECIFIED_ERROR Object reference not set to an instance of an object. 400 UNSPECIFIED_ERROR Object reference not set to an instance of an object. Jun 23, 2023
@Adrian-DS-Support
Copy link

Hi Arien22,

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

"signers": [
			{
				"email": "adrianc@gmail.com",
				"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

@Arlen22
Copy link
Author

Arlen22 commented Jul 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants