closeTicket
Some tooltip text!
• 1 minute to read
• 1 minute to read
Description
This method will close the given request if the customer has access to this. The request can either be their own or if they have company access, it can be a request of another customer in the same company.
In parameters
| Parameter | Description |
|---|---|
| sessionKey | A valid session key |
| ticketId | The ID of the request to close |
Out parameters
| Parameter | Description |
|---|---|
| errorCode | See list of codes |
Example
string sessionKey;
customer.customerService custService = new customer.customerService();
if(custService.login("test","test", out sessionKey) == "0")
{
string res = custService.getCategories(sessionKey, "345");
if(ret == "0")
cout << "Request closed";
else
cout << "Something went wrong. Check error code";
}