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.
Rate Limiting
In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm. When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate. Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly. For more information please visit: Projector Rate Limiting Behavior.
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. |