Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

« Previous Version 2 Next »

  1. Generate Refresh Token:

i. Get Method :

  • Endpoint: /v2/docusign/ipro/sources/<source_id>/accounts/refresh_token

  • Methods: Get

  • Response code: 200

  • Possible Errors:

    • If the token code is not provided.

      • status_code: 422

      • Response:

      • {"message": "Please provide Authorization Code"}

2. Authorization and creating Config:

i. POST Method :

  • Endpoint: /v2/docusign/ipro/source_settings/<source_id>/accounts/<account_id>/auth_token

  • Methods: POST

  • Body for POST method:

    {
    "go_live_date": datetime(UTC formate)
    "connection_name": "Docusign"
    "config":{
                "user_id": "af90af54-368d-47c7-aacd-d209a9303ee3",
                "point_of_contact": [],
                "docusign_account_id": "3d58d115-8a00-43e1-a93a-1636b51f053a"
             }
    }
    
  • Response code: 200

    TODO
    
  • Possible Errors:

    • If the account_id not provided.

      • status_code: 400

      • Response:

      • {"message": "Could't prosees your request without account_id"}
    • If the source_id not provided.

      • status_code: 400

      • Response:

      • {"message": "Could't prosees your request without source_id"}
    • For the post request if the request body is invalid or empty.

      • status_code: 400

      • Response:

      • {"message": "Cannot process request without request body}
    • If the credentials is not provided .

      • status_code: 422

      • Response:

      • {"message": Cannot process request without credentials}
    • If the credentials already mapped to the same account.

      • status_code: 409

      • Response: {"message": "Credentials already exist for this account"}

    • if Given credentials are invalid.

      • status_code: 401

      • Response: error_response

ii. Put Method :

Updates the configuration of an account if it already exists.

  • Endpoint: /v2/docusign/ipro/source_settings/<source_id>/accounts/<account_id>/auth_token

  • Methods: PUT

  • Body for PUT method:

    {
    "source_setting_id": 173,
    "go_live_date": datetime(UTC formate),
    "connection_name": "Docusign",
    "config":{
                "user_id": "af90af54-368d-47c7-aacd-d209a9303ee3",
                "point_of_contact": [],
                "docusign_account_id": "3d58d115-8a00-43e1-a93a-1636b51f053a"
             }
    }
    
  • Response code: 200

  • TODO
    
  • Possible Errors:

    • If the body not provided in the request.

      • status_code: 400

      • Response:

      • {"message": "Could't prosees your request without body"}
    • If the source_setting_id not provided in the request body.

      • status_code: 400

      • Response:

      • {"message": "Could't prosees your request without source_setting_id"}
    • If the config is not provided in the request body.

      • status_code: 422

      • Response:

      • {"message": "Cannot process request without request config"}
    • If the credentials is not provided .

      • status_code: 422

      • Response:

      • {"message": Cannot process request without credentials}
    • If the credentials already mapped to the same account.

      • status_code: 409

      • Response:

        {"message": "Credentials already exist for this account"}
    • if Given credentials are invalid.

      • status_code: 401

      • Response: error_response

    • If the account configuration not exist in IPRO source settings table with given source_setting_id.

      • status_code:

      • Response: {"message": "Configuration not available for this account"}

3. Lookback :

To get the lookback report for an account:

The purpose of this API is to get the transactions for particular days as decided by the customer.

i. Get Method :

  • Endpoint: /v2/docusign/ipro/source_settings/<source_setting_id>/accounts/look_back_report?look_back_days=30

  • Method: Get

  • Params: look_back_days

  • Response

    • status_code: 200

    • Response: It shows download option for Downloading CSV file in local.

  • Possible Errors:

    • If the source_setting_id not provided in the url.

      • status_code: 400

      • Response:

      • {"message": "Could't process your request without source_setting_id"}
    • If the look_back_days not provided in the params.

      • status_code: 400

      • Response:

      • {"message": "Could't processs your request without look_back_days"}
    • If the config is not available in IPRO for given source_setting_id.

      • status_code: 404

      • Response:

      • {"message": "Cannot Process your request without credentials"}
    • If the credentials is invalid.

      • status_code: 409

      • Response: error response

4. For the endpoints:

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.