Company files api endpoint returning []
As per the documentation, I am using the endpoint https://api.myob.com/accountright to get a list of all the company files associated to my account.
When I log in online to https://app.myob.com/#/businesses I can see 2 businesses:
- Clients business who invited me as a File User and Administrator roles
- MYOB & Shared Sandbox 19 which MYOB invited me
I can authenticate myself using the Get Access Code endpoint and using the scope sme-company-file but the company file endpoint keeps returning an empty array of [].
When I add &prompt=consent to the end of the Get Access Code endpoint, both businesses show up in a dropdown box and it asks me to connect to either of the businesses to allow Subscription details.
I can successfully connect for #1 my clients business account, but when trying #2, it says You must be an Administrator to connect. Contact your Administrator.
If I try without the &prompt=consent I can still connect successfully with the responded code, but the result is the same with an empty array of [] when trying the company file access point.