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:
- We have purchased a subscription of MYOB Business Pro to test
- Obtained a developer API Key for our application
- Successfully can use Oauth to get the code
- Successfully use https://secure.myob.com/oauth2/v1/authorize to get the token and refresh token
- 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.