The FreshBooks API is an interface for accessing your FreshBooks account data using HTTP and XML. The API makes it easy to create web and desktop applications that integrate with your account.
Some potential application ideas:
The FreshBooks API has a single point of entry, derived from your account URL:
Please note the use of https:// in the URL above. All FreshBooks API communication is encrypted over HTTPS. Any non-secure requests are automatically rejected, so we recommend establishing a test connection with the secure API entry point before sending sensitive data.
There are no limit on the number of API requests per day. However, requests will be rate-limited if too many calls are made within a short period of time. Additionally, a maximum of 100 results will be returned for list methods, regardless of the value sent with the per_page parameter.
All FreshBooks API requests are composed of light-weight XML delivered as an HTTP POST request to the endpoint URL.
<?xml version="1.0" encoding="utf-8"?> <request method="invoice.list"> </request>
All responses are wrapped in a top-level response element. The status attribute will let you know whether the request succeeded or failed.
<?xml version="1.0" encoding="utf-8"?> <response xmlns="http://www.freshbooks.com/api/" status="ok"> </response>
<?xml version="1.0" encoding="utf-8"?> <response xmlns="http://www.freshbooks.com/api/" status="fail"> <error>Error Message</error> <code>40010</code> </response>
In the case of a failure response, the response body will contain one or more error messages.