远程签名 Docusign 信封后重定向到特定网址

问题描述 投票:0回答:1

我正在使用 Docusign.eSign Rest API 发送信封。 签名后,我希望签名者被重定向到特定的网址

结果是一个 DocuSign 页面,邀请您注册...或保存协议副本...没有计时器来处理重定向网址

是否可以绕过 DocuSign 页面?

我已完成帐户/设置/品牌/目标网址/签名设置 我的信封定义包含brandId和BrandLock

docusignapi docusign-sdk
1个回答
0
投票

是的,您可以通过创建一个品牌,在该品牌上设置信封完整 URL,然后,不要忘记,在发送信封时使用该品牌来实现此目的。

所以 3 个步骤:

  1. 创建新品牌
  2. 将您的 URL 分配给品牌
  3. 将品牌分配给信封

此代码示例中显示了步骤 3 - https://developers.docusign.com/docs/esign-rest-api/how-to/apply-brand-to-envelope/

类似的拒绝签名 URL,您可以在 https://www.docusign.com/blog/developers/common-api-tasks-sending-signers-to- Different-url-if 中找到代码和更多信息-他们拒绝签名

以下是为信封分配品牌的 C# 代码:

EnvelopeDefinition env = CreateEnvelope(signerEmail, signerName, brandId, status, docPdf);
        public static EnvelopeDefinition CreateEnvelope(string signerEmail, string signerName, string brandId, string status, string docPdf)
        {
string docPdfBytes = Convert.ToBase64String(System.IO.File.ReadAllBytes(docPdf));

// create the envelope definition
EnvelopeDefinition env = new EnvelopeDefinition();
env.EmailSubject = "Please sign this document set";

// Create document objects, one per document
Document doc = new Document
{
    DocumentBase64 = docPdfBytes,
    Name = "Lorem Ipsum", // can be different from actual file name
    FileExtension = "pdf",
    DocumentId = "1",
};

// The order in the docs array determines the order in the envelope
env.Documents = new List<Document> { doc };

// 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",
};

// Create signHere fields (also known as tabs) on the documents,
// We're using anchor (autoPlace) positioning
//
// The DocuSign platform searches throughout your envelope's
// documents for matching anchor strings.
SignHere signHere = new SignHere
{
    AnchorString = "/sn1/",
    AnchorUnits = "pixels",
    AnchorYOffset = "10",
    AnchorXOffset = "20",
};

// Tabs are set per recipient / signer
Tabs signer1Tabs = new Tabs
{
    SignHereTabs = new List<SignHere> { signHere, },
};
signer1.Tabs = signer1Tabs;

// Add the recipients to the envelope object
Recipients recipients = new Recipients
{
    Signers = new List<Signer> { signer1 },
};
env.Recipients = recipients;
env.Status = status;

// Set the brand id.
env.BrandId = brandId;

return env;
        }
© www.soinside.com 2019 - 2024. All rights reserved.