You can translate the question and the replies:

Configure OAuth for Myob AccountRight

Trying to establish a connection to the AccountRight API - details are at http://developer.myob.com/api/accountright/api-overview/authentication/ I have got the access token and set up the http headers (x-myobapi-cftoken, x-myobapi-key, x-myobapi-version) but the API endpoint is returning an error 403. Do I have top do something with the "Request Signing Method"?
user
01-02-2017 00:40:15 -0500

3 Answers

Hi, The Token endpoint URL may return an HTTP 403 error code when your API denies the access to the requested resource by VDP client. I receive a HTTP 403 error when the Authenication information which I provide is sent to the service, but the Authenticated user is not permitted to perform the requested operation. Therefore check your user permissions on the myob.com web page. Then select the option "Authorization" request header method for"" Request signing method to add HTTP header to the request. You need to check if you are providing the correct header by refering to this page,[Myob headers](http://developer.myob.com/api/accountright/api-overview/headers/) I hope this helps you!
Denodo Team
02-02-2017 07:41:04 -0500
Hi Thanks for your response but I am still not connecting. AccountRight gives all or nothing access through oauth and I am successfully getting the access and refresh tokesn through the wizard. Access to data is restricted/enabled based on the user credentials sent in the 'x-myobapi-cftoken' header (which is a base64 encoded user name and password) and the particular data file being accessed (I have no idea why they are using a double layer of ids and passwords - they just are). I was aware of the headers and I have set these: x-myobapi-cftoken: [Base64Encode(username:password)] - I have double checked my user name and password and the encoding x-myobapi-key: [dev_key] - which I have also double checked x-myobapi-version: v2 - pretty hard to get this wrong I have not set 'Accept-Encoding' as it is optional, nor have I set 'Authorization: Bearer [OAUTH_ACCESS_TOKEN]' as I assume that your software does this automatically. Am I wrong in this? Any additional help would be appreciated.
user
02-02-2017 19:38:20 -0500
Hi, I would like you to refer to the link regarding the HTTP 403 error code [API Response Codes](http://developer.myob.com/api/accountright/api-overview/error-codes/) "This error code is most commonly seen when the API key being used is invalid or has been disabled. Please check the API Key you are using is correct and check with us to see if you're app has hit it's limits. This is the standard success response code when a resource you have attempted to request is not allowed." Therefore check your API key or contact myob Developer center to resolve this error. I hope this helps you!
Denodo Team
09-02-2017 23:27:33 -0500
You must sign in to add an answer. If you do not have an account, you can register here