The UpdateLicenseOrder function is used to update existing license order data, with all supported LAC fields.

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

See ID fields for information about using the ID field.

Return values

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

Example request

<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="https://license.x-formation.com/soap/type/vendor/version/1" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:UpdateLicenseOrder soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <token xsi:type="xsd:string">141aa3143671e62aeb09a7bca039bbbc5108ffdc</token>
         <licenseOrder xsi:type="ns:Soap_LicenseOrder">
             <customer_id xsi:type="xsd:int">2</customer_id>
                  <product_template_id xsi:type="xsd:int">5</product_template_id>
                  <activation_key xsi:type="xsd:string">O6EY3-1RF90-3I222-ZTMP0</activation_key>
                  <creation_time xsi:type="xsd:string">2012-04-25 09:53:13</creation_time>
                  <license_type xsi:type="xsd:string">local</license_type>
                  <licensee_type xsi:type="xsd:string">fixed</licensee_type>
                  <licensee xsi:type="xsd:string">asdasd</licensee>
                  <hostid_match_rate xsi:type="xsd:int">56</hostid_match_rate>
                  <min_hostids xsi:type="xsd:int">2</min_hostids>
                  <activated_licenses_count xsi:type="xsd:int">0</activated_licenses_count>
                  <enabled xsi:type="xsd:boolean">true</enabled>
                  <description xsi:type="xsd:string"/>
                  <Hostids SOAP-ENC:arrayType="ns1:Soap_Hostid[2]" xsi:type="ns1:ArrayOfSoap_Hostid">
                     <item xsi:type="ns1:Soap_Hostid">
                        <name xsi:type="xsd:string">Ethernet</name>
                        <min_amount xsi:type="xsd:int">1</min_amount>
                        <max_amount xsi:type="xsd:int">1</max_amount>
                     </item>
                     <item xsi:type="ns1:Soap_Hostid">
                        <name xsi:type="xsd:string">Username</name>
                        <min_amount xsi:type="xsd:int">1</min_amount>
                        <max_amount xsi:type="xsd:int">1</max_amount>
                     </item>
                  </Hostids>
                  <Features SOAP-ENC:arrayType="ns1:Soap_Feature[2]" xsi:type="ns1:ArrayOfSoap_Feature">
                     <item xsi:type="ns1:Soap_Feature">
                        <name xsi:type="xsd:string">f2</name>
                        <version xsi:type="xsd:string">1.3</version>
                        <expiration_type xsi:type="xsd:string">no_expiration</expiration_type>
                        <expiration_date xsi:nil="true"/>
                        <additional_settings xsi:nil="true"/>
                        <enabled xsi:type="xsd:boolean">true</enabled>
                        <days_from_activation xsi:nil="true"/>
                        <count xsi:nil="true"/>
                     </item>
                     <item xsi:type="ns1:Soap_Feature">
                        <name xsi:type="xsd:string">f1</name>
                        <version xsi:type="xsd:string">1.100</version>
                        <expiration_type xsi:type="xsd:string">days_from_activation</expiration_type>
                        <expiration_date xsi:nil="true"/>
                        <additional_settings xsi:nil="true"/>
                        <enabled xsi:type="xsd:boolean">true</enabled>
                        <days_from_activation xsi:type="xsd:int">15</days_from_activation>
                        <count xsi:nil="true"/>
                     </item>
                  </Features>
         </licenseOrder>
      </ns:UpdateLicenseOrder>
   </soapenv:Body>
</soapenv:Envelope>

Example response

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://license.x-formation.com/soap/type/vendor/version/1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Body>
      <ns1:UpdateLicenseOrderResponse>
         <return xsi:type="ns1:Soap_Response">
            <result_code xsi:type="xsd:int">0</result_code>
            <result_string xsi:type="xsd:string"/>
         </return>
      </ns1:UpdateLicenseOrderResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
  • No labels