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

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

    • Hello Januka,

      To get company id, need to call GET method for this request url “”. Must pass authentication header in this call.

Leave a Comment