Company update

Method company_update is used for updating company details. Changing of company name or email will require a verification of the changes. A verification link will be sent to the user requesting the change. If verification is not done, changes are reverted after 1 hour.

Return value

This method returns a string with the status.

Arguments

  1. api_keys (required)
  2. CompanyParamsIn

Example code

 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 company_info = Hash.new
11 company_info[:name]    = 'Example company - Updated'
12 company_info[:email]   = 'updated@company.com'
13 company_info[:country] = 'FI'
14 
15 puts server.company_update(api_keys, company_info)

Also available in: HTML TXT