Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
June 2022 - last edited June 2022
June 2022 - last edited June 2022
I am connecting to the MYOB API using Postman and am able to authenticate and List company files and API info. I can also query a single file by Company_File_URI and Company_FIle_Id to successfully list all the API endpoints.
However, if I attempt to query any of the end points I receive an error: {"Message": "The Company File version is not supported."}
Company_FIle_URI is https://arl2.api.myob.com/accountright/
https://arl.api.myob.com/accountright/info reports V2 for all endpoints.
I am passing v2 as x-myobapi-version
I am not sure how to proceed.
June 2022
June 2022
Just checking, but yourCompany_FIle_URI should have a UID at the end:
https://arl2.api.myob.com/accountright/<UID>
And have you created the token using the username and password?
June 2022
June 2022
Yes I am using Company_File_URI/Company_File_ID
Yes I have created the token.
June 2022 - last edited June 2022
June 2022 - last edited June 2022
OK, I thought that might be the case but just checking.
I have had this issue once before, and that was when I created a new MYOB business using the website instead of using the AccountRight desktop software. Using the website (I am not sure exactly where I was because MYOB has so many different domains that I get lost) it must have created a type of Company File that was unable to be accessed using this particular API. IIRC I was able to make some of the initial requests but then got denied with the same error message you are getting when trying to go further.
Once I installed the actual AccountRight software in a virtual machine, and created a business there, I was able to use the API and complete my integration.
This might not be your issue, but do check your account type to make sure it is a compatible MYOB product, which are alluded to here:
https://developer.myob.com/api/myob-business-api/api-overview/getting-started/
by
AL6
3 weeks ago
0
109
|
0
|
109
|
||
1
|
181
|
|||
7
|
772
|
|||
1
|
212
|
|||
3
|
411
|