简体   繁体   English

DocuSign API:通过电子邮件发送带有信封 ID 的签名请求

[英]DocuSign API: sending a signature request via e-mail with the Envelope ID

I am trying to do the following with the DocuSign API, but I am not getting very much wiser from their documentation.我正在尝试使用 DocuSign API 执行以下操作,但我并没有从他们的文档中获得非常明智的信息。

  1. The admin creates the envelope in DocuSign just as they normally would, but without sending it管理员像往常一样在 DocuSign 中创建信封,但不发送
  2. They take the Envelope ID and enter it in our software他们获取信封 ID 并将其输入到我们的软件中
  3. We show a button to the end user that sends out the Envelope signature request when clicked (based on the Envelope ID)我们向最终用户显示一个按钮,在单击时发送信封签名请求(基于信封 ID)

The closest I came to finding something like this was https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-email-remote/ but that doesn't seem to allow me to use and existing envelope.我最接近找到这样的东西是https://developers.docusign.com/docs/esign-rest-api/how-to/request-signature-email-remote/但这似乎不允许我使用和现有的信封。 The API reference doesn't seem to offer any help either ( https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/ ) API 参考似乎也没有提供任何帮助( https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/

What I have got so far is the following:到目前为止,我得到的是以下内容:

  1. OAuth + generating the JWT + access token (works fine) OAuth + 生成 JWT + 访问令牌(工作正常)

  2. generating Recipient View (which is not what I need but needs to be replaced with the right call生成收件人视图(这不是我需要的,但需要用正确的调用替换

    $view_request = new \DocuSign\eSign\Model\RecipientViewRequest(['return_url' => $args['ds_return_url']]); if ($args['starting_view'] == "envelope" && $args['envelope_id']) { $view_request->setEnvelopeId($args['envelope_id']); } # Call the API method $config = new \DocuSign\eSign\Configuration(); $config->setHost($args['base_uri']); $config->addDefaultHeader('Authorization', 'Bearer '. $args['ds_access_token']); $api_client = new \DocuSign\eSign\Client\ApiClient($config); $envelope_api = new \DocuSign\eSign\Api\EnvelopesApi($api_client); $results = $envelope_api->createRecipientView($args['account_id'], $view_request); $view_url = $results['url']; return $view_url;

Thanks!谢谢!

So based on your description it looks like for the first step, you're looking to create an envelope as a draft .因此,根据您的描述,第一步看起来像,您希望创建一个信封作为草稿 Which is basically creating an envelope, filling all the information out, and then not sending it.这基本上是创建一个信封,填写所有信息,然后不发送。

This will spit out an envelope Id which you can store in your application.这将输出一个信封 ID,您可以将其存储在您的应用程序中。

And when the button you describe is clicked, you can update the status of the envelope to "sent" using this endpoint which will send out the envelope.当单击您描述的按钮时,您可以使用此端点将信封的状态更新为“已发送”,该端点将发送信封。

If you're looking for something more detailed, you can always reach out to us at DocuSign Developer Support and we can discuss it further.如果您正在寻找更详细的信息,您可以随时通过DocuSign 开发人员支持与我们联系,我们可以进一步讨论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM