Please Help! $account_id unknown

(Max) #1

25

My account_id is unknown. I can’t send any requests! I thought it might just be on the playground but now my application is saying the same.

It suggests I refresh but every time I do, nothing changes.

Please help! I’ve spent hours trying to figure this out.

Thanks :slight_smile:

0 Likes

(Kolok) #2

I wouldn’t know, but as no one has replied to your first thread also I’ll tag the @simon maybe he can help.

Have you tried re authenticating

0 Likes

(Tony, Secret Lemonade Drinker) #3

Have you tried adding account_type as mentioned in https://docs.monzo.com/#accounts ?

0 Likes

(Max) #4

Thanks Kolok, I have tried reauthenticating. Nothing changes!

0 Likes

(Max) #5

yes, this isn’t working either :frowning:

0 Likes

(Tony, Secret Lemonade Drinker) #6

Have you tried logging out (and invalidating the access token) and re-starting again? I feel like the section at the top should show your account ID, and its absence makes me think you need to re-authenticate.

Can’t hurt to try?

0 Likes

(Max) #7

Yeah it isn’t that either :confused: the first time I logged in, there was no Account ID

0 Likes

(Tony, Secret Lemonade Drinker) #8

Weird. Did you join monzo when it was prepaid? I believe that occasionally causes trouble.

0 Likes

(Max) #9

Nope! It’s really weird. My webapp is successfully getting an access token, but I can’t do anything without a account id!

0 Likes

(Kolok) #10

Maybe message support for the account i.d. and also let them know about the bug, prob take a few hours to get a reply,

(Maybe try a different browser , I have absolutely no clue why that could help, but you never know.)

0 Likes

(simon) #12

Hey Couple of things it could be… It could be you’re logging into the dev portal with an email that’s not your monzo account email, or it could be that you’re not substituting $account_id for your actual account id (the dev portal should do this, but might break sometimes)

0 Likes

(Max) #14

Hi Simon,

Thanks for the reply. How can I find the $account)id if the dev portal isn’t doing it for me?

0 Likes

#15

I think either the accounts endpoint or ping/whoami?

0 Likes

#16

Yep, accounts endpoint: https://docs.monzo.com/#accounts

Chuck the accounts URL into postman along with a header of Authorization: Bearer <access_token> and it’ll return what you want.

1 Like

(Max) #17

It isn’t this unfortunately.

I get an array returned but it’s empty :confused:

0 Likes

(simon) #18

Are you logging in with an email that’s associated with a Monzo account?

0 Likes

(Max) #19

Hi Simon,

I feel so stupid! It turns out I was. I originally tried logging in with the correct email address but I never recieved an email from Monzo so assumed it must have therefore been my other address which did trigger an email.

Cheers for your help! :slight_smile:

2 Likes