Invoice list inbound
Method invoice_list_inbound is used for getting list of incoming invoices. List contains only such invoices that aren’t yet returned through API.
Return value(s)
This method returns an array that contains return code as a string and an array of InboundInvoiceParamsOut.
Authentication
This method requires that you have registered to Maventa and received the API key.
Arguments
api_keys(required)allboolean (optional)
Example code
1 require 'soap/wsdlDriver'
2
3 serv = SOAP::WSDLDriverFactory.new("https://secure.maventa.com/api/wsdl").create_rpc_driver
4
5 begin
6 api_keys = Hash.new
7 api_keys[:vendor_api_key] = "" # If you are software vendor, you shall put here API-key for this application
8 api_keys[:user_api_key] = "" # Put here your API key
9 api_keys[:company_uuid] = "" # Put here UUID of the Company you are acting for
10
11 # List inbound invoices for company
12 results = serv.invoice_list_inbound(api_keys)
13
14 puts results[0]
15
16 results[1].each do |result|
17 puts result.id, result.sum, result.sum_tax, result.invoice_nr, result.customer_nr, result.customer_name, result.customer_email, result.customer_bid, result.customer_address1, result.customer_address2, result.customer_post_code, result.customer_post_office, result.customer_state, result.customer_country, result.customer_contact_p, result.customer_ovt, result.customer_operator, result.lang
18
19 rescue Exception => ex
20 puts ex
21 end