Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Function The UpdateCustomer function is used to update customer data for LAC administrator, with all supported LAC fields.

This function requires a LAC administrator token, which is obtained using the Login function.

Return values

On failure, the result string contains an error message. See Return codes for further information on error messages.

Example request:

No Format
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.lac2.pl:8080/soap/type/vendor/version/1"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:UpdateCustomer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <token xsi:type="xsd:string">2e9e674b568d7fd63a326a9b73f0b162adafbcca</token>
         <customer xsi:type="ns:Soap_Customer">
            <!--You may enter the following 12 items in any order-->
            <id xsi:type="xsd:int">1</id>
            <name xsi:type="xsd:string">new name</name>
            <street xsi:type="xsd:string"></street>
            <zip_code xsi:type="xsd:string"></zip_code>
            <city xsi:type="xsd:string"></city>
            <state xsi:type="xsd:string"></state>
            <country xsi:type="xsd:string"></country>
            <phone_number xsi:type="xsd:string"></phone_number>
            <fax_number xsi:type="xsd:string"></fax_number>
            <vat_number xsi:type="xsd:string"></vat_number>
            <description xsi:type="xsd:string">desc</description>
            <Contacts xsi:type="ns:ArrayOfSoap_Contact" soapenc:arrayType="ns:Soap_Contact[]"/>
         </customer>
      </ns:UpdateCustomer>
   </soapenv:Body>
</soapenv:Envelope>

...