Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
May 2021
May 2021
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?
May 2021 - last edited May 2021
May 2021 - last edited May 2021
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
Thanks,
@Hannah_B
MYOB API Specialist
MYOB API Support Centre|MYOB App Marketplace|MYOB AccountRight API Endpoint Doc's
Did my answer help?
Mark it as a Solution