Invoice list inbound
Method invoice_list_inbound is used for getting list of inbound invoices.
Return value(s)
This method returns an array of InboundInvoiceParamsOut.
Arguments
api_keys(required)timestampstring of timestamp (format “YYYYMMDDHHMMSS”, if nil, gets all unseen invoices)
Example code in Ruby
1 require 'soap/wsdlDriver'
2
3 server = SOAP::WSDLDriverFactory.new("https://testing.maventa.com/apis/bravo/wsdl").create_rpc_driver
4
5 api_keys = Hash.new
6 api_keys[:vendor_api_key] = "" # Partner software API key
7 api_keys[:user_api_key] = "" # User API key
8 api_keys[:company_uuid] = "" # UUID of current company
9
10 invoices = server.invoice_list_inbound(api_keys, "20090916000000")
11
12 if invoices[0].status == "OK"
13
14 invoices.each do |invoice|
15 puts "#{invoice.id} #{invoice.invoice_nr} #{invoice.date}"
16 end
17
18 end