Access to Flex balance from API?

Experimenting with the API in the playground…

/accounts has one account, of type “uk_monzo_flex”, and several accounts of type “uk_monzo_flex_backing_loan”

If I use /balance?account_id=<id here> with the account ID for my main “uk_retail” account, it works as expected.

However, using the account ID for my “uk_monzo_flex”, it shows a balance of 0. I kinda get that, as it’s not a true account or pot, so the concept of a balance doesn’t necessarily apply. But it would be useful to be able to query the total debt from Flex through the API.

As for all the “uk_monzo_flex_backing_loan” accounts…

The API shows that I do not have sufficient permissions. So even working around this issue by querying all of these backing loans is not possible at present:

{
  "code": "forbidden.insufficient_permissions",
  "message": "Access forbidden due to insufficient permissions",
  "params": {
    "client_id": "REDACTED",
    "user_id": "REDACTED"
  },
  "retryable": {}
}

Is this a known issue, and are there any workarounds?

1 Like

Is this because they merge the flex balance into our current account balances? I find it quite confusing.

E.g. if I have £200 in my current account and £50 debt on flex: monzo shows my current account balance as £150. This also feeds £150 into Yolt and Money Dashboard instead of £200.

See, I was thinking that, but the numbers don’t add up.

Currently on £-22.20 balance on my account, with a £2000 overdraft limit
£1500 flex limit, with £471.95 available to use

API says:

  • balance:-2220 = (£-22.20 - correct)
  • total_balance:165606 (£1656.06)
  • balance_including_flexible_savings:165606

From the API docs

total_balance = The sum of the currently available balance of the account and the combined total of all the user’s pots.

Which… yes. £1656.06 is the correct figure there.

So doesn’t appear that flex balance is included in there at all.

1 Like

Having the same issue. Did you find a solution?

No solution, no

I had a play around with this myself some time ago, but there didn’t appear to be a way to access that data. I experienced the same permission errors.

As far as I am aware, no new functionality has been added to the Monzo API since I’ve been using it.

I don’t suppose there has been any movement on this yet? My Flex balance is the only thing I have to manually update on my spreadsheet :slightly_frowning_face:

I wonder if one has to iterate each backing loan and add all of them up. And I wonder if there is difference between debit card flexed transactions and the ones spent on the flex card directly.

Just checked this again after spotting this post…

…and the balance now seems to be there for the main flex account. Not sure if it’ll change if they need to fix something.

(Edit) also not sure what ‘balance_including_flexible_savings’ is :eyes:

1 Like

Ah, nice. I can see this, too, now. Thank you for letting us know, @Kumnaa !

Hi,

Can anyone share sample response of the flex balance from /balance API?