Inbound invoice show .NET
Method inbound_invoice_show is used for getting details of the invoice. Method inbound_invoice_items_show is used for getting details of the invoice’s items. Method inbound_invoice_accounts_show is used for getting details of the invoice’s accounts (the accounts where payment is expected).
Return value(s)
inbound_invoice_show method returns a InboundInvoiceParamsOut hash table, inbound_invoice_items_show method returns an array of ItemsOut hash tables and inbound_invoice_accounts_show returns an array of InvoiceAccountParamsOut hash tables.
Authentication
These methods requires that you have registered to Maventa and received the API key.
Arguments
api_keys(required)- 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.inbound_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.inbound_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 # Show invoices accounts
22 results = serv.inbound_invoice_accounts_show(api_keys, "Invoice ID")
23 results.each do |result|
24 puts result.account, result.bank, result.iban, result.swift
25 end
26
27 rescue Exception => ex
28 puts ex
29 end