kirti
kirti

Reputation: 71

"errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT"

While Requesting the recipient view in docusign, I am getting the error as

 "errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT",
  "message": "The specified User is not a member of the specified Account."

Below is the URL that I am referring:

https://developers.docusign.com/esign-rest-api/guides/embedded-signing

I have added the users in specified account and also given the input to fetch the response. But anyhow getting the above error.

curl -k -X POST  \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H 'X-DocuSign-Authentication: { 
          "Username":"[email protected]",
          "Password":"S3cre+p455w0Rd",
          "IntegratorKey":"230546a7-9c55-40ad-8fbf-af205d5494ad"}' \
    -d '{"authenticationMethod":"email",
         "clientUserId":"1000",
         "email":"[email protected]",
         "recipientId":"1",
         "returnUrl":"http://httpbin.org/get",
         "userName":"Darlene Petersen"}' \
    https://demo.docusign.net/restapi/v2/accounts/000000/envelopes/4280f274-bfee-419b-9514-b218b7eeda08/views/recipient 

Upvotes: 4

Views: 2805

Answers (2)

ScanQR
ScanQR

Reputation: 3820

Docusign does not allow cross-account API calls.

What does that mean?

Typical product integrations try to do integration with docusign by using their own Docusign Account (Pro Enterprise) but they want to allow their customers to send documents for eSign using their own docusign accounts. B2B type integrations. This is where the tricky part is.

  1. The integration is done with one account.
  2. The documents are sent for eSign for another account user (of the product client) by using integration account id (Point 1).

In such case belows errors are thrown by docusign APIs,

For JWT flow,

"errorCode": "USER_DOES_NOT_BELONG_TO_SPECIFIED_ACCOUNT",
"message": "The specified User is not a member of the specified Account."

For Auth Grant flow,

"errorCode": "INVALID_USER",
"message": "The specified User is not a member of the specified Account."

Solution?

When the documents are send for eSing using docusign createEnvelope API, use docusign account id of the product client instead of integration account id.

i.e.

  1. The integration is done with one account (Product account).
  2. The documents are sent for eSign for another account user but the account id is of this users docusign account only.

Upvotes: 1

Noor A Shuvo
Noor A Shuvo

Reputation: 2807

Users who want to send documents need a DocuSign account.

It sounds like your username/ password changed and still it is pointing to the previous account. To resolve you need to update the integration to point to the new account.

Here you can find the status code

Upvotes: 0

Related Questions