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.
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 c.url = "http://bluetools.moneybird.local/invoices/filter/advanced.xml" 13 14 filter = " 15 <filter> 16 <states>open</states> 17 <states>late</states> 18 <from-date>2009-01-01</from-date> 19 <to-date>2009-06-01</to-date> 20 </filter> 21 " 22 23 # Create a post request 24 c.http_post(filter) 25 26 # Check if the request is successfull 27 if c.response_code == 200 28 puts c.body_str 29 else 30 puts "Error requesting invoices:" 31 puts c.body_str 32 end