当前位置: 首页 > 知识库问答 >
问题:

DocuSign API-如何使签名者收到签名文档的副本

邹山
2023-03-14

我已经工作了两年了。然后,在签名者签署了一份文件后,它停止向他们发送电子邮件。顺便说一下,文档是从一个小部件嵌入式方法创建的。

我使用的是docusign API的PHP SDK。下面是我代码的摘要

$envelopeApi = new \DocuSign\eSign\Api\EnvelopesApi($apiClient);
$document = new \DocuSign\eSign\Model\Document();
$document->setDocumentBase64("My document template");
$document->setName("My template name);
$document->setDocumentId("randomly generated document ID");

// creates the sign here
$signHere = new \DocuSign\eSign\Model\SignHere();
$signHere->setAnchorString("Signature:");
$signHere->setAnchorIgnoreIfNotPresent("false");
$signHere->setAnchorUnits("pixels");
$signHere->setAnchorYOffset("50");
$signHere->setAnchorXOffset("5");
$signHere->setDocumentId("The document ID");
$signHere->setRecipientId("The recipient ID, randomly generated");

// add the signature tab to the envelope's list of tabs
$tabs = new \DocuSign\eSign\Model\Tabs();
$tabs->setSignHereTabs(array($signHere));

// add the signer to the envelope
$signer = new \DocuSign\eSign\Model\Signer();
$signer->setName("Recipient Name");
$signer->setEmail("Recipient Email");
$signer->setRecipientId("The recipient ID");
$signer->setTabs($tabs);
$signer->setClientUserId("The client user ID");

// Add a recipient to sign the document
$recipients = new \DocuSign\eSign\Model\Recipients();
$recipients->setSigners(array($signer));
$envelop_definition = new \DocuSign\eSign\Model\EnvelopeDefinition();
$envelop_definition->setEmailSubject("Mail subject");

// set envelope status to "sent" to immediately send the signature request
$envelop_definition->setStatus("sent");
$envelop_definition->setRecipients($recipients);
$envelop_definition->setDocuments(array($document));

// create and send the envelope! (aka signature request)
$envelopeApi->createEnvelope("Owner account ID", $envelop_definition, null);

共有1个答案

袁晋鹏
2023-03-14

通过为签名者设置ClientUserId,您将创建一个俘获收件人。如果希望DocuSign进行电子邮件传递,请删除ClientUserId参数,将创建一个远程收件人。

 类似资料:
  • 但是,在查看REST API文档时,会指出API在将选项卡发送给接收者时检索选项卡的原始值(originalValue)。 这正是我发现的行为。是否存在其他方法来检索签名者输入的数据?

  • 我的要求是:在网站上,用户可以点击[我们的]平台上的签名按钮,直接弹出要签名的文档并在文档上签名 目前,根据DocuSign嵌入式发送和签名文档,我们使用JWT admin授权方法获取访问权\uu用户可以通过文档“envelopeviews:create recipient”打开并签署文档URL, 问题: 如果我们直接复制DocuSign URL并在浏览器中打开它,页面将正确显示要签名的文档页面。

  • 我试图使用DocuSign REST API创建一个简单的场景,如下所示: 我有2个签名者,Signer1和Signer2 将文档发送到Signer1以检查和签名 签名者2被通知并检查文档并在签名者1签名的地方签名 除了Signer1查看文档时,他们会看到Signer2的标签,并必须为Signer2签名之外,我还可以按顺序工作。文档中的选项卡有不同的名称,我正在将相关的AnchorString添加

  • > 似乎签名者必须创建或已经拥有DocuSign帐户才能对文档进行电子签名?那是真的吗?

  • 您好,我可以使用iText 5对PDF文档进行数字签名。我需要再次签署PDF,而在验证PDF时,它表明初始签名无效。您可以在此处查看再次签名的文件。 请参见下面用于标记的代码, 请让我知道出了什么问题。