Я получаю сообщение об ошибке при создании Envelope, используя следующий код. Но аутентификация прошла успешно, и я могу получить идентификатор учетной записи.
Код проверки подлинности:
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."
}
Любая помощь будет оценена.