FreshBooks API Guide

Sample Code

Client Libraries

If you don’t want to deal with XML directly, you might find it easier to use one of the following client libraries:

Please note that these libraries are developed by 3rd parties and not officially supported by FreshBooks.

If you’ve written a client library for the FreshBooks API, please let us know and we’ll add it to this list.

Example Applications

If you’d like some example code for communicating with the API, we’ve put together a few examples written in PHP4:

  • apitester.php
    (Allows you to send XML to FreshBooks through an HTML form)
  • csv2item.zip
    (Allows you to import items into FreshBooks through comma separated text)
  • invoicePaymentGraphs.zip
    (Allows you to view a graph with your invoices and collected revenue)