Overview
This web service updates the expense type on one or more existing cost cards (PwsVersionedCostCardRef)
Request Format
Panel | ||
---|---|---|
| ||
|
...
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information | 1 | |
SessionTicket | String | Yes | Click here for more information | AWuKIeUvHQC5lNzuzE3Ugg== | |
AdjustmentCodeIdentity | PwsAdjustmentCodeRef | No | This structure represents the unique key fields associated with identifying an adjustment code. | ||
CostCardIdentities | PwsVersionedCostCardRef [1..100] | Yes | This structure identifies the cost card(s) that will be be adjusted. Cost Cards can be identified with a CostCardUid. | ||
Explanation | String (1024) | No | An explanation as to why this adjustment was applied. | Correct Expense Type for Reporting purposes | |
NewExpenseTypeIdentity | Yes | The expense type that will be applied to the cost card(s) | |||
ReportOnlyFlag | Boolean | No | 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 | ||
---|---|---|
| ||
|
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 | 2019-11-08T20:29:17.5581789Z | |
TimeCardIdentities | PwsTimeCardRefCostCardIdentities | PwsCostCardRef[1..100] | The identities of the time cards that were updated. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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> |
...
ErrorNumber | ErrorCode | ErrorText | 20066 | InvalidValueForTimeAdjustmentType | Please specify either TPT, TRT or CTT for the time card transfer adjustment type.
---|---|---|
50024 | EntityNotFound | New Expense Type: Expense Type was not found. Another user may have deleted it. |
50024 | EntityNotFound | Time Card was not found. Another user may have deleted it. |
...