EnvelopeViews: createSharedRecipient

Request

HTTP request

POST /v2.1/accounts/{accountId}/envelopes/{envelopeId}/views/shared

Parameters

Parameter NameValueDescription
Path Parameters
accountIdstring

The external account number (int) or account ID GUID.

envelopeIdstring

The envelope's GUID. (For example, 93be49ab-afa0-4adf-933c-f752070d71ec).

Responses

CodeDescriptionReference
201

Successful response.

TemplateViews
400

Error encountered.

errorDetails

SDK Method

Envelopes::createEnvelopeRecipientSharedView

Definitions

errorDetails

This object describes errors that occur. It is only valid for responses, and ignored in requests.

errorCodestring

A code associated with the error condition.

messagestring

A brief message describing the error condition.

recipientViewRequest

assertionIdstring

A unique identifier of the authentication event executed by the client application.

authenticationInstantstring

A sender generated value that indicates the date/time that the signer was authenticated.

authenticationMethodstring

Required. Choose a value that most closely matches the technique your application used to authenticate the recipient / signer.

Choose a value from this list:

  • Biometric
  • Email
  • HTTPBasicAuth
  • Kerberos
  • KnowledgeBasedAuth
  • None
  • PaperDocuments
  • Password
  • RSASecureID
  • SingleSignOn_CASiteminder
  • SingleSignOn_InfoCard
  • SingleSignOn_MicrosoftActiveDirectory
  • SingleSignOn_Other
  • SingleSignOn_Passport
  • SingleSignOn_SAML
  • Smartcard
  • SSLMutualAuth
  • X509Certificate

This information is included in the Certificate of Completion.

clientUserIdstring

A sender created value. If provided, the recipient is treated as an embedded (captive) recipient or signer.

Use your application's client ID (user ID) for the recipient. Doing so enables the details of your application's authentication of the recipient to be connected to the recipient's signature if the signature is disputed or repudiated.

Maximum length: 100 characters.

emailstring

Specifies the email of the recipient. You can use either email and userName or userId to identify the recipient.

pingFrequencystring

Only used if pingUrl is specified. This is the interval, in seconds, between pings on the pingUrl. The default is 300 seconds. Valid values are 60-1200 seconds.

pingUrlstring

A client Url to be pinged by the DocuSign Signing experience to indicate to the client that Signing is active. An HTTP Get is executed against the client. The response from the client is ignored. The intent is for the client to reset it's session timer when the request is received.

recipientIdstring

Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document.

returnUrlstring

The URL that the recipient is redirected to after the signing session has ended. DocuSign redirects to the URL and includes an event query parameter that can be used by your application.

Possible event parameter values include:

  • access_code_failed
    Recipient used incorrect access code.
  • cancel
    Recipient canceled the signing operation, possibly by using the Finish Later option.
  • decline
    Recipient declined to sign.
  • exception
    A system error occurred during the signing process.
  • fax_pending
    Recipient has a fax pending.
  • id_check_failed
    Recipient failed an ID check.
  • session_timeout
    The session timed out. An account can control this timeout using the Signer Session Timeout option.
  • signing_complete
    Recipient completed the signing ceremony.
  • ttl_expired
    The Time To Live token for the envelope has expired. After being successfully invoked, these tokens expire after 5 minutes or if the envelope is voided.
  • viewing_complete
    The recipient completed viewing an envelope that is in a read-only/terminal state such as completed, declined, or voided.

Be sure to include https:// in the URL or the redirect may fail on certain browsers.

securityDomainstring

The domain in which the user authenticated.

userIdstring

Specifies the user ID of the recipient. You can use with user ID or email and user name to identify the recipient.

If userId is used and a clientUserId is provided, the value in the userId property must match a recipientId (which can be retrieved with a GET recipients call) for the envelope.

If a userId is used and a clientUserId is not provided, the userId must match the user ID of the authenticating user.

userNamestring

Specifies the username of the recipient. You can use either email and userName or userId to identify the recipient.

xFrameOptionsstring

xFrameOptionsAllowFromUrlstring

TemplateViews

Embedding template views

urlstring

The view URL to be navigated to.

Examples

Generic JSON Request/Response

Request
{
  "clientUserId": "sample string 1",
  "userId": "sample string 2",
  "userName": "sample string 3",
  "email": "sample string 4",
  "recipientId": "sample string 5",
  "returnUrl": "sample string 6",
  "pingUrl": "sample string 7",
  "pingFrequency": "sample string 8",
  "authenticationMethod": "sample string 9",
  "assertionId": "sample string 10",
  "authenticationInstant": "sample string 11",
  "securityDomain": "sample string 12",
  "xFrameOptions": "sample string 13",
  "xFrameOptionsAllowFromUrl": "sample string 14"
}
Response
{
  "url": "sample string 1"
}
Generic XML Request/Response

Request
<recipientViewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
  <assertionId>sample string 10</assertionId>
  <authenticationInstant>sample string 11</authenticationInstant>
  <authenticationMethod>sample string 9</authenticationMethod>
  <clientUserId>sample string 1</clientUserId>
  <email>sample string 4</email>
  <pingFrequency>sample string 8</pingFrequency>
  <pingUrl>sample string 7</pingUrl>
  <recipientId>sample string 5</recipientId>
  <returnUrl>sample string 6</returnUrl>
  <securityDomain>sample string 12</securityDomain>
  <userId>sample string 2</userId>
  <userName>sample string 3</userName>
  <xFrameOptions>sample string 13</xFrameOptions>
  <xFrameOptionsAllowFromUrl>sample string 14</xFrameOptionsAllowFromUrl>
</recipientViewRequest> 
Response
<viewUrl xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
  <url>sample string 1</url>
</viewUrl> 
}} />