We are currently experiencing some technical difficulties whilst developing an integrated web solution using docusign. Can you advise on the following please:
How do we assign an order of signing to recipients on a document based rest api call? Can we have a json example?
We are currently unable to retrieve a signing url for a user that has been added to a created envelope. This code was previously working for Template based envelope creation but does not work for ones based on using PDFs.
The call and response to the docusign API (with the password removed) is shown below. Two kinds of authentication method have been tried which failed. Retrieval via either of the emails found in the envelope also fails.
POST \\https://demo.docusign.net/restapi/v2/accounts/426142/envelopes/3b2d7418-27d3-4a80-8969-d875b6fb9548/views/recipient HTTP/1.1
X-DocuSign-Authentication: {"Username":"18f90756-70b1-4f5f-b360-48b198a17215","Password":"*REMOVED*","IntegratorKey":"*REMOVED*"}
Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml
Content-Type: application/json
Host: demo.docusign.net<http://demo.docusign.net>
Content-Length: 128
Accept-Encoding: gzip, deflate
{
"authenticationMethod": "email",
"userName": "Simon",
"email": "test@email",
"returnUrl": "http://www.google.com"
}
HTTP/1.1 400 Bad Request
Cache-Control: no-cache
Content-Length: 274
Content-Type: application/json; charset=utf-8
Date: Fri, 24 Jan 2014 12:11:38 GMT
Strict-Transport-Security: max-age=7776000; includeSubDomains
{
"errorCode": "UNKNOWN_ENVELOPE_RECIPIENT",
"message": "The recipient you have identified is not a valid recipient of the specified envelope. Envelope recipient could not be determined. 'clientUserId', 'email', or 'userName' in request and envelope may not match."
}