Recommendation: Create a dedicated SQL view for transaction monitoring instead of granting access to your underlying transaction tables. This gives you control over which data is exposed to the platform.
SQL View Schema
The view should return one row per transaction. The source represents the party — wallet, bank account, or card — from which the transaction originated.
The fields to provide depend on the value of
sourceMethod:
- If
sourceMethodisWallet, providesourceWalletIbanand eithersourceEntityIdorsourceEntityCrmId. - If
sourceMethodisBankAccount, providesourceBankIban,sourceEntityType, and eithersourceEntityNameEnorsourceEntityNameAr. - If
sourceMethodisCard, provide eithersourceEntityIdorsourceEntityCrmIdfor an existing entity, orsourceEntityTypeand eithersourceEntityNameEnorsourceEntityNameArfor a new one.
The same requirements that apply to the source fields also apply to the corresponding target fields.
sourceMethod and targetMethod cannot both be Card, and a source and target with the same method cannot share the same IBAN or vIBAN.
The remaining transaction columns are as follows: