发布没有凭证的收件人视图

时间:2015-09-09 19:18:51

标签: docusignapi

我正在尝试在我们的应用程序中收到用于嵌入式签名的收件人URL。

我没有用户的凭据,我的所有API调用都是作为Ds管理员帐户进行的。

当我执行以下操作时,收到错误消息:

{
  "errorCode": "ACCOUNT_NOT_AUTHORIZED_FOR_ENVELOPE",
  "message": "This account is not authorized to access the requested envelope."
}

如果我对分配给我的信封执行此操作,它可以正常工作,但不适用于其他用户。我还应该指出,在创建收件人时,我们目前没有使用clientUserId。只有一小部分需要嵌入式签名。

据我了解,管理帐户可以检索开始嵌入式签名过程所需的网址。这不正确吗?

同样在什么情况下,电子邮件和用户名不一样?用户名不总是电子邮件地址吗?

请求:

POST https://demo.docusign.net/restapi/v2/accounts/244043/envelopes/41d02a5f-13f8-4fb5-897d-142e1c653645/views/recipient
X-DocuSign-Authentication: <DocuSignCredentials><Username>blah</Username><Password>blah2</Password><IntegratorKey>blah3</IntegratorKey></DocuSignCredentials>
Content-Type: application/json

{
 "returnUrl": "http://www.[somedomain].com",
 "email" : "someguy@gmail.com",
 "userName" : "someguy@gmail.com",
 "authenticationMethod" : "email"
}

修改 另外,如果我按照我的要求尝试以下内容:

{
  "returnUrl": "http://www.[mydomain].com",
  "userId" : "xxxxx-xxx-xxxx-xxx-xxxxxxxxxx",
  "authenticationMethod" : "email"
}

我收到:

{
  errorCode: "INVALID_USERID"
  message: "Invalid UserId. UserId specified in request does not match authenticated user."
}

1 个答案:

答案 0 :(得分:1)

1)请确保用于API调用的用户在首选项下启用了“帐户范围权限”设置 - &gt;用户 - &gt;权限。

2)用户名字段应该是信封创建期间提供的收件人全名。因此,使用上面的示例将是“Some Guy”IMO。