Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PB Transactions return balance of 0, then update to actual balance #12

Open
programmable-banking-community opened this issue Apr 4, 2024 Discussed in #9 · 0 comments
Labels
UNDER REVIEW Feature or integration currently being evaluated by the API team.

Comments

@programmable-banking-community
Copy link
Contributor

Discussed in https://github.com/orgs/Investec-Developer-Community/discussions/9

Originally posted by scholtz-gnome March 25, 2024

Bug

When making a payment and making a transfer between my general account and Prime Saver, both transactions returned a running_balance of 0 and the transfer had the description different from what I expected.

Expected Behaviour

Usually the description for a transfer looks something like this:

Internal Transaction PMC Inbounds Value Date 20Mar23 MBP<some number> <accountNumber> <provided description>

However, the description for the transfer was only the <provided description>.

For both the payment and transfer, the running_balance returned 0 when it definitely wasn't 0.

After a few minutes, these were updated.

How I found out

I am saving transactions I receive from the Investec API in a local Postgres DB. When updating a list of transactions, I retrieve the last 7 days, in case there were pending transactions I missed. To make sure I don't duplicate transactions, though, I have created a SQL uniqueness constraint on description, transaction_date and running_balance. If those all match/conflict, then I update a record rather than create a new one. Thing is, I ended up saving transactions that were the same because the running balance was initially 0 and then the actual balance.

Fix

Either a transaction shouldn't be returned from the API until the running balance has been updated correctly or the fields that may update should be documented, so we can update them on our side.

@programmable-banking-community programmable-banking-community added the UNDER REVIEW Feature or integration currently being evaluated by the API team. label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UNDER REVIEW Feature or integration currently being evaluated by the API team.
Projects
None yet
Development

No branches or pull requests

1 participant