Asp.net core 我们是否可以创建一个合同并使用DocuSign API将其发送给多个用户
我们正在使用asp.net核心开发一个在线注册web应用程序。我们要做的是:- 我们将在DocuSign中上传一份合同,并指定用户需要签署合同。 在我们的应用程序中,如果用户完成注册>>,请通知docuSign向用户发送电子邮件以签署合同 我们希望DocuSign中的相同合同发送给多个用户,每个用户都将签署自己的合同。Asp.net core 我们是否可以创建一个合同并使用DocuSign API将其发送给多个用户,asp.net-core,docusignapi,Asp.net Core,Docusignapi,我们正在使用asp.net核心开发一个在线注册web应用程序。我们要做的是:- 我们将在DocuSign中上传一份合同,并指定用户需要签署合同。 在我们的应用程序中,如果用户完成注册>>,请通知docuSign向用户发送电子邮件以签署合同 我们希望DocuSign中的相同合同发送给多个用户,每个用户都将签署自己的合同。 如果DocuSign API支持这一点,有人能给出建议吗?当然,事实上,有多种方法可以做到这一点。 但其要点是您需要远程签名,而不是嵌入式签名。 在远程签名中,向每个收件人发送一
如果DocuSign API支持这一点,有人能给出建议吗?当然,事实上,有多种方法可以做到这一点。 但其要点是您需要远程签名,而不是嵌入式签名。 在远程签名中,向每个收件人发送一封电子邮件以完成信封签名。 对于C ASP.NET核心: 其要点如下:
// 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.
这有2个文档和通知RoutingOrder,如果您希望有多个收件人并希望确定他们签署的订单,则使用该文档和通知RoutingOrder
我建议您克隆,然后看看它是如何工作的,因为它是一个ASP.NET核心应用程序,您可以立即从VS运行它
希望这有帮助,很高兴回答更多问题。当然,事实上,有不止一种方法可以做到这一点。 但其要点是您需要远程签名,而不是嵌入式签名。 在远程签名中,向每个收件人发送一封电子邮件以完成信封签名。 对于C ASP.NET核心: 其要点如下:
// 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.
这有2个文档和通知RoutingOrder,如果您希望有多个收件人并希望确定他们签署的订单,则使用该文档和通知RoutingOrder
我建议您克隆,然后看看它是如何工作的,因为它是一个ASP.NET核心应用程序,您可以立即从VS运行它
希望这有帮助,很高兴回答更多问题。非常感谢您的帮助回答,但是与DocuSign的集成在哪里,我可以在代码中看到他们正在创建文档,但是与DocuSign的API集成在哪里。。对不起,我是新手,不用担心,我没有粘贴完整的代码。它使用的是我们称之为SDK的东西,它是一个C库,为您进行实际的API调用。您仍然需要进行身份验证并获取令牌才能进行安全调用,但这使它变得非常简单。请尝试转到我提到的GitHub repo,阅读说明,并尝试将其作为第一步进行操作。让我知道我还能提供哪些帮助。一旦你感到高兴,请将问题标记为已回答。谢谢好的,谢谢,但回到我的第一个问题,api是否支持创建一个总合同,并将其发送给独立用户签署?我的意思是,每个用户都有自己的合同?所以我创建了一个文档并将副本发送给不同的用户??是否支持此功能?例如,eSignature API不支持文档生成。例如,您不能像使用文字处理器那样使用DocuSign API。您可以将文件与其他各种属性一起传递给DocuSign API。现在,该文件可以是PDF、html、png等格式。我们的平台将处理履行该合同所需的所有交互。非常感谢您的帮助回复,但是与DocuSign的集成在哪里,我可以在代码中看到他们正在创建文档,但与DocuSign的API集成在哪里。。对不起,我是新手,不用担心,我没有粘贴完整的代码。它使用的是我们称之为SDK的东西,它是一个C库,为您进行实际的API调用。您仍然需要进行身份验证并获取令牌才能进行安全调用,但这使它变得非常简单。请尝试转到我提到的GitHub repo,阅读说明,并尝试将其作为第一步进行操作。让我知道我还能提供哪些帮助。一旦你感到高兴,请将问题标记为已回答。谢谢好的,谢谢,但回到我的第一个问题,api是否支持创建一个总合同,并将其发送给独立用户签署?我的意思是,每个用户都有自己的合同?所以我创建了一个文档并将副本发送给不同的用户??是否支持此功能?例如,eSignature API不支持文档生成。例如,您不能像使用文字处理器那样使用DocuSign API。您可以将文件与其他各种属性一起传递给DocuSign API。现在,该文件可以是PDF、html、png等格式。我们的平台将处理履行该合同所需的所有交互。