Since you’re using TypeScript, I made a library for Node which is on npm or open source here: github.com/otters/monzo which has already implemented most API routes including withdrawing from a pot. Hopefully that can make things easier for you
Do you have other similar requests working in cloudflare workers with typescript?
I’m not the best programmer but will the forward slash at the end of the monzo_endpoint make it .com//pots ( double forward slash) when calling that variable?
Yeah I have some other requests working (like listing pots). That works with no issue. This one gives the error for some reason. I can try without the extra / just to rule it out though
I haven’t tried any other calls to move money actually. I’ve been trying to withdraw from a pot so i’ll try depositing into a pot and see if that gives a similar error