Forum Discussion

esling's avatar
esling
Member
4 years ago

API Access denied

I have an integration trying to do a GET call to /accountright/ api but even though ive checked the user/pass plus setup online user access i keep getting access denied. Can you please help? 

1 Reply

Replies have been turned off for this discussion
  • Hi esling

     

    Thanks for reaching out to us. Access Denied errors will usually occur when the header is missing from your request or the wrong details are being passed on your `x-myobapi-cftoken` header.  The details that are passed in this header represent the login details that a client uses to access their company file via the AccountRight program. The Login details for the company file Sandbox Demo are:

     

    User ID = Administrator:

     

    Password = (Leave this blank)

     

    Administrator: encoded = QWRtaW5pc3RyYXRvcjo=

     

    The value passed in the CFtoken header is Base64 Encoded {User ID}:{Password}. Here is a link to our help article which has information on [solving Access Denied errors] (https://apisupport.myob.com/hc/en-us/articles/360000713795-Solving-Access-Denied-errors).

     

    If this above does not resolve the error I recommend removing the CFtoken header and trying a request. If Single sign-on has been enabled from the UI we are not required to pass the CFtoken header via the API. 

     

    Single Sign-on: https://apisupport.myob.com/hc/en-us/articles/360001479716-Single-Sign-on-SSO-and-cftoken

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.