View bank accounts as compliance

Updated on 30 Apr 2020

Description

Area of Compliance functionality, which allows us to view, approve, or reject Bank Account. In this Use Case, the Bank Account is the account that a Wallet owner defines as the account associated with the Wallet. Then, a representative of System Operator with the role BANK_ACCOUNT_MANAGER reviews information about the Bank and Account and approves or rejects it. This can only be done by the logged-in user. This Use Case details cover only a situation when Compliance wants to View the information without any further action.

Actors

  1. System Operator using “SDK.Finance” software and exposing the portfolio of financial APIs.
  2. External Entity that can interact with System Operator API acting as a registered System Operator User as an Accountant with role BANK_ACCOUNT_MANAGER.

Preconditions

  1. The Owner of the Coin added a Bank Account to the profile.
  2. The accountant received a notification about a new Bank Account in “Pending approval” status.
  3. The accountant should complete the Authentication Use Case.

Basic Flow – by default this flow assumes that External Entity sends Requests to System Operator Endpoints and System Operator sends back Responses to External Entity.

  1. Perform all steps of Use Case “Authentication”.
  2. External Entity sends a request to System Operator to get Bank Account details.

API endpoint: https://sdkfinance.app/api/ui/#!/Bank_accounts_management/View_bank_accounts_as_compliance

Parameters

Authorization – Authorization token

Request body example:



   "pageNumber":0,

   "pageSize":0,

   "filter":{ 

      "statuses":[ 

         "PENDING"

      ],

      "account":"string",

      "iban":"string",

      "bic":"string",

      "swift":"string",

      "bankName":"string"

   },

   "sort":{ 

      "status":"asc",

      "bankName":"asc"

   }

}
  1. System Operator returns all details for requested Bank Account.

Optional Flow with Web Browser UI

  1. Perform all steps of Use Case “Authentication”.
  2. Compliance Specialist sends a request to System Operator to see Account details.

API endpoint: https://sdkfinance.app/api/ui/#!/Bank_accounts_management/View_bank_accounts_as_compliance

Parameters

Authorization – Authorization token

Request body example:



   "pageNumber":0,

   "pageSize":0,

   "filter":{ 

      "statuses":[ 

         "PENDING"

      ],

      "account":"string",

      "iban":"string",

      "bic":"string",

      "swift":"string",

      "bankName":"string"

   },

   "sort":{ 

      "status":"asc",

      "bankName":"asc"

   }

}
  1. System Operator retrieves Account details and sends it to Compliance Specialist.

Post Conditions

Compliance Specialist has all the information need to work with User’s Bank Account.

Result example



   "records":[ 

      { 

         "id":"string",

         "createdAt":"2018-06-22T16:53:54.733Z",

         "updatedAt":"2018-06-22T16:53:54.733Z",

         "status":"PENDING",

         "details":{ 

            "fullName":"string",

            "account":"string",

            "iban":"string",

            "bic":"string",

            "swift":"string",

            "name":"string",

            "address":"string"

         }

      }

   ],

   "status":"ok",

   "message":"string"

}