Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview


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

Request Format


Panel
titlePwsAdjustCostExpenseType Request

...

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

...

Panel
titlePwsAdjustCostExpenseType 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
TimeCardIdentitiesPwsTimeCardRefCostCardIdentitiesPwsCostCardRef[1..100]The identities of the time cards that were updated.

...

Code Block
languagexml
titleExample 01
collapsetrue
<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:CostCardId>7831680</b:CostCardId>
                  <b:CostCardUid>1152921504614678656</b:CostCardUid>
        
         <b:ReferenceId i:nil="true"/>                </b:PwsCostCardRef>
            </a:CostCardIdentities>
            <a:CostCardValuationReport/>
         </PwsAdjustCostExpenseTypeResult>
      </PwsAdjustCostExpenseTypeResponse>
   </s:Body>
</s:Envelope>

...

Please specify either TPT, TRT or CTT for the time card transfer adjustment type.

ErrorNumber

ErrorCode

ErrorText

20066InvalidValueForTimeAdjustmentType

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.

...