Insert Customer Data Into MYOB Cloud Using API in PHP

MYOB is the leading accounting software in New Zealand and Australia. Most of the small and large bussiness companies use thier service to manage finance data. It has desktop and cloud base service.

Myob provide Accountright API to synchronize data with third party application. In this post we discuss How to Add Customer in Myob via API call using PHP. If you want that new registration and any lead data from your website direct save as a customer in Myob account. Than you can use this way to save new customer via api call.

First you need to authenticate MYOB api using API Credential. We also explained MYOB Authentication in our previous post.

Add Customer in MYOB Cloud Using API in PHP

For doing this fulfill api parameter request with required customer data. Check below code for this:

Using above MYOB api code new customer insert in MYOB Company file. Must update you api key and myob account access before to execute this script. If facing any issue, please contact us. Thanks

Recommended Posts For You

About Harish

I am professional web developer and blogger. Use this blog to share own api and other web development experience with you. I do accept paid work. Write to me at - [email protected]

View all posts by Harish

4 thoughts on “Insert Customer Data Into MYOB Cloud Using API in PHP”

    1. Hello Januka,

      To get company id, need to call GET method for this request url “https://api.myob.com/accountright/?format=json”. Must pass authentication header in this call.

Leave a Comment

Your email address will not be published. Required fields are marked *