Docusignapi DocuSign REST API错误代码\u收件人的电子邮件地址\u无效

Docusignapi DocuSign REST API错误代码\u收件人的电子邮件地址\u无效,docusignapi,Docusignapi,在130个模板中的少数模板上接收无效的收件人电子邮件地址。以下是发送到DocuSign REST API v2的两个JSON请求: {"status":"sent","emailBlurb":"","emailSubject":"Please DocuSign this document: blah blah blah", "templateId":"308B68BB-85B7-42A0-8D11-7DF84F485681", "customFields":{"textCustomFields"

在130个模板中的少数模板上接收无效的收件人电子邮件地址。以下是发送到DocuSign REST API v2的两个JSON请求:

{"status":"sent","emailBlurb":"","emailSubject":"Please DocuSign this document: blah blah blah",
"templateId":"308B68BB-85B7-42A0-8D11-7DF84F485681",
"customFields":{"textCustomFields":[{"name":"TAMID","value":"XXXXXXX"}]},
"templateRoles":[{"email":"dsmith16@answerfinancial.com","name":"Melinda Nelson","roleName":"Client"}]}

第一个返回无效的收件人错误代码的电子邮件地址,而第二个正确地“发送”。我看了一下模板,除了文档本身的内容之外,它们似乎是相同的。有没有人遇到过类似的问题,有没有解决办法?感谢您的帮助

下面是两个几乎相同的模板XML。名称中带有“(错误代码)”的代码在100%的时间内返回错误。PDFBytes节点内容已删除

<?xml version="1.0" encoding="utf-8"?>
<EnvelopeTemplate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.net/API/3.0">
<EnvelopeTemplateDefinition>
    <TemplateID>3fb25b02-eabc-49c1-b904-3d04a3601abd</TemplateID>
    <Name>MO 100 Producer Service Agreement (Bad Code)</Name>
    <Shared>true</Shared>
    <TemplatePassword/>
    <TemplateDescription>MO 100 Producer Service Agreement</TemplateDescription>
    <LastModified>2014-01-08T22:21:09.813</LastModified>
    <PageCount>1</PageCount>
</EnvelopeTemplateDefinition>
<Envelope>
    <AccountId>736c1f32-6c73-4798-b67b-de3f6a1a61bc</AccountId>
    <Documents>
        <Document>
            <ID>1</ID>
            <Name>MO_100_R_Producer Service Agreement.pdf</Name>
            <PDFBytes/>
        </Document>
    </Documents>
    <Recipients>
        <Recipient>
            <ID>1</ID>
            <UserName/>
            <Email/>
            <Type>Signer</Type>
            <AccessCode/>
            <RequireIDLookup>false</RequireIDLookup>
            <SAMLAuthentication>
                <SAMLAttributes/>
            </SAMLAuthentication>
            <RoutingOrder>1</RoutingOrder>
            <Note/>
            <RoleName>Client </RoleName>
            <TemplateLocked>true</TemplateLocked>
            <TemplateRequired>true</TemplateRequired>
            <SignInEachLocation>false</SignInEachLocation>
        </Recipient>
    </Recipients>
    <Tabs>
        <Tab>
            <DocumentID>1</DocumentID>
            <RecipientID>1</RecipientID>
            <PageNumber>1</PageNumber>
            <XPosition>136</XPosition>
            <YPosition>519</YPosition>
            <ScaleValue>1</ScaleValue>
            <Type>SignHere</Type>
            <Name>Sign Here</Name>
            <TabLabel>Signature 1</TabLabel>
            <Value/>
            <TemplateLocked>false</TemplateLocked>
            <TemplateRequired>false</TemplateRequired>
            <Bold>false</Bold>
            <Italic>false</Italic>
            <Underline>false</Underline>
        </Tab>
        <Tab>
            <DocumentID>1</DocumentID>
            <RecipientID>1</RecipientID>
            <PageNumber>1</PageNumber>
            <XPosition>120</XPosition>
            <YPosition>608</YPosition>
            <ScaleValue>1</ScaleValue>
            <Type>DateSigned</Type>
            <Name>Date Signed</Name>
            <TabLabel>Date Signed</TabLabel>
            <Value/>
            <TemplateLocked>false</TemplateLocked>
            <TemplateRequired>false</TemplateRequired>
            <Bold>false</Bold>
            <Italic>false</Italic>
            <Underline>false</Underline>
        </Tab>
    </Tabs>
    <Subject>Please DocuSign this document: Producer Service Agreement MO</Subject>
    <EmailBlurb/>
    <SigningLocation>Online</SigningLocation>
    <CustomFields>
        <CustomField>
            <Name>TAMID</Name>
            <Show>True</Show>
            <Required>True</Required>
            <Value/>
        </CustomField>
    </CustomFields>
    <AutoNavigation>true</AutoNavigation>
    <EnvelopeIdStamping>true</EnvelopeIdStamping>
    <AuthoritativeCopy>false</AuthoritativeCopy>
    <Notification>
        <Reminders>
            <ReminderEnabled>false</ReminderEnabled>
            <ReminderDelay>0</ReminderDelay>
            <ReminderFrequency>0</ReminderFrequency>
        </Reminders>
        <Expirations>
            <ExpireEnabled>true</ExpireEnabled>
            <ExpireAfter>120</ExpireAfter>
            <ExpireWarn>0</ExpireWarn>
        </Expirations>
    </Notification>
    <EnforceSignerVisibility>false</EnforceSignerVisibility>
    <EnableWetSign>true</EnableWetSign>
    <AllowMarkup>false</AllowMarkup>
    <AllowReassign>true</AllowReassign>
</Envelope>

3fb25b02-eabc-49c1-b904-3d04a3601abd
MO 100生产性服务协议(错误代码)
真的
MO 100生产性服务协议
2014-01-08T22:21:09.813
1.
736c1f32-6c73-4798-b67b-de3f6a1a61bc
1.
MO_100_R_生产者服务协议.pdf
1.
签字人
假的
1.
客户
真的
真的
假的
1.
1.
1.
136
519
1.
签名处
在这里签名
签名1
假的
假的
假的
假的
假的
1.
1.
1.
120
608
1.
签署日期
签署日期
签署日期
假的
假的
假的
假的
假的
请记录本文件:生产性服务协议MO
在线 的
塔米德
真的
真的
真的
真的
假的
假的
0
0
真的
120
0
假的
真的
假的
真的



f8dba6af-5875-4a81-887a-28096b876c5c
MO 100生产性服务协议
真的
MO 100生产性服务协议
2014-01-08T22:23:50.34
1.
736c1f32-6c73-4798-b67b-de3f6a1a61bc
1.
MO_100_R_生产者服务协议.pdf
1.
签字人
假的
1.
客户
真的
真的
假的
1.
1.
1.
137
519
1.
签名处
在这里签名
签名1
假的
假的
假的
假的
假的
1.
1.
1.
120
609
1.
签署日期
签署日期
签署日期
假的
假的
假的
假的
假的
请记录此文件:MO_100_R_生产者服务协议.pdf
在线 的
塔米德
真的
真的
真的
真的
假的
假的
0
0
真的
120
0
假的
真的
假的
真的


到目前为止,我得到的唯一解决方案是重新创建模板。除了所有与之相关的头痛之外,这没什么大不了的,但对我来说,这看起来像个虫子。可能是DocuSign的人会有时间查看它。

我觉得你的JSON看起来有效,但如果没有看到你用来发送的每个模板(失败的模板和成功的模板)的XML,很难提供更多的反馈。(如果您可以下载每个模板的模板XML,从XML中删除PDF字节(为简洁起见),并更新您的问题以包含每个模板的XML,我将很乐意审阅并提供进一步的反馈。)

(旧的)DocuSign Dev论坛中的这些(最近的)帖子似乎描述了一个类似的问题:


这两篇文章中第一篇文章的最后一个线程提到了DocuSign bug#(26473)。也许有DocuSign的人可以在这个线程中加入关于bug状态的更新,很可能这是您遇到的问题背后的原因。

我相信我可以看到问题-我对您的两个模板定义进行了比较,发现了可能导致您的问题的一个差异。如果查看每个模板的模板角色,好的模板如下所示:

<RoleName>Client</RoleName>
<RoleName>Client </RoleName>
客户端
坏模板的作用如下:

<RoleName>Client</RoleName>
<RoleName>Client </RoleName>
客户端

Client
之后的额外空间很可能导致您的问题。若要解决此问题,请尝试通过UI导出错误模板,删除空间,然后重新上载,这应该可以解决问题。

您收到收件人的Invlid\u电子邮件地址\u错误,但您尚未在程序中使用收件人电子邮件

使用您的电子邮件地址(一个用于docusign帐户),而不是您帐户上电子邮件的docusign guid。

(希望对其他人有用)

我得到了同样的错误,对于收件人无效,模板中的角色定义为CC,但没有定义电子邮件地址,并且我没有在API调用中将它们添加到JSON中。这适用于需要签名的角色(创建的信封中只有较少的签名),但不适用于收到复写副本的角色。

如果我