The callbacks server implements a set of endpoints that can be called by the other components of the bank infrastructure to fetch data from or update data to the bank's internal databases.
It implements the following endpoints:
- /compliance/fetch_info: Fetches the customer's name, address, and date of birth when provided the friendlyID of the customer from the users table
- /compliance/sanction: Validates whether the sender's financial institution is sanctioned to send transactions from the sanctions table
- /compliance/ask_user: Checks whether the receiving bank will send the beneficiary's KYC details to the sending bank (fetch_info is then called to fetch the details)
- /receive: Captures details about received payments and updates the beneficiary's balance
The first three are called by the compliance server for compliance...