Forum Discussion

ktech's avatar
ktech
Member
1 year ago

MYOB Business API - Unauthorised Error

We are trying to integrate an API solution and having trouble doing the very basics with MYOB API.

In summary:

  1. We have purchased a subscription of MYOB Business Pro to test
  2. Obtained a developer API Key for our application
  3. Successfully can use Oauth to get the code
  4. Successfully use https://secure.myob.com/oauth2/v1/authorize to get the token and refresh token
  5. Successfully use  https://secure.myob.com/oauth2/v1/authorize to get a refresh token

However when we try to do the following basic call to get the companyFiles connected to the user using api:

https://api.myob.com/accountright

We get a 401 Unauthorized.

Using postman to make the call, here are the snapshots. Tried both with and without 'Bearer'. Also tried including property x-myobapi-cftoken, with password Based64(Adminstrator:) => QWRtaW5zdHJhdG9yOg==


Still get the same error. Only had the MYOB subscription account for 6 days not sure if this is the problem? Appreciate if we can get some help on this. 

 

 

5 Replies

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.