Overview
This web service deletes a specified client (PwsClientRef). The service will return the identity of the deleted client (PwsClientRef).
Request Format
PwsDeleteClient Request
- PwsDeleteClientRq
- RequestId: Int32
- SessionTicket: String (50)
- CascadeDeleteFlag: Boolean
- ClientIdentity: PwsClientRef [1]
- InactivateIfInuseFlag: Boolean
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information | 1 | |
SessionTicket | String (50) | Yes | Click here for more information | AavFwbZgVb9V4tr3R7BbzQ== | |
CascadeDeleteFlag | Boolean | No | false | This flag is set to 'true', when the user wants to delete the client and, all of the client's children
| true/false |
ClientIdentity | PwsClientRef | Yes | This is the identity of the client to be deleted. Click here for more information. | ||
InactivateIfInuseFlag | Boolean | No | false | If set to 'true', a client that cannot be deleted because it is in use will be set to inactive, otherwise the request will fail | true/false |
Request Usage Example(s)
Response Format
PwsDeleteClientRs
- PwsDeleteClientRs
- Messages: PwsMessage
- ResponseId: Int32
- Status: String
- ServerTimestampUtc: DateTime
- PwsClientRef [0..1]
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | PwsMessage | The web service response status and message. Click here for more information | |
ResponseId | Int32 | Click here for more information | 1 |
Status | RequestStatus | Click here for more information | Ok |
ServerTimestampUtc | DateTime | Click here for more information | 2018-01-17T19:00:18.2269303Z |
ClientIdentity | PwsClientRef [0..1] | The identity of the deleted client. Click here for more information. |
Response Usage Example(s)
PwsDeleteClient - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorCode | ErrorNumber | ErrorText |
---|---|---|
ClientInactivated | 101 | The client could not be deleted and instead it was marked inactive |
UpdatePermissionDenied | 50046 | You do not have permission to update this item. |
UnexpectedErrorDeletingClient | 57623 | There was an unexpected error while trying to delete the client. |
ClientHasChildClients | 57624 | The client could not be deleted because there are one or more child clients of this client. |
ChildClientCouldNotBeDeleted | 57625 | The client could not be deleted because one of its child clients could not be deleted. |
ChildIsReferencedByEngagement | 57626 | The client could not be deleted because at least one engagement is associated with this client. |
ClientIsReferencedByUser | 57627 | The client could not be deleted because at least one user is associated with this client. |
ClientIsReferencedByInvoice | 57628 | The client could not be deleted because at least one invoice is associated with this client. |
ClientNotFound | 57629 | The specified client was not found. |
ClientNotSpecified | 57631 | A specified client identity was incomplete. Each client identity must specify either a client id, client uid or client number. |