...
This web service can be used to delete a web invoice. An invoice cand can be deleted if it is not issued, has been approved, and user has permission to delete it. Note that this service will delete web invoices only, and cannot be used to delete Management Portal invoices.
...
Panel | ||||
---|---|---|---|---|
| PwsDeleteInvoice||||
|
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)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:bil="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
<soapenv:Header/>
<soapenv:Body>
<pws:PwsDeleteInvoice>
<!--Optional:-->
<pws:serviceRequest>
<req:SessionTicket>AcQ1BEusAT8qGh8BhF0OFg==</req:SessionTicket>
<bil:InvoiceIdentity>
<com:InvoiceNumber>DRAFT00158</com:InvoiceNumber>
</bil:InvoiceIdentity>
</pws:serviceRequest>
</pws:PwsDeleteInvoice>
</soapenv:Body>
</soapenv:Envelope> |
Response Format
Panel | ||
---|---|---|
| ||
|
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)
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<PwsDeleteInvoiceResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
<PwsDeleteInvoiceResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
<ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
<Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
<ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2022-07-13T15:47:46.7404278Z</ServerTimestampUtc>
<a:InvoiceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
<b:InvoiceId i:nil="true"/>
<b:InvoiceNumber>DRAFT00157</b:InvoiceNumber>
<b:InvoiceUid>1152921504607847590</b:InvoiceUid>
</a:InvoiceIdentity>
<a:StolenLocks i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
</PwsDeleteInvoiceResult>
</PwsDeleteInvoiceResponse>
</s:Body>
</s:Envelope> |
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. |