Invoice max number

Method invoice_max_number is used for getting the largest invoice number used. Note! This might not work as expected if company uses characters in their invoice numbers.

Return value

This method returns a string with the invoice number.

Arguments

  1. api_keys (required)

Example code in Ruby

 1 require 'soap/wsdlDriver'
 2 
 3 server = SOAP::WSDLDriverFactory.new("https://testing.maventa.com/api/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 puts server.invoice_max_number(api_keys)

Also available in: HTML TXT