PwsAdjustCostExpenseType

Overview


This web service updates the expense type on one or more existing cost cards (PwsVersionedCostCardRef)

Request Format


PwsAdjustCostExpenseType Request

Request Elements


Element

Data Type

Required?

Default

Description

Sample Data

RequestIdInt32No
Click here for more information
1
SessionTicket

String

Yes
Click here for more information
AWuKIeUvHQC5lNzuzE3Ugg==
AdjustmentCodeIdentityPwsAdjustmentCodeRefNo
This structure represents the unique key fields associated with identifying an adjustment code.
CostCardIdentitiesPwsVersionedCostCardRef [1..100]Yes
This structure identifies the cost card(s) that will be be adjusted. Cost Cards can be identified with a CostCardUid. 
ExplanationString (1024)No
An explanation as to why this adjustment was applied.
Correct Expense Type for Reporting purposes
NewExpenseTypeIdentity

PwsExpenseTypeRef

Yes
The expense type that will be applied to the cost card(s)

ReportOnlyFlagBooleanNo
If set to "true", the cost card adjustment process is exercised, but not completed. If there is any error triggered during the adjustment process, it will be reported in the response.
false

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:PwsAdjustCostExpenseType>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>AWuKIeUvHQC5lNzuzE3Ugg==</req:SessionTicket>
            <tim:AdjustmentCodeIdentity>
               <com:AdjustmentCodeName>Other</com:AdjustmentCodeName>
               <com:AdjustmentCodeUid>1152921504606858479</com:AdjustmentCodeUid>
            </tim:AdjustmentCodeIdentity>
            <tim:CostCardIdentities>
               <tim:PwsVersionedCostCardRef>
                  <com:CostCardUid>1152921504614678656</com:CostCardUid>
               </tim:PwsVersionedCostCardRef>
            </tim:CostCardIdentities>
            <tim:Explanation>Correct Expense Type for Reporting purposes</tim:Explanation>
            <tim:NewExpenseTypeIdentity>
               <com:ExpenseTypeName>1 and 2 available</com:ExpenseTypeName>
               <com:ExpenseTypeUid>1152921504606879682</com:ExpenseTypeUid>
            </tim:NewExpenseTypeIdentity>
            <tim:ReportOnlyFlag>false</tim:ReportOnlyFlag>
         </pws:serviceRequest>
      </pws:PwsAdjustCostExpenseType>
   </soapenv:Body>
</soapenv:Envelope>

Response Format


PwsAdjustCostExpenseType Response

Response Elements


Element

Data Type

Description

Sample Data

MessagesPwsMessage[]

The web service response status and message. Click here for more information.


ResponseIdInt32Click here for more information
1
StatusRequestStatusClick here for more information
Ok
ServerTimestampUtcDateTimeClick here for more information
2019-11-08T20:29:17.5581789Z
CostCardIdentitiesPwsCostCardRef [1..100]The identities of the time cards that were updated.

Response Usage Example(s)


Example 01
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsAdjustCostExpenseTypeResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsAdjustCostExpenseTypeResult 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/"/>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2019-11-08T20:29:17.5581789Z</ServerTimestampUtc>
            <a:CostCardIdentities xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:PwsCostCardRef>
                  <b:CostCardUid>1152921504614678656</b:CostCardUid>
               </b:PwsCostCardRef>
            </a:CostCardIdentities>
            <a:CostCardValuationReport/>
         </PwsAdjustCostExpenseTypeResult>
      </PwsAdjustCostExpenseTypeResponse>
   </s:Body>
</s:Envelope>

PwsCostExpenseType - Common Errors and Warnings


ErrorNumber

ErrorCode

ErrorText

50024EntityNotFoundNew Expense Type: Expense Type was not found. Another user may have deleted it.
50024EntityNotFoundTime Card was not found. Another user may have deleted it.