PwsDeleteClient
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
- CascadeDeleteFlag: Boolean
- ClientIdentity: PwsClientRef
- InactivateIfInuseFlag: Boolean
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information | 1 | |
SessionTicket | String | 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 | ||
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: RequestStatus
- ServerTimestampUtc: DateTime
- PwsClientRef
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 | The identity of the deleted client |
Response Usage Example(s)
PwsDeleteClient - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
101 | ClientInactivated | The client could not be deleted and instead it was marked inactive |
50046 | UpdatePermissionDenied | You do not have permission to update this item. |
57623 | UnexpectedErrorDeletingClient | There was an unexpected error while trying to delete the client. |
57624 | ClientHasChildClients | The client could not be deleted because there are one or more child clients of this client. |
57625 | ChildClientCouldNotBeDeleted | The client could not be deleted because one of its child clients could not be deleted. |
57626 | ChildIsReferencedByEngagement | The client could not be deleted because at least one engagement is associated with this client. |
57627 | ClientIsReferencedByUser | The client could not be deleted because at least one user is associated with this client. |
57628 | ClientIsReferencedByInvoice | The client could not be deleted because at least one invoice is associated with this client. |
57629 | ClientNotFound | The specified client was not found. |
57631 | ClientNotSpecified | A specified client identity was incomplete. Each client identity must specify either a client id, client uid or client number. |