我正在将Docusign整合到一个需要新帐户签订合同的应用程序中。有两个签名者 - 帐户持有人和我们。双方签署后,我希望通过电子邮件发送已签名的文件作为我们法律团队的附件。
虽然50-60%的签名者将收到默认模板,但其余的将是要签名的自定义文档。因此,我需要在对Docusign的API调用中进行所有定义,这样我就不必在Docusign中为每个自定义文档定义角色。
目前我的Docusign模板的“收件人和路由”部分(在Docusign界面中)是空的。
顺序获得前两个签名效果很好。问题是最后一个“人”应该只收到一份副本(因为它是我们合法的@电子邮件地址)。然而,Docusign将它们视为签名者,即使没有定义签名标签。
有没有办法通过在API调用中定义所有内容来使认证交付工作?或者我可以在Docusign界面中在帐户级别定义一次,以便所有已完成的协议始终通过电子邮件发送给我们的法律团队吗?
以下详细信息:
Here is the API call I am making
我有一个看起来像这样的JSON数组(只显示相关部分 - signHereTabs数组故意留空):
templateRoles[
{
"roleName": "Signer1",
"name": "...",
"email": "...",
"routingOrder": "1",
"signHereTabs": {
}
},
{
"roleName": "Signer1",
"name": "...",
"email": "...",
"routingOrder": "2",
"signHereTabs": {
}
},
{
"roleName": "Copy",
"name": "...",
"email": "legal@...",
"routingOrder": "3"
}
]
在API文档中,它表示templateRoles采用了Recipient类型。 https://www.docusign.com/p/RESTAPIGuide/RESTAPIGuide.htm#REST API参考/收件人参数.htm
当我查看这些示例时,它们以数组键开头(即认证的订阅者,签名者等)。所以我尝试用这些键更新我的templateRoles数组给我一个INVALID_REQUEST_OBJECT错误:
{"errorCode":"INVALID_REQUEST_BODY","message":"The request body is missing or improperly formatted. Cannot deserialize the current JSON object (e.g. {\"name\":\"value\"}) into type 'System.Collections.Generic.List`1[API_REST.Models.v2.templateRole]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\r\nTo fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\r\nPath 'templateRoles.Signers', line 1, position 251."}
以下是API调用的内容:
templateRoles[
{
"Signers": [
{
"roleName": "Signer1",
"name": "...",
"email": "...",
"routingOrder": "1",
"signHereTabs": {
}
},
{
"roleName": "Signer1",
"name": "...",
"email": "...",
"routingOrder": "2",
"signHereTabs": {
}
}
]
},
{
"certifiedDeliveries": [
{
"roleName": "Copy",
"name": "...",
"email": "legal@...",
"routingOrder": "3"
}
]
}
]
是否有不同的方法来区分templateRoles数组中的收件人类型?或者另一种获得最终结果的方法?