Invoice show .NET

Method invoice_show is used for getting details of the invoice. Method invoice_items_show is used for getting details of the invoice’s items.

Return value(s)

invoice_show method returns a InvoiceParamsOut hash table and invoice_items_show method returns an array of ItemsOut hash tables.

Authentication

These methods requires that you have registered to Maventa and received the API key.

Arguments

  1. api_keys (required)
  2. Invoice id string (required)

Example code

 1 require 'soap/wsdlDriver'
 2 
 3 serv = SOAP::WSDLDriverFactory.new("https://secure.maventa.com/api_net/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   result = serv.invoice_show(api_keys, "Invoice ID")
13   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.lang
14 
15   # Show invoices items
16   results = serv.invoice_items_show(api_keys, "Invoice ID")
17   results.each do |result|
18     puts result.subject, result.unit_type, result.amount, result.price, result.discount, result.definition, result.tax, result.sum, result.sum_tax
19   end
20 
21 rescue Exception => ex 
22   puts ex
23 end

Also available in: HTML TXT