Pots API insufficient_funds

When sending a PUT request to https://api.monzo.com/pots/$pot_id/withdraw I keep getting the following response.

“code”: “bad_request.insufficient_funds”,
“message”: “You can’t withdraw more than your current pot balance”

The pot definitely has money. I’ve tried with other pots that have money too but still get hte same error :frowning:

It could be an idempotency issue, perhaps the API “remembers” the error from a previous request (I haven’t checked, sorry). Have you made sure to use a different dedupe_id from last time?