/
PwsDeleteExpenseDocument

PwsDeleteExpenseDocument

Overview


This web service deletes a specified expense document (PwsExpenseDocumentRef).


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


PwsDeleteExpenseDocument Request

Request Elements


Element

Data Type

Required?

Description

Sample Data

RequestId

Int32

No

Click here for more information


SessionTicket

String

Yes 

Click here for more information

 Ad9/vlTyZRtWnsPuFVHm7w==

ExpenseDocumentIdentity

PwsExpenseDocumentRef

Yes 

The expense document that will be deleted


ResourceIdentity

PwsResourceRef

No

** This field has been deprecated


Request Usage Example(s)


Example 01
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsDeleteExpenseDocument>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>Ad9/vlTyZRtWnsPuFVHm7w==</req:SessionTicket>
            <tim:ExpenseDocumentIdentity>
               <com:DocumentNumber>ER00710</com:DocumentNumber>
            </tim:ExpenseDocumentIdentity>
         </pws:serviceRequest>
      </pws:PwsDeleteExpenseDocument>
   </soapenv:Body>
</soapenv:Envelope>


Response Format


PwsDeleteExpenseDocument Response

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-02-13T16:21:01.5714232Z 

Response Usage Example(s)


Example 01
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsDeleteExpenseDocumentResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsDeleteExpenseDocumentResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:PwsMessage>
                  <b:AdditionalErrorText>Message 136: This request was executed against the QA Marlboro [secureqa.projectorpsa.com] environment.</b:AdditionalErrorText>
                  <b:ErrorCode>NonProductionEnvironment</b:ErrorCode>
                  <b:ErrorNumber>136</b:ErrorNumber>
                  <b:ErrorText>This web service request was executed against a non-production instance of Projector.</b:ErrorText>
                  <b:Type>Information</b:Type>
                  <b:ReferenceId1 i:nil="true"/>
                  <b:ReferenceId2 i:nil="true"/>
               </b:PwsMessage>
            </Messages>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-02-13T16:21:01.5714232Z</ServerTimestampUtc>
         </PwsDeleteExpenseDocumentResult>
      </PwsDeleteExpenseDocumentResponse>
   </s:Body>
</s:Envelope>

PwsDeleteExpenseDocument - Common Errors and Warnings


ErrorNumber

ErrorCode

ErrorText

19025ExpenseDocumentNotSpecifiedForDeleteNo expense document was specified for delete.
19073ExpenseDocumentIdentityRequiredAn expense document identity must be specified.
65477NoPermissionToMaintainExpenseDocumentThe expense document is locked. You do not have permission to modify the expense document.
65494ExpenseDocumentNotFoundExpense document not found
65495ExpenseDocumentHasBeenUpdatedByAnotherUserExpense document has been changed.
65750OneOrMoreExpenseDocumentsCannotBeDeletedOne or more expense documents cannot be deleted.