Function The DeleteCustomer function is used to delete a customer for a LAC administrator, using a customer ID.from LAC.
This function requires a customer ID, which can be obtained using GetCustomerList, and 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 requestExample 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="httphttps://wwwlicense.lac2.pl:8080x-formation.com/soap/type/vendor/version/1?wsdl"> <soapenv:Header/> <soapenv:Body> <ns:DeleteCustomer soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <token xsi:type="xsd:string">e84b130bcd3fdf26644064098acdf9f3e5a3bfaa</token> <id xsi:type="xsd:int">1</id> </ns:DeleteCustomer> </soapenv:Body> </soapenv:Envelope> |
Example response:
No Format |
---|
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="httphttps://wwwlicense.lac2.pl:8080x-formation.com/soap/type/vendor/version/1?wsdl" 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:DeleteCustomerResponse> <return xsi:type="ns1:Soap_Response"> <result_code xsi:type="xsd:int">0</result_code> <result_string xsi:nil="true"/> </return> </ns1:DeleteCustomerResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |