Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 4
Next »
Overview
This web service inserts or updates cost cards based on a detailed cost card structure (PwsCostCardDetail). The service returns the identity (PwsCostCardRef) of the cost card that has been inserted or updated. The caller can optionally request that the full cost card detail (PwsCostCardElement) be included in the response.
- PwsSaveExpenseDocumentCostCard
- serviceRequest: PwsSaveExpenseDocumentCostCardRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|
RequestId | Int32 | No |
| Click here for more information. |
|
SessionTicket | String | Yes |
| Click here for more information. |
|
Comments | String | No |
| Cost Card save / update comments |
|
CostCard | PwsCostCardDetail | On Insert: No On Update Yes |
| The cost card details of an existing cost card |
|
DeleteReceipts | PwsReceiptRef [???] | No |
| The receipts to be deleted |
|
ExpenseDocumentIdentity | PwsExpenseDocumentRef | On Insert: yes On Update: No |
| The expense document associated with the cost card |
|
ExpenseDocumentTimestamp | String | No |
| This is a Base64 encoded timestamp utilized for expense document locking. To protect against overwriting other changes, you may optionally echo back the timestamp returned by a call to PwsSaveExpenseDocument (or a prior call to PwsSaveExpenseDocument). This will cause the request to fail if any change has been made between invocations of PwsGetExpenseDocument and PwsSaveExpenseDocument. |
|
FullDetailFlag | Boolean | No | false | If set to 'true', include full detailed cost card element in response |
|
InsertReceiptsIfNotFoundOnUpdateFlag | Boolean | No |
| If set to 'true', specified receipts that are not found during an update will instead be inserted |
|
ResourceIdentity | PwsResourceRef | On Insert: No On Update No |
| The identity of the resource associated with the cost card |
|
SaveReceipts | PwsReceiptDetail [???] | On Insert: No On Update: No |
| The receipt details to be inserted or updated |
|
UpdateReceiptsIfFoundOnInsertFlag | Boolean | deprecated |
| ** This field has been deprecated ** |
|
PreserveCostCardStatusFlag | Boolean | deprecate
|
| ** This field has been deprecated ** |
|
CostCards | PwsCostCardDetail [???] | On Insert: Yes On Update: No |
| The cost card details of a new cost card |
|
Request Usage Example(s)
<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:PwsSaveExpenseDocumentCostCard>
<pws:serviceRequest>
<req:RequestId>1</req:RequestId>
<req:SessionTicket>AfMtiadjKEErha/5LNfifA==</req:SessionTicket>
<tim:Comments>Cost Card Creation</tim:Comments>
<tim:ExpenseDocumentIdentity>
<com:DocumentNumber>ER00727</com:DocumentNumber>
</tim:ExpenseDocumentIdentity>
<tim:FullDetailFlag>true</tim:FullDetailFlag>
<tim:InsertReceiptsIfNotFoundOnUpdateFlag>false</tim:InsertReceiptsIfNotFoundOnUpdateFlag>
<tim:ResourceIdentity>
<com:ResourceReferenceSystemId>E123</com:ResourceReferenceSystemId>
</tim:ResourceIdentity>
<tim:CostCards>
<tim:PwsCostCardDetail>
<tim:Description>New Cost Card Insert</tim:Description>
<tim:DescriptionClearFlag>false</tim:DescriptionClearFlag>
<tim:ExpenseTypeIdentity>
<com:ExpenseTypeName>Travel</com:ExpenseTypeName>
</tim:ExpenseTypeIdentity>
<tim:IncurredAmount>500.15</tim:IncurredAmount>
<tim:IncurredDate>2018-03-19T00:00:00.000Z</tim:IncurredDate>
<tim:IncurredOpsCurrencyIdentity>
<com:OpsCurrencyCode>USD</com:OpsCurrencyCode>
</tim:IncurredOpsCurrencyIdentity>
<tim:LocationClearFlag>false</tim:LocationClearFlag>
<tim:LocationIdentity>
<com:LocationName>USA</com:LocationName>
</tim:LocationIdentity>
<tim:NonBillableFlag>false</tim:NonBillableFlag>
<tim:PayeeVendorClearFlag>false</tim:PayeeVendorClearFlag>
<tim:PayeeVendorIdentity>
<com:VendorName>ABC Card</com:VendorName>
</tim:PayeeVendorIdentity>
<tim:ProjectIdentity>
<com:ProjectCode>P001395-001</com:ProjectCode>
</tim:ProjectIdentity>
<tim:ResourceClearFlag>false</tim:ResourceClearFlag>
<tim:ResourceIdentity>
<com:ResourceReferenceSystemId>E123</com:ResourceReferenceSystemId>
</tim:ResourceIdentity>
<tim:TotalAmountDisbursedCurrency>500.15</tim:TotalAmountDisbursedCurrency>
<tim:Udf1ClearFlag>false</tim:Udf1ClearFlag>
<tim:Udf2ClearFlag>false</tim:Udf2ClearFlag>
<tim:ExternalGroupingIdentifier>1</tim:ExternalGroupingIdentifier>
<tim:ExternalGroupingIdentifierClearFlag>false</tim:ExternalGroupingIdentifierClearFlag>
</tim:PwsCostCardDetail>
</tim:CostCards>
</pws:serviceRequest>
</pws:PwsSaveExpenseDocumentCostCard>
</soapenv:Body>
</soapenv:Envelope>
<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:PwsSaveExpenseDocumentCostCard>
<pws:serviceRequest>
<req:RequestId>1</req:RequestId>
<req:SessionTicket>AfMtiadjKEErha/5LNfifA==</req:SessionTicket>
<tim:Comments>Cost Card Save</tim:Comments>
<tim:CostCard>
<com:CostCardUid>1152921504614515312</com:CostCardUid>
<tim:Description>Cost Card Save</tim:Description>
<tim:DescriptionClearFlag>false</tim:DescriptionClearFlag>
<tim:ExpenseTypeIdentity>
<com:ExpenseTypeName>Meals</com:ExpenseTypeName>
</tim:ExpenseTypeIdentity>
<tim:IncurredAmount>50.75</tim:IncurredAmount>
<tim:IncurredDate>2018-03-19T00:00:00.000Z</tim:IncurredDate>
<tim:IncurredOpsCurrencyIdentity>
<com:OpsCurrencyCode>USD</com:OpsCurrencyCode>
</tim:IncurredOpsCurrencyIdentity>
<tim:LocationClearFlag>false</tim:LocationClearFlag>
<tim:LocationIdentity>
<com:LocationName>USA</com:LocationName>
</tim:LocationIdentity>
<tim:NonBillableFlag>false</tim:NonBillableFlag>
<tim:OverrideClientAmountClearFlag>false</tim:OverrideClientAmountClearFlag>
<tim:PayeeVendorClearFlag>false</tim:PayeeVendorClearFlag>
<tim:PayeeVendorIdentity>
<com:VendorName>ABC Card</com:VendorName>
</tim:PayeeVendorIdentity>
<tim:ProjectIdentity>
<com:ProjectCode>P001395-001</com:ProjectCode>
</tim:ProjectIdentity>
<tim:ResourceClearFlag>false</tim:ResourceClearFlag>
<tim:ResourceIdentity>
<com:ResourceReferenceSystemId>E123</com:ResourceReferenceSystemId>
</tim:ResourceIdentity>
<tim:TotalAmountDisbursedCurrency>50.75</tim:TotalAmountDisbursedCurrency>
<tim:Udf1>
<com:UdfName>Attendees</com:UdfName>
<com:NumericValue>2</com:NumericValue>
</tim:Udf1>
<tim:Udf1ClearFlag>false</tim:Udf1ClearFlag>
<tim:Udf2>
<com:UdfName>Purpose</com:UdfName>
<com:TextValue>Client Meeting</com:TextValue>
</tim:Udf2>
<tim:Udf2ClearFlag>false</tim:Udf2ClearFlag>
<tim:ExternalGroupingIdentifier>2</tim:ExternalGroupingIdentifier>
<tim:ExternalGroupingIdentifierClearFlag>false</tim:ExternalGroupingIdentifierClearFlag>
</tim:CostCard>
<tim:ExpenseDocumentIdentity>
<com:DocumentNumber>ER00727</com:DocumentNumber>
</tim:ExpenseDocumentIdentity>
<tim:FullDetailFlag>true</tim:FullDetailFlag>
<tim:InsertReceiptsIfNotFoundOnUpdateFlag>false</tim:InsertReceiptsIfNotFoundOnUpdateFlag>
<tim:ResourceIdentity>
<com:ResourceDisplayName>E123</com:ResourceDisplayName>
</tim:ResourceIdentity>
</pws:serviceRequest>
</pws:PwsSaveExpenseDocumentCostCard>
</soapenv:Body>
</soapenv:Envelope>
- PwsSaveExpenseDocumentCostCardResponse
- PwsSaveExpenseDocumentCostCardResult: PwsSaveExpenseDocumentCostCardRs
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 | |
Status | RequestStatus | Click here for more information | |
ServerTimestampUtc | DateTime | Click here for more information | |
CostCard | PwsCostCardElement | The details of the existing cost card (less any subordinate entities) | |
CostCardIdentity | PwsCostCardRef | The key fields of the updated cost card | |
CostCardResult | PwsSaveCostCardResult | The error details of a failed cost card save | |
ExpenseDocumentTimestamp | String | This is a Base64 encoded timestamp utilized for expense document locking. To protect against overwriting other changes, you may optionally echo back the timestamp returned by a call to PwsSaveExpenseDocument (or a prior call to PwsSaveExpenseDocument). This will cause the request to fail if any change has been made between invocations of PwsGetExpenseDocument and PwsSaveExpenseDocument. | |
Location | PwsLocationSummary | The cost card location | |
ReceiptResults | PwsSaveReceiptResult [???] | The error details of a failed receipt insert or save | |
SaveSucceededFlag | Boolean | If set to 'true', the save has succeeded | |
CostCardIdentities | PwsCostCardRef [???] | The key fields of the inserted cost card | |
CostCards | PwsCostCardElement [???] | The details of the new cost card (less any subordinate entities) | |