Forum Discussion

MattyO's avatar
MattyO
Member
1 year ago

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: 

  1. Clients business who invited me as a File User and Administrator roles
  2. 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.

No RepliesBe the first to reply

Looking for something else?

Search the Community Forum for answers or find your topic and get the conversation started!

Community home

Level up your skills using MYOB software.

 

Find help guides and technical solutions for all MYOB products here

Explore video tutorials for our software at the MYOB Academy here

 

Dig into MYOB Academy for free courses, learning paths and live events to help build your business with MYOB.