如何使用 docusign Api 将任何格式的文件发送到 Docusign

How to Send file of any format to Docusign using docusign Api

我需要附加任何格式的文件并创建 Docusign 信封,目前我只能附加 pdf 文件, 我如何附加任何格式的文件并创建信封?

感谢您的帮助。

如果您使用的是 DocuSign 网站,您可以通过文件上传按钮上传不同类型的文件。

如果您正在使用 DocuSign REST API 并发送原始 API 请求并构建您自己的 JSON 您可以发出 multipart/form-data POST 请求根据您发送的文件类型设置适当的 header。例如,如果发送 .docx 文件,您需要将 Content-Type header 设置为 application/vnd.openxmlformats-officedocument.wordprocessingml.document。你可以通过 API Explorer, and here is the corresponding REST API call 测试这个。

最后,如果您使用的是开源 DocuSign API 客户端,例如 DocuSign-Java-Client,您应该能够简单地提供要签名的文件的路径,然后只需设置 fileExtension 属性 在您请求的 documents 节点内。