title: DocuSign REST API - RecipientView Exception "UNKNOWN_ENVELOPE_RECIPIENT"
body: <p>We are currently experiencing some technical difficulties whilst developing an integrated web solution using docusign. Can you advise on the following please:</p>
  <ol>
  <li><p>How do we assign an order of signing to recipients on a document based rest api call? Can we have a json example?</p>
  </li>
  <li><p>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.</p>
  </li>
  </ol>
  <p>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.</p>
  <pre><code>POST \\https://demo.docusign.net/restapi/v2/accounts/426142/envelopes/3b2d7418-27d3-4a80-8969-d875b6fb9548/views/recipient HTTP/1.1 
  X-DocuSign-Authentication: {&quot;Username&quot;:&quot;18f90756-70b1-4f5f-b360-48b198a17215&quot;,&quot;Password&quot;:&quot;*REMOVED*&quot;,&quot;IntegratorKey&quot;:&quot;*REMOVED*&quot;} 
  Accept: application/json, application/xml, text/json, text/x-json, text/javascript, text/xml  
  Content-Type: application/json 
  Host: demo.docusign.net&lt;http://demo.docusign.net&gt; 
  Content-Length: 128 
  Accept-Encoding: gzip, deflate 
  
  {
      &quot;authenticationMethod&quot;: &quot;email&quot;,
      &quot;userName&quot;: &quot;Simon&quot;,
      &quot;email&quot;: &quot;test@email&quot;,
      &quot;returnUrl&quot;: &quot;http://www.google.com&quot;
  } 
  
  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 
  
  { 
  &quot;errorCode&quot;: &quot;UNKNOWN_ENVELOPE_RECIPIENT&quot;, 
  &quot;message&quot;: &quot;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.&quot; 
  } 
  </code></pre>