首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我们可以创建一个契约并使用DocuSign API将它发送给多个用户吗?

我们可以创建一个契约并使用DocuSign API将它发送给多个用户吗?
EN

Stack Overflow用户
提问于 2020-05-08 09:49:38
回答 1查看 372关注 0票数 1

我们正在开发一个使用asp.net核心的在线注册web应用程序。我们要做的是:-

  1. 我们将在DocuSign内部上传一份合同,并指定用户需要签署合同。
  2. 在我们的应用程序中,如果用户完成注册>>,通知docuSign向用户发送电子邮件签署合同。
  3. 我们希望将DocuSign内部的相同合同发送给多个用户,每个用户都将签署自己的合同。

如果这是DocuSign API所支持的,任何人都能提供建议吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-05-10 21:39:18

当然,实际上有不止一种方法可以做到这一点。但是它的要点是您想要远程签名,而不是嵌入式签名。在远程签名中,向每个收件人发送电子邮件以完成信封签名。下面是代码示例 for C# ASP.NET Core:

它的主旨是:

代码语言:javascript
复制
// Create document objects, one per document
            Document doc1 = new Document();
            string b64 = Convert.ToBase64String(document1(signerEmail, signerName, ccEmail, ccName));
            doc1.DocumentBase64 = b64;
            doc1.Name = "Order acknowledgement"; // can be different from actual file name
            doc1.FileExtension = "html"; // Source data format. Signed docs are always pdf.
            doc1.DocumentId = "1"; // a label used to reference the doc
            Document doc2 = new Document {
                DocumentBase64 = doc2DocxBytes,
                Name = "Battle Plan", // can be different from actual file name
                FileExtension = "docx",
                DocumentId = "2"
            };
            Document doc3 = new Document
            {
                DocumentBase64 = doc3PdfBytes,
                Name = "Lorem Ipsum", // can be different from actual file name
                FileExtension = "pdf",
                DocumentId = "3"
            };
            // The order in the docs array determines the order in the envelope
            env.Documents =  new List<Document> { doc1, doc2, doc3};

            // create a signer recipient to sign the document, identified by name and email
            // We're setting the parameters via the object creation
            Signer signer1 = new Signer {
                Email = signerEmail,
                Name = signerName,
                RecipientId = "1",
                RoutingOrder = "1"
            };

            // routingOrder (lower means earlier) determines the order of deliveries
            // to the recipients. Parallel routing order is supported by using the
            // same integer as the order for two or more recipients.

这有两个文档和通知RoutingOrder,如果您想要多个收件人并想确定他们签署的顺序,就使用它。

我建议您克隆全回购,然后看看它是如何工作的,因为它是一个ASP.NET核心应用程序,您可以立即从VS运行它。

希望这有帮助,乐意回答进一步的问题。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61676379

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档