我在尝试进行嵌入式签名时遇到此错误,但我不知道在哪里关注,因为我正在重新使用之前调用的数据。我正在做的调用如下,包括数据和响应:
--------------------------------------add envelope data sent--------------------------------------
POST https://demo.docusign.net/restapi/v2/accounts/467376/envelopes
{"accountId":"467376","templateId":"54E1223E-BE28-4216-B692-EB5D229063C0","templateRoles":[{"email":"natxo+1395913609@kodify.io","name":"natxo1395913609","roleName":"Signer1","clientUserId":1395913609}],"status":"sent","messageLock":true,"ActivateEnvelope":true}
--------------------------------------add envelope response--------------------------------------
Array
(
[envelopeId] => 60683ae6-4934-4613-a7ff-5caf6e9145ec
[uri] => /envelopes/60683ae6-4934-4613-a7ff-5caf6e9145ec
[statusDateTime] => 2014-03-27T09:46:55.8047277Z
[status] => sent
)
--------------------------------------get envelope recipients call--------------------------------------
GET https://demo.docusign.net/restapi/v2/accounts/467376/envelopes/60683ae6-4934-4613-a7ff-5caf6e9145ec/recipients
--------------------------------------get envelope recipients data response--------------------------------------
Array
(
[signers] => Array
(
[0] => Array
(
[name] => natxo1395913609
[email] => natxo+1395913609@kodify.io
[recipientId] => 1
[recipientIdGuid] => 68e46f96-a745-493f-b160-7c3882e7081d
[requireIdLookup] => false
[userId] => 4d33efb3-4f6e-4d8a-ae42-8c4af58c2230
[clientUserId] => 1395913609
[routingOrder] => 1
[note] =>
[roleName] => Signer1
[status] => sent
[templateLocked] => false
[templateRequired] => false
)
)
[agents] => Array
(
)
[editors] => Array
(
)
[intermediaries] => Array
(
)
[carbonCopies] => Array
(
)
[certifiedDeliveries] => Array
(
)
[inPersonSigners] => Array
(
)
[recipientCount] => 1
[currentRoutingOrder] => 1
)
--------------------------------------get recipients view data--------------------------------------
POST https://demo.docusign.net/restapi/v2/accounts/467376/envelopes/54E1223E-BE28-4216-B692-EB5D229063C0/views/recipient
{"returnUrl":"http:\/\/www.fux.com","authenticationMethod":"None","email":"natxo+1395913609@kodify.io","userName":"natxo1395913609","clientUserId":"1395913609"}
--------------------------------------get recipients view response--------------------------------------
答案 0 :(得分:0)
您似乎在 POST收件人视图请求网址中使用 TemplateID :
POST https://demo.docusign.net/restapi/v2/accounts/467376/envelopes/ 54E1223E-BE28-4216-B692-EB5D229063C0 / views / recipient
您应该使用 EnvelopeID 代替:
POST https://demo.docusign.net/restapi/v2/accounts/467376/envelopes/ 60683ae6-4934-4613-a7ff-5caf6e9145ec / views / recipient
我还建议在 POST收件人视图请求中更改 returnUrl 属性和 authenticationMethod 属性的值,以便完整请求看起来像这样:
POST https://demo.docusign.net/restapi/v2/accounts/467376/envelopes/60683ae6-4934-4613-a7ff-5caf6e9145ec/views/recipient
{
"returnUrl":"http://www.fux.com",
"authenticationMethod":"Email",
"email":"natxo+1395913609@kodify.io",
"userName":"natxo1395913609",
"clientUserId":"1395913609"
}