Skip to main content
Version: 2.2.0

deleteDepartment

This method allows deleting a department. To delete it, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\admin\DeleteDepartmentRequestType.java
Returnweb\wwwroot\ws\java\admin\DeleteDepartmentResponseType.java

Request:

ID #RequiredDescription
IDXDepartment ID #

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:admin">
<soapenv:Header/>
<soapenv:Body>
<urn:deleteDepartment>
<urn:ID>?</urn:ID>
</urn:deleteDepartment>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
ReturnSUCCESS:  Primary key of the department (CDDEPARTMENT)
FAILURE: -1
StatusSUCCESS: SUCCESS
FAILURE: FAILURE
DetailSUCCESS: Record(s) deleted
FAILURE: message regarding the error that occurred.
CodeSUCCESS: 1.
FAILURE: Code regarding the error that occurred:
â–ª 15 - Inexistent department.
â–ª 43 - The ID # has no value.
â–ª 66 - Record cannot be deleted. There is related data.