Postal address update

Method postal_address_update is used for updating an existing postal address.

Return value

This method returns a string with the status.

Arguments

  1. api_keys (required)
  2. postal_address_id string (required)
  3. PostalAddressParamsIn (required)

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 postal_address = Hash.new
11 postal_address[:address1]    = "Company address updated" 
12 postal_address[:address2]    = "" 
13 postal_address[:post_code]   = "00100" 
14 postal_address[:post_office] = "Helsinki" 
15 postal_address[:city]        = "Helsinki" 
16 postal_address[:state]       = "" 
17 postal_address[:country]     = "FI" 
18 
19 puts server.postal_address_update(api_keys, "bc645d0c-64ed-4ad2-a8eb-bfc2af00ed46", postal_address)

Also available in: HTML TXT