Country list bravo
Method country_list is used for getting a list of all countries and country codes supported for invoices.
Return value
This method returns an array of CountryParamsOut struct.
Arguments
api_keys(required)
Example code in Ruby
1 require 'soap/wsdlDriver'
2
3 server = SOAP::WSDLDriverFactory.new("https://testing.maventa.com/apis/bravo/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 results = server.country_list(api_keys)
11
12 if results[0].status == "OK"
13 results.each do |result|
14 puts "#{result.name}: #{result.code}"
15 end
16 end