簡體   English   中英

DocuSign REST API-創建信封ID,但錯誤:身份驗證失敗

[英]DocuSign REST API - create envelope id but error: Authentication fail

REST請求被Docusign接受,創建信封和交易ID。 但是對收件人的身份驗證失敗。

響應:INVALIDAUTHENTICATIONSETUP接收者的身份驗證未正確設置。

response code:
  "pyMessage": "Authentication is not setup correctly for the 
  "pyErrorCode": "INVALIDAUTHENTICATIONSETUP"
  "pyStatusMessage": "the HTTP response code of 400 indicated a client error. The response data may contain a reason.",
  "pyStatus": "Fail",
  "pyHTTPResponseCode": "400",
  "pyStatusValue": "Fail: Unexpected HTTP 400 Response code"

JSON標頭

網址: https//demo.docusign.net/restapi/v2/accounts/1be73a9a-a25a-4221-8188-385a6a815b5b/envelopes/101

將標頭“ X-DocuSign-Authentication”設置為value

{
"Username":"b037ea2d-7fff-4974-bbad-**********",
"Password":"******",
"IntegratorKey":"d84fd933-e69b-49fc-b67a-**********"
}

和json主體:

https://www.scribd.com/document/317788272/Request-Json

DocuSign API日志

檔案:08_OK_ExecuteLoggedApiBusinessLogic.txt

enter code here 
Host: demo.docusign.net
x-docusign-clienttransactionid: T24120121904615319199
x-docusign-diagnostics: {storedProcedureEventLogThreshold:300}
x-docusign-timetrack: REQ_SENT,2016-07-08T15:13:48.116Z;REST0_Start,2016-07-08T15:13:48.0389520Z
X-SecurityProtocol-Version: TLSv1.2
X-SecurityProtocol-CipherSuite: ECDHE-RSA-AES256-GCM-SHA384

200 OK
Content-Type: application/json; charset=utf-8
X-DocuSign-ClientTransactionId: T24120121904615319199
X-DocuSign-TimeTrack: REQ_SENT,2016-07-08T15:13:48.116Z;;REST0_Start,2016-07-08T15:13:48.0389520Z;REST0_End,2016-07-08T15:13:48.0701940Z

{}

但是響應仍然帶有狀態代碼400,錯誤為“接收者的身份驗證未正確設置”

如果您要創建一個信封,那么要使用的正確網址是

POST https://demo.docusign.net/restapi/v2/accounts/1be73a9a-a25a-4221-8188-385a6a815b5b/envelopes/

不是https://demo.docusign.net/restapi/v2/accounts/1be73a9a-a25a-4221-8188-385a6a815b5b/envelopes/101

您可能還需要查看發送信封的方法

另外,您應該保護集成密鑰和密碼。 因此,請創建一個新的集成商密鑰並刪除您在StackOverflow上共享的密鑰。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM