DocuSign API和集成和信封创建#DocuSignAPI期间发生错误

时间:2018-04-16 06:38:52

标签: api docusignapi envelope

使用以下代码创建Envelope时出错。但身份验证成功,我可以检索帐户ID。

验证码:

string authHeader = "{\"Username\":\"" + Username + "\", \"Password\":\"" + Password + "\", \"IntegratorKey\":\"" + IntegratorKey + "\"}";
cfg.AddDefaultHeader("X-DocuSign-Authentication", authHeader);
AuthenticationApi authApi = new AuthenticationApi(cfg);

信封创建代码:

EnvelopeSummary envelopeSummary = envelopesApi.CreateEnvelope(AccountId, envDef);

错误详情:

A first chance exception of type 'DocuSign.eSign.Client.ApiException' occurred in DocuSign.eSign.dll

Error: Error calling CreateEnvelope: {
  "errorCode": "PARTNER_AUTHENTICATION_FAILED",
  "message": "The specified Integrator Key was not found or is disabled. An Integrator key was not specified."
}

任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

错误" PARTNER_AUTHENTICATION_FAILED"是甚至在读取正文之前的第一次失败,这意味着积分器密钥对环境无效,方法调用"保留"或错过"消息"的状态。

大多数情况下,在使用积分器密钥的功能正常的系统中发生这种情况是"关闭"如果系统正在做一些不允许的事情,又被困在制作一个"保留"呼叫。如果您已经进行了测试并且现在已经投入生产,则意味着您的Integrator Key不允许进入生产阶段。

为了帮助您,最好的方法是通过遵循本DocuSign支持文章https://support.docusign.com/guides/ndse-user-guide-api-request-logging

中说明的步骤,捕获API调用通过Java发布到DocuSign的确切JSON / SOAP请求。

请发布这些以及您尝试进行的实际DocuSign API调用,我相信我们将能够推断出该问题。

相关问题