Payment Accounts subdomain¶
This subdomain is responsible for the management of payment accounts issued by external Payment Service Providers (PSP).
Account types¶
We have 2 types of accounts:
- Alan's operating accounts: Alan-owned accounts used for outgoing money (claims payouts, top-ups). A limited, fixed number of accounts that Alan tops up when funds run low. Backed by JPMorgan and Revolut. We query them by workspace (all balances at once, for Ops monitoring).
- Accounts managed by Alan: in the Flex context (🇪🇸), each account is linked to a client company. The company pre-funds its account and that balance backs its employees' Flex card spending; the company — not Alan — replenishes it. One account is created per onboarded company (scales with the client base). Backed by Adyen. These accounts are fetched individually by id so Care/Admin can monitor a given company's balance.
Both map to the same Account model (external_id = the account id at the PSP, e.g. an Adyen balance account BA...).