Forum Discussion

ktech's avatar
5 months 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.