Hi all guys,
I'm trying to integrate a new platform I created for my wholesale customer with its MYOB current account. I already created the API KEY and I would like to start by getting done the authorization steps. The problem is when I try to make a request to the authorization endpoint I'm getting a CORS error, of course, because I'm doing the request from localhost. Is there any way to activate a sandbox mode in order to test the endpoint in a development environment?
Here is the CORS error:
Thanks.
Hi @jhonny9550
There is a separate area of MYOB associated with API questions - via developers@myob.com
By the looks of your question you are trying to access an online file through the API - there is a whole lot of documents regarding what is needed for API access - no tokens are reequired for a local file but for an onlinefile you need to initiate the process with a munaul logon and 2FA to be provided with an Access Code - which expires in 1200 secs - you need to exchange this for an Access Token and a refresh token - the refresh token is valid for 7days and enables you to get a new set of Access Codes and refresh tokens.
To program all this into code is not a simple process - there is a lot of documents on the API web to help you work through this but they are confusing and assumes quite a level of knowledge - there are SDKs in Vb.Net and VC.Net to get you past all this but again these assume a lot of coding knowledge.
Regards The Doc
Self-help & Learning
Level up your skills and find answers across all MYOB products
Help Guides
MYOB Academy