"API key has exceeded the per-second rate limit"
I have an API integration between my web-app and MYOB.
I authorize the user using the OAuth flow and retrieve their access_token.
However when I then make a call to "https://api.myob.com/accountright" I get a 403 error "API key has exceeded the per-second rate limit"
The only semi-official documentation of what the actual rate-limt I can find is here, where it says it is 8 requests per second.
https://community.myob.com/t5/MYOB-Business-API/API-v2-rate-limits/td-p/693742
Regarless of the limit, I have tried throttling my requests to once every 3 seconds and I still get the 403 error.
What is occuring and how do I fix it?
Turns out the issue was you can only have 2 active api keys at once.
If you use 3 keys one of them will be automatically deactivated.
The only way we found this out was contacting myob support. We then had too send them the two keys we wanted reactivated.
To summarize:- Nowhere is this 2 active key limit mentioned that I can find
- My company was not informed that our main live key had been deactivated
- It's not clear from the error you recieve back from the myob api that a deactivated key is the issue (what has this got to do with rate limits?)
- It's not clear on the myob dev dashboard (https://my.myob.com.au/au/bd/DevAppList.aspx) which keys are active and which are not or what you can do about it
Very annoying.