You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
Overview
This web service inserts or updates a single expense document based on a detailed expense document structure (PwsExpenseDocumentDetail). The service returns the identity (PwsClientRef) of the client that has been inserted or updated. The caller can optionally request that the full client detail (PwsClientElement) be included in the response.
- PwsSaveExpenseDocument
- serviceRequest: PwsSaveExpenseDocumentRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|
RequestId | Int32 |
|
| Click here for more information. |
|
SessionTicket | String |
|
| Click here for more information. |
|
AdministratorComments | String |
|
|
|
|
ApproverIdentities | PwsUserRef[] |
|
|
|
|
DeleteCostCards | PwsCostCardRef[] |
|
|
|
|
DeleteReceipts | PwsReceiptRef[] |
|
|
|
|
ExcludeCreditCostCardsFlag | Boolean |
|
|
|
|
ExpenseDocument | PwsExpenseDocumentDetail |
|
|
|
|
ExpenseDocumentIdentity | PwsExpenseDocumentRef |
|
|
|
|
FullDetailFlag | Boolean |
|
|
|
|
InsertReceiptsIfNotFoundOnUpdateFlag | Boolean |
|
|
|
|
ResourceIdentity | PwsResourceRef |
|
|
|
|
RetrieveCostCardsFlag | Boolean |
|
|
|
|
RetrieveReceiptsFlag | Boolean |
|
|
|
|
SaveCostCards | PwsCostCardDetail[] |
|
|
|
|
SaveReceipts | PwsReceiptDetail[] |
|
|
|
|
SendNotificationEmailFlag | Boolean |
|
|
|
|
SubmissionComments | String |
|
|
|
|
SubmitFlag | Boolean |
|
|
|
|
UpdateReceiptsIfFoundOnInsertFlag | Boolean |
|
|
|
|
ExpenseDocumentTimestamp | String |
|
|
|
|
PreserveCostCardStatusFlag | Boolean |
|
|
|
|
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:PwsSaveExpenseDocument>
<pws:serviceRequest>
<req:SessionTicket>AcdrvYuS1YjvT27fonW7Cw==</req:SessionTicket>
<tim:ApproverIdentities>
<com:PwsUserRef>
<com:UserReferenceSystemId>Partner - 01</com:UserReferenceSystemId>
</com:PwsUserRef>
</tim:ApproverIdentities>
<tim:ExcludeCreditCostCardsFlag>true</tim:ExcludeCreditCostCardsFlag>
<tim:ExpenseDocument>
<tim:CashAdvanceReturnAmount>1.00</tim:CashAdvanceReturnAmount>
<tim:DocumentName>Expense Document A</tim:DocumentName>
<tim:DocumentType>E</tim:DocumentType>
<tim:LocationIdentity>
<com:LocationName>USA</com:LocationName>
</tim:LocationIdentity>
<tim:ResourceIdentity>
<com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId>
</tim:ResourceIdentity>
<tim:VendorIdentity>
<com:VendorNumber>Beth Brown</com:VendorNumber>
</tim:VendorIdentity>
<tim:Vendor>
<com:VendorNumber>Beth Brown</com:VendorNumber>
<com:ExpenseReportPayeeFlag>true</com:ExpenseReportPayeeFlag>
<com:InactiveFlag>false</com:InactiveFlag>
<com:ResourceVendorFlag>true</com:ResourceVendorFlag>
<com:VendorInvoicePayeeFlag>false</com:VendorInvoicePayeeFlag>
<com:SubcontractorInvoicePayeeFlag>false</com:SubcontractorInvoicePayeeFlag>
</tim:Vendor>
<tim:SubcontractorInvoiceReferenceNumberClearFlag>false</tim:SubcontractorInvoiceReferenceNumberClearFlag>
<tim:VendorInvoiceReferenceNumberClearFlag>false</tim:VendorInvoiceReferenceNumberClearFlag>
</tim:ExpenseDocument>
<tim:FullDetailFlag>true</tim:FullDetailFlag>
<tim:InsertReceiptsIfNotFoundOnUpdateFlag>false</tim:InsertReceiptsIfNotFoundOnUpdateFlag>
<tim:ResourceIdentity>
<com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId>
</tim:ResourceIdentity>
<tim:RetrieveCostCardsFlag>false</tim:RetrieveCostCardsFlag>
<tim:RetrieveReceiptsFlag>false</tim:RetrieveReceiptsFlag>
<tim:SaveCostCards>
<tim:PwsCostCardDetail>
<tim:Description>Breakfast</tim:Description>
<tim:DescriptionClearFlag>false</tim:DescriptionClearFlag>
<tim:ExpenseTypeIdentity>
<com:ExpenseTypeName>Meals</com:ExpenseTypeName>
</tim:ExpenseTypeIdentity>
<tim:IncurredAmount>7.99</tim:IncurredAmount>
<tim:IncurredDate>2018-02-06T00:00:00.000Z</tim:IncurredDate>
<tim:IncurredOpsCurrencyIdentity>
<com:OpsCurrencyCode>USD</com:OpsCurrencyCode>
</tim:IncurredOpsCurrencyIdentity>
<tim:IncurredVatAmount>0</tim:IncurredVatAmount>
<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:VendorNumber>Beth Brown</com:VendorNumber>
</tim:PayeeVendorIdentity>
<tim:ProjectIdentity>
<com:ProjectCode>P001407-001</com:ProjectCode>
</tim:ProjectIdentity>
<tim:ResourceClearFlag>false</tim:ResourceClearFlag>
<tim:ResourceIdentity>
<com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId>
</tim:ResourceIdentity>
<tim:TotalAmountDisbursedCurrency>7.99</tim:TotalAmountDisbursedCurrency>
<tim:Udf1ClearFlag>false</tim:Udf1ClearFlag>
<tim:Udf2ClearFlag>false</tim:Udf2ClearFlag>
<tim:ExternalGroupingIdentifierClearFlag>false</tim:ExternalGroupingIdentifierClearFlag>
</tim:PwsCostCardDetail>
</tim:SaveCostCards>
<tim:SendNotificationEmailFlag>true</tim:SendNotificationEmailFlag>
<tim:SubmissionComments>Submitted</tim:SubmissionComments>
<tim:SubmitFlag>true</tim:SubmitFlag>
<tim:UpdateReceiptsIfFoundOnInsertFlag>false</tim:UpdateReceiptsIfFoundOnInsertFlag>
</pws:serviceRequest>
</pws:PwsSaveExpenseDocument>
</soapenv:Body>
</soapenv:Envelope>