For any custom implementation around DocuSign Authentication or implemented DocuSign API, your developers will require an access token. As part of OAuth 2.0, we have introduced the global methods to acquire the access token.

  1. Apttus_DocuApi.DocusignAuthenticationService.getAccessToken()
    1. This method returns the DocuSign access token of the current user, based on the user's current email address. 
  2. Apttus_DocuApi.DocusignAuthenticationService.getImpersonatedAccessTokenByEmail(<UserEmail>)
    1. This method is more useful for the developer searching for the access token of any other DocuSign user. By passing the email address of your DocuSign user, this generates that access token.
  3. Apttus_DocuApi.DocusignAuthenticationService.getImpersonatedAccessTokenByGUID(<UserGUID>)
    1. This method is more useful for the developer searching for the access token of any DocuSign user by their GUID. This can all be used for the impersonation of a user. 

Response:

All above global methods would return Apttus_DocuApi.DocusignAuthenticationService.AuthenticationResponse object. Properties of the object are: 

  • statusCode: 200 for success and 401 for any errors.
  • errorMessage: in case of a failure, you will receive an error message. 
  • accessToken: in case of success, it will return the access token.