Thank you for visiting our Partner Zone. This area is an exclusive space for MYOB Partners. Find out how to Partner with MYOB.
Great thanks for the explanation Keran I apprecaite it, that should work fine.
OAUTH is a standard way of granting permission between services to ensure data integrity.
For your flow I'd imagine this sort of scenario
Administrator (setting things up for the first time) logs into your solution (I'm guessing you have built some web dashboard/interface to your solution) and from there they click a "Connect to MYOB"
This redirects them to the MYOB login, where they login and grant permission for your application to read their file. (or in this case, for your web sales platform is granted permission to read to your accounting file)
At this point our system will give you a code that you exchange for ACCESS TOKEN & REFRESH TOKEN
You use the access token and store the refresh token.
For all future activity first:
* check if access token is still valid (it lasts 20 mins)
* if expired, refresh it using the refresh token
* make the calls you need to enter the sales invoice into MYOB
You only need to complete OAUTH the first time you connect the two systems - after that, it uses the tokens for authority.
Hope that helps.
Should you have any further questions - reach out to our team email@example.com and they'll help you more
My company has a MYOB AccountRight Live Premier licence, we have an in house developed web application with a storefront and currently orders are handled through our payment system and upon payment, sales are posted automatically to our Saasu account and invoices are automatically sent to the clients through Saasu.
We are moving from Saasu to MYOB and everything is transitioned over except this piece of functionality, but looking at the MYOB APIs I'm having some trouble. It seems that to post sales to our company file and have invoices automatically sent to customers through MYOB APIs I need to use OAuth - this is not ideal as the company file I want to access is our own file, when a user makes a purchase I obviously can't send them to an authentication page asking for my own companies authorization details so the company file can be accessed.
Am I understanding this wrong? How do I achieve this workflow:
User makes a purchase on the site -> user completes payment -> sale is entered into our myob file -> myob generates pdf invoice we email it to customer -> customer is shown a completed purchase screen.
Any help is greatly appreciated, cheers.
Solved! Go to Solution.