API Access denied

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
esling
1 Post
User

1Posts

1Kudos

0Solutions

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 1
Hannah_B
MYOB Moderator
142 Posts
MYOB Moderator
Australia
MYOB Moderator

142Posts

33Kudos

25Solutions

Re: API Access denied

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

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post