Skip to main content
Version: 2.2.3

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.