russb
1 year agoMember
Access Denied
Hello I am trying to GET a list of items. I use the following code to successfully retrieve the company endpoints... sURL = "https://api.myob.com/accountright/[Company File GUID]" With o...
For anyone interested, the following worked...
.Open "GET", sURL, False
.setRequestHeader "Accept", "application/json"
.setRequestHeader "Authorization", "Bearer " & gsMYOBToken
.setRequestHeader "x-myobapi-tenantid", gsMYOBTenantId
.setRequestHeader "x-myobapi-version", "v2"
.setRequestHeader "x-myobapi-key", idsMYOBClientId
.send
resptext = .responseText
Hi Russ, thanks. I have exactly the same problem. I can call some URLs, but on other typical GET endpoints I get access denied, despite following all the processes. Any idea what's going on with your change? Seems you've removed x-myobapi-cftoken and added a x-myobapi-tenantid (what's this?). Unsure why this would work, as docs suggest cftoken is required and this is the first time I have seen tenant id.
Search the Community Forum for answers or find your topic and get the conversation started!
Level up your skills and find answers across all MYOB products