Inbound invoice show
Method inbound_invoice_show is used for getting details of the invoice.
Return value(s)
This method returns an array that contains return code as a string, InboundInvoiceParamsOut hash table and an array of ItemsOut hash tables.
Authentication
This method requires that you have registered to Maventa and received the API key.
Arguments
api_keys(required)- Invoice id string
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 # Show invoice
12 results = serv.inbound_invoice_show(api_keys, "Invoice ID")
13
14 result = results[1]
15 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
16
17 rescue Exception => ex
18 puts ex
19 end