Skip to main content
Newcomer
August 14, 2024
Question

Error calling CreateEnvelope: { "errorCode": "USER_AUTHENTICATION_FAILED"

  • August 14, 2024
  • 1 reply
  • 329 views

In my C# code, when I try to create a Envelop got this errror,

DocuSign.eSign.Client.ApiException: 'Error calling CreateEnvelope: {
  "errorCode": "USER_AUTHENTICATION_FAILED",
  "message": "One or both of Username and Password are invalid."
}'

 

Code...

ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
Configuration.Default.ApiClient = apiClient;

//Verify Account Details
string accountId = loginApi(credential.UserName, credential.Password); -- account verification working fine here

// |EnvelopesApi| contains methods related to creating and sending Envelopes (aka signature requests)
EnvelopesApi envelopesApi = new EnvelopesApi();
EnvelopeSummary envelopeSummary = envelopesApi.CreateEnvelope(accountId, envDef); --here i got the error

 

 

 

 

1 reply

Hengfeng Ge
Hero
Hero
August 31, 2024

please reference this document:

https://www.docusign.com/blog/developers/docusign-api-basic-user-password-authentication-retirement

Docusign API Basic User Password Authentication Retirement

the new integration key not support basic authentication. please use OAuth2.0 like JWT for system integration.

 

FreeLink/甫连信息
🌍 DocuSign Partner | Partner Profile
🏆 2024 APAC Reseller Growth Partner of the Year
🔧 First globally to pass DocuSign eSignature Technical Consultant certification
🚀 Expertise in DocuSign integrations with in-house systems for leading enterprises across various industries.

Feel free to reach out for collaboration opportunities.

Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.