Connection to the rest of the world

The API of MoneyBird enables you to access the information inside a MoneyBird account. The API is RESTfull and uses XML for the data representation. On this page you can find all information about the API. Don't hesitate to contact us with your questions on info@moneybird.nl.

For Ruby-on-Rails programmers: don't forget to use ActiveResource! If you want to use the MoneyBird API with PHP, please take a look at the PHP library on GitHub.

Example Invoice filter

← Back to API documentation
 1 require 'rubygems'
 2 require 'curb'
 3 
 4 # Create a new Curl instance with the correct accept and content-type headers
 5 c = Curl::Easy.new do |curl|
 6   curl.headers["Accept"] = "application/xml"
 7   curl.headers["Content-Type"] = "application/xml"
 8   curl.http_auth_types = Curl::CURLAUTH_BASIC
 9   curl.userpwd = "admin:testtest"
10 end
11 
12 # Possible filter values
13 filters = ['all', 'this_month', 'last_month', 'this_quarter', 'last_quarter', 'this_year', 'draft', 'sent', 'open', 'late', 'paid']
14 
15 c.url = "http://bluetools.moneybird.local/invoices/filter/#{filters[0]}.xml"
16 
17 # Create a post request
18 c.perform
19 
20 # Check if the request is successfull
21 if c.response_code == 200
22   puts c.body_str
23 else
24   puts "Error requesting invoices:"
25   puts c.body_str
26 end