PwsDeleteInvoice
Overview
This web service can be used to delete a web invoice. An invoice can be deleted if it is not issued. Note that this service will delete web invoices only, and cannot be used to delete Management Portal invoices.
Request Format
- PwsDeleteInvoiceRq
- RequestId: Int32
- SessionTicket: String
- InvoiceIdentity:Â PwsInvoiceRef
- InvoiceTimestamp: String
- LocksToSteal: PwsEntityLockSummary
- ProjectorLockSetId: Int32
Request Elements
Element | Data Type | Required? | Default | Description |
---|---|---|---|---|
Int32 | No | Click here for more information. | ||
String | Yes | Click here for more information. | ||
InvoiceIdentity | Yes | Identity of invoice to be deleted. | ||
InvoiceTimestamp | String | No | A projector lock set id is an identifier for a group of one or more locks held as a unit. | |
LocksToSteal | No | This is an optimistic locking timestamp for the invoice to be deleted. If specified, must match the current invoice timestamp. | ||
ProjectorLockSetId | Int32 | No | If stealing existing locks, specify lock holders from PwsFault response. |
Request Usage Example(s)
Response Format
- PwsDeleteInvoiceRs
- Messages: PwsMessage]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- InvoiceIdentity:Â PwsInvoiceRef
- StolenLocks:Â PwsEntityLockSummary
Response Elements
Element | Data Type | Description |
---|---|---|
Messages | The web service response status and message. Click here for more information | |
Int32 | Click here for more information | |
RequestStatus | Click here for more information | |
DateTime | Click here for more information. | |
InvoiceIdentity | PwsInvoiceRef | The identity of the deleted invoice. |
StolenLocks | The locks that were stolen to execute the deletion |
Response Usage Example(s)
PwsDeleteInvoice - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
50024 | EntityNotFound | Invoice was not found. Another user may have deleted it. |
68216 | CannotDeleteIssuedInvoice | You cannot delete invoice ... because it has been issued. |