PHP + Quickbook Online Edition (API Integration)?

Justin W_ picture Justin W_ · Oct 13, 2008 · Viewed 10.2k times · Source

Is it possible to integrate my PHP web-based ecommerce application with Quickbook Online Edition?

When I make a sale on my web site, I would like to be able to make the corresponding journal entry in my accounting books.

Note, I'm referring to Quickbook Online Edition, not the desktop software.

Answer

Keith Palmer Jr. picture Keith Palmer Jr. · Feb 10, 2009

I now have built a set of PHP classes that facilitates communication with QuickBooks Online Edition. It makes communicating with QuickBooks Online Edition as easy as:

// Create the connection to QuickBooks
$API = new QuickBooks_API(...);

// Build the Customer object
$Customer = new QuickBooks_Object_Customer();
$Customer->setName($name);
$Customer->setShipAddress('134 Stonemill Road', '', '', '', '', 'Storrs', 'CT', '', '06268');

// Send the request to QuickBooks
$API->addCustomer($Customer, '_add_customer_callback', 15);

// The framework also supports processing raw qbXML requests
$API->qbxml('
    <CustomerQueryRq>
        <FullName>Keith Palmer Jr.</FullName>
    </CustomerQueryRq>', '_raw_qbxml_callback');

You can download the framework from my thread here: QuickBooks Online Edition PHP Package

I've started writing some documentation/tips on how to integrate web applications with QuickBooks Online Edition here: QuickBooks Integration wiki