PB Transactions return balance of 0, then update to actual balance #9
Closed
scholtz-gnome
started this conversation in
Bugs
Replies: 1 comment
-
|
Hey @scholtz-gnome, thanks for the feedback. We're looking into this and have asked a few other downstream teams for their input as well. Will revert as soon as we can. Thanks again! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug
When making a payment and making a transfer between my general account and Prime Saver, both transactions returned a
running_balanceof0and the transfer had thedescriptiondifferent from what I expected.Expected Behaviour
Usually the
descriptionfor a transfer looks something like this:However, the description for the transfer was only the
<provided description>.For both the payment and transfer, the
running_balancereturned0when it definitely wasn't0.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_dateandrunning_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 initially0and 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.
Beta Was this translation helpful? Give feedback.
All reactions