HI @skihappy ,
Thanks for reaching out, The error 401 Unauthorised is normally caused by single sign-on being enabled from the front end of the program. When single sign-on has been enabled this means you are not required to pass the CFtoken header via the API.
If you remove the CFtoken header and complete a request is this now successful?
Single Sign on: https://apisupport.myob.com/hc/en-us/articles/360001479716-Single-Sign-on-SSO-and-cftoken
If the above does not resolve the issue this leads me to think that you might not have full user access to the file.
Thanks,
removing the "cftoken" header still had same issue
noticed that cftoken was "blank"
checked and found my credentials was being reset before the insert operation,
fixed the reset operation
checking the "cftoken" confirmed cftoken was correct for user , now working
Thanks
Self-help & Learning
Level up your skills and find answers across all MYOB products
Help Guides
MYOB Academy