【问题标题】:View attachments added through API docusign查看通过 API 文档添加的附件
【发布时间】:2020-02-13 01:27:41
【问题描述】:

我正在使用以下端点向信封添加附件:

PUT /v2.1/accounts/{accountId}/envelopes/{envelopeId}/attachments

显然请求进展顺利,因为我得到了这个回报:

 "attachments" => array:2 [
    0 => array:4 [
      "attachmentId" => "656A658D-AD83-438C-B58D-86738486349C"
      "attachmentType" => "png"
      "name" => "asdas"
      "accessControl" => "SenderAndAllRecipients"
    ]
  ]

但是视图上的签名者什么都看不到。签名者可以在哪里下载或可视化通过 api 添加的附件?

更新

发送附件的方法:

 public function addAttachments($saleContract, $envelopeId)
    {
        $attachments = array();

        foreach ($saleContract->document as $document){
          array_push($attachments, [
              'accessControl' => 'senderAndAllRecipients',
              'attachmentId' => $document->id,
              'attachmentType' => \File::extension($document->storage_file_name),
              'data' => base64_encode(Storage::disk('sienge')->get($document->storage_file_name)),
              'name' => $document->file_name,
          ]);
        }

        Docusign::addEnvelopeAttachments($envelopeId, $attachments);
    }

【问题讨论】:

    标签: laravel docusignapi


    【解决方案1】:

    这些是 Envelope API 附件,只能通过 API 访问。当您通过 API 添加这些附件时,您只能通过 API 访问,并且在签名屏幕上不可用。

    这些元数据类似于信封中的元数据,不应显示在签名屏幕上,只能通过 API 访问。 Dev Doc 解释了如何阅读这些 API 附件

    【讨论】:

    • 感谢您的回答!那么,有一种方法可以让我们使用 API 将文件添加到信封中,并且签名者可以从签名屏幕访问这些文件?
    • 如果您在信封中添加任何文档,他们将能够在签名屏幕上看到它。 Examples 展示了一些如何发送信封进行签名的示例。
    • 谢谢,我现在正在使用文件。但是现在返回了以下错误:"errorCode":"TAB_PAGENUMBER_IS_NOT_IN_DOCUMENT","message":"The pagenumber specified in the tab element is not in the document that the tab refers to. Tab on Page 3 of Document 1 for Recipient 1我使用带有标签的模板 id,这可以交互吗?
    • 这是一个 diff qs,请将当前 qs 标记为已关闭并使用您的代码和错误打开一个新的。
    • 对我有用的唯一方法是仅使用模板 ID 创建信封,并作为草稿添加文档,然后发送。使用模板 ID 和文档创建信封无效。
    猜你喜欢
    • 1970-01-01
    • 2015-03-20
    • 1970-01-01
    • 2017-08-09
    • 2016-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多