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

Creating Envelope Rest API Failure #26

Open
PavanKumarH opened this issue Jul 11, 2017 · 0 comments
Open

Creating Envelope Rest API Failure #26

PavanKumarH opened this issue Jul 11, 2017 · 0 comments

Comments

@PavanKumarH
Copy link

Hello I am getting the following error when I try to create an envelope

{
  "errorCode": "INVALID_REQUEST_BODY",
  "message": "The request body is missing or improperly formatted. Cannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'API_REST.Models.v2.document[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\r\nPath 'documents.documentId', line 1, position 74."
}

SO docusign can't parse a json string in maven set up. Below is my json string passed as a Post Api body:

{"status":"sent","emailSubject":"Test","documents":{"documentId":"1","name":"TestPDF.pdf","documentBase64":"Actual encoded document will be passed here"},"recipients":{"signers":{"name":"Pavan Palegar","email":"[email protected]","recipientId":"12","clientUserId":"12345","tabs":{"signHereTabs":{"documentId":"1","xPosition":100,"yPosition":525,"pageNumber":5}}}}}

I have followed the exact documentation as below:
https://www.docusign.com/developer-center/explore/features/embedding-docusign

Kindly, let me know what do you make of it.
Thanks

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

1 participant