首页 文章

Docusign API-收件人名称中的 Umlaut 字符

提问于
浏览
0

收件人名称的变音符->“François”

在使用 Docusign Rest API v2 将信封发送给该收件人时,出现以下错误:

错误代码-> UNSPECIFIED_ERROR

错误消息->具有相同键的项目已被添加。

如果我将收件人的名字更改为没有变音符号的字符串,信封将起作用。

有什么方法可以在帐户级别或在将请求发送到 Docusign 时解决此问题?

以下是请求 xml,它在接收者的名称中没有变音符ç的情况下有效。

<envelopeDefinition><emailSubject>Agreement Name</emailSubject> 
<status>sent</status><documents><document><name>Agreement Name</name>
<documentId>368649304</documentId><documentBase64>Document 
Contents</documentBase64></document></documents><recipients><signers>
<signer><recipientId>1</recipientId><email>TestEmail</email>
<name>François Harnandez</name>
<routingOrder>1</routingOrder><tabs><signHereTabs><signHere>
<anchorString>ICLM_ExtSignature:1</anchorString></signHere></signHereTabs>
<dateSignedTabs><dateSigned><anchorString>ExtDate1</anchorString>/dateSigned>
</dateSignedTabs></tabs></signer></signers></recipients>
</envelopeDefinition>

2 回答

  • 0

    我只是对此进行了测试,以查看我实际传递给 CURL 请求的内容,这是当我以Tèst User的形式传递给 ReceiverName 时得到的结果(json 而不是 xml)

    请求

    POST: https://{server}/restapi/v2/accounts/{accountId}/envelopes/
    {
        "emailSubject": "Testing",
        "templateId": "{templateId}",
        "status": "sent",
        "templateRoles": [
            {
                "email": "email@domain.com",
                "name": null,
                "roleName": "Role 1",
                "clientUserId": 12345654321
            }
        ]
    }
    

    响应

    {
      "errorCode": "INVALID_USERNAME_FOR_RECIPIENT",
      "message": "The user name for the recipient is invalid. The user name is invalid for recipient email email@domain.com"
    }
    

    如果我传递的是空值,我希望此错误消息会再次出现,您的 XML 编码是否去除了该值?您能完整地看到传递给 DocuSign 的内容吗?

  • 0

    您可以使用 JSON 代替 XML 尝试此请求吗?我已经尝试使用名称为“François”的 JSON 进行发送,并且没有问题可以发送请求并使用以下名称签名:http://i.stack.imgur.com/vtWUc.png

相关问题