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/1054583385/send_invoice.xml" 13 14 # Specify the send method. You can also provide an e-mail address and message if 15 # you want to use other information than stored in the MoneyBird account. 16 send_parameters = ' 17 <invoice> 18 <send-method>email</send-method> 19 <email>info@moneybird.nl</email> 20 <invoice-email>Dear customer, hereby your invoice...</invoice-email> 21 </invoice> 22 ' 23 24 # Create a post request 25 c.http_put(send_parameters) 26 27 puts c.response_code 28 puts c.body_str