The customer can be suspended with the SuspendCustomer method in the Customer web service. For instance you may want to integrate your customer service or accounting system to suspend a customer in the ClearStar.net system when the third party system deactivates the customer.
Here is an example of how you could suspend a customer:
/* Get a reference to the web service */
using (GatewaySample.net.clearstar.gateway.customer.Customer gwCustomer = new GatewaySample.net.clearstar.gateway.customer.Customer())
{
/* Suspend Customer */
XmlNode nodeCustomer = gwCustomer.SuspendCustomer("myUserName", "myPassword", myBOID, "myCustID”);
}
XML Response:
<SuspendCustomer xmlns="">
<ErrorStatus>
<Code></Code>
<Type></Type>
<Message></Message>
</ErrorStatus>
<Customer>
<sCustID></sCustID>
<bSuspended><bSuspended>
</Customer>
</SuspendCustomer>
Additional information is provided in the documentation and more example code is provided in the Gateway Sample application.