OpenBankProject / OBP-API

An open source RESTful API platform for banks that supports Open Banking, XS2A and PSD2 through access to accounts, transactions, counterparties, payments, entitlements and metadata - plus a host of internal banking and management APIs.
https://www.openbankproject.com/
1.54k stars 429 forks source link

Delete a customer #1308

Open chrisjsimpson opened 5 years ago

chrisjsimpson commented 5 years ago

Ability to delete a customer or softdelete

dkdndes commented 5 years ago

You are not allowed to delete a customer, you can "mark" or "flag" a customer somehow but due to AML, you can't delete a customer or any related activity for approx. 10 years. And, it is required to secure that as a regulated entity you are able to provide the related activities of the customer. In case of insolvency, provisions need to exist and will be audited on a regular basis.

If you would do this within the DB you are falsifying accounting and regulatory information.

I assume "softdelete" is what you mean with a flag that a customer is not any longer active. I suggest to close this issue and add some hint in the docs, e.g. for a newbie.