首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DocuSign公证API错误- NOTARY_NOT_ALLOWED

DocuSign公证API错误- NOTARY_NOT_ALLOWED
EN

Stack Overflow用户
提问于 2021-06-10 19:16:25
回答 1查看 56关注 0票数 0

我正在通过API审查DocuS传公证功能。但我只停留在一点上。

API返回一个异常"{"errorCode":"NOTARY_NOT_ALLOWED",“message”:“公证未启用”。}

.I正在使用开发人员帐户来测试上述功能(demo.docusign.net)。是否有其他设置来启用DocuSign公证?

代码语言:javascript
复制
 private static EnvelopeDefinition MakeEnvelope(string signerEmail, string signerName, string signerClientId, string docPdf, string accountId)
    {
       
        byte[] buffer = System.IO.File.ReadAllBytes(docPdf);
        EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition();
        envelopeDefinition.EmailSubject = "Please sign this document";
        Document doc1 = new Document();
        String doc1b64 = Convert.ToBase64String(buffer);
        doc1.DocumentBase64 = doc1b64;
        doc1.Name = "Lorem Ipsum"; 
        doc1.FileExtension = "docx";
        doc1.DocumentId = "3";
        envelopeDefinition.Documents = new List<Document> { doc1 };
        Signer signer1 = new Signer
        {
            Email = signerEmail,
            Name = signerName,
            ClientUserId = signerClientId,
            RecipientId = "2",
            NotaryId = "1",
            RoutingOrder = "1"
        };
        NotaryRecipient notaryRecipient = new NotaryRecipient
        {
            Email = "xxx@xxx.com",
            Name = "xxx",
            RecipientId = "1",
            RoutingOrder = "1",
            Tabs = new Tabs
            {
                NotarySealTabs = new List<NotarySeal>() { new NotarySeal { XPosition = "50", YPosition = "150", DocumentId = "3", PageNumber = "1" } },
                SignHereTabs = new List<SignHere>() { new SignHere { XPosition = "300", YPosition = "150", DocumentId = "3", PageNumber = "1" } }
            },
            UserId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",//accountId,
            NotaryType = "remote"
        };
      
        Tabs signer1Tabs = new Tabs
        {
            SignHereTabs = new List<SignHere>() { new SignHere { XPosition = "150", YPosition = "150", DocumentId = "3", PageNumber = "1" } }
        };
        signer1.Tabs = signer1Tabs;
        Recipients recipients = new Recipients
        {
            Signers = new List<Signer> { signer1 },
            Notaries = new List<NotaryRecipient> { notaryRecipient }

        };
        envelopeDefinition.Recipients = recipients;
        envelopeDefinition.Status = "sent";
        return envelopeDefinition;
    }

我错过了什么吗?

我还在相应的账户中添加了公证

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-11 03:58:41

密码有点错了。您需要这样做(请参阅主题的博客帖子 ):

代码语言:javascript
复制
var notaryHost = new NotaryHost
{
    Name = "Nadia Notary",
    Email = "nadianotary@domain.com",
    DeliveryMethod = "email",
    RecipientId = "2",
    Tabs = new Tabs { NotarizeTabs = notarizeTabs }
};
// InPersonSigner is used here even if the signer doesn't sign in person
var inPersonSigner = new InPersonSigner
{
    NotaryHost = notaryHost,
    Name = "Eddie End User", 
    Email = "endusersigner@domain.com", 
    RecipientId = "1",
    InPersonSigningType = "notary",
    Tabs = new Tabs { SignHereTabs = signHereTabs }
};
var inPersonSigners = new List<InPersonSigner>();
inPersonSigners.Add(inPersonSigner);
var recipients = new Recipients{ InPersonSigners = inPersonSigners };

PS

这可能是因为您正在尝试使用beta远程在线公证功能,而不是更成熟的eNotary,后者是eSign的一部分。如果这是你的意图,你可能无法做到这一点,因为这是一个封闭的测试版,还没有向每个人开放。

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

https://stackoverflow.com/questions/67927252

复制
相关文章

相似问题

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