Pots API Example

I have made an example usage for the Pots Api for people to get started with.
Written in Python and based on https://github.com/monzo/reference-receipts-app

One API bug found - when attempting to withdraw from a locked pot the following response is given:
{‘code’: ‘bad_request.insufficient_funds’, ‘message’: “You can’t withdraw more than your current pot balance”}.
Which should be changed to something like:
{‘code’: ‘bad_request.locked_pot’, ‘message’: “You can’t withdraw from a locked pot.”}.

3 Likes