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 5 Next »

Overview


This web service retrieves an expense document (PwsExpenseDocumentElement), based upon a unique expense document identifier ( PwsExpenseDocumentRef). This web service can also be used in association with PwsSaveExpenseDocument to clone an expense document.

Request Format


PwsGetExpenseDocument Request
  • PwsGetExpenseDocument
    • serviceRequest: PwsGetExpenseDocumentRq
      • RequestId: Int32
      • SessionTicket: String
      • CloneAmountsFlag: Boolean
      • CloneDatesFlag: Boolean
      • CloneFlag: Boolean
      • DelayDays: Int32
      • ExcludeCreditCostCardsFlag: Boolean
      • ExpenseDocumentIdentity: PwsExpenseDocumentRef
      • NewDocumentType: String
      • ResourceIdentity: PwsResourceRef
      • RetrieveCostCardsFlag: Boolean
      • RetrieveReceiptsFlag: Boolean

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.

Ad9/vlTyZRtWnsPuFVHm7w== 

CloneAmountsFlag

Boolean

No 

false

If set to 'true', the amounts on the specified expense report will be cloned. If the CloneFlag is not set to 'true', this value is ignored. 

Note: If set to 'true', the RetrieveCostCardsFlag must also be set to 'true'

false 

CloneDatesFlag

Boolean

No

false 

If set to 'true', the dates on the specified expense report will be cloned. If the CloneFlag is not set to 'true', this value is ignored. 

Note: If set to 'true', the RetrieveCostCardsFlag must also be set to 'true'

false

CloneFlag

Boolean

No

false

If set to 'true', the expense document will be cloned

false 

DelayDays

Int32

No

0

When cloning an expense report the number specified here indicates the number of days the dates associated with cost cards on the expense report should be delayed 

ExcludeCreditCostCardsFlag

Boolean

No

false

If set to 'true, credit cost cards on the expense report will not be returned

true

ExpenseDocumentIdentity

PwsExpenseDocumentRef

Yes


The expense document to be retrieved / cloned


NewDocumentType

String



This is the document type of the cloned expense report, it must match the document type of the expense report that is being cloned:

"E" for Expense Report

"C" for Subcontractor Invoice

"V" for Vendor Invoice

"S" for Soft Cost Batch 


ResourceIdentity

PwsResourceRef

No


The resource associated with the expense report  


RetrieveCostCardsFlag

Boolean

No

false

If set to 'true', the cost cards on the expense report will retrieved

true 

RetrieveReceiptsFlag

Boolean

No

false

If set to 'true', the receipts on the expense report will be retrieved

true 


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:PwsGetExpenseDocument>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>Ad9/vlTyZRtWnsPuFVHm7w==</req:SessionTicket>
            <tim:CloneAmountsFlag>false</tim:CloneAmountsFlag>
            <tim:CloneDatesFlag>false</tim:CloneDatesFlag>
            <tim:CloneFlag>false</tim:CloneFlag>
            <tim:DelayDays>0</tim:DelayDays>
            <tim:ExcludeCreditCostCardsFlag>true</tim:ExcludeCreditCostCardsFlag>
            <tim:ExpenseDocumentIdentity>
               <com:DocumentNumber>ER00706</com:DocumentNumber>
            </tim:ExpenseDocumentIdentity>
            <tim:ResourceIdentity>
               <com:ResourceReferenceSystemId>E125</com:ResourceReferenceSystemId>
            </tim:ResourceIdentity>
            <tim:RetrieveCostCardsFlag>true</tim:RetrieveCostCardsFlag>
            <tim:RetrieveReceiptsFlag>true</tim:RetrieveReceiptsFlag>
         </pws:serviceRequest>
      </pws:PwsGetExpenseDocument>
   </soapenv:Body>
</soapenv:Envelope>

Response Format


PwsGetExpenseDocument Response

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.

2018-02-13T18:25:14.5044325Z

ExpenseDocument

PwsExpenseDocumentElement

The complete set of information about an expense document (less any subordinate entities)


Response Usage Example(s)


Example 01
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsGetExpenseDocumentResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsGetExpenseDocumentResult 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/">2018-02-13T18:25:14.5044325Z</ServerTimestampUtc>
            <a:ExpenseDocument>
               <a:AllowAttachReceiptsToCcFlag>true</a:AllowAttachReceiptsToCcFlag>
               <a:AllowAttachReceiptsToEdFlag>true</a:AllowAttachReceiptsToEdFlag>
               <a:CostCards>
                  <a:PwsCostCardElement>
                     <a:AdjustedRevenueAmount i:nil="true"/>
                     <a:ApprovalWorkflowStatus>D</a:ApprovalWorkflowStatus>
                     <a:ApprovedByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:ApprovedTimestamp i:nil="true"/>
                     <a:ApprovedToInvoiceByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:ApprovedToInvoiceTimestamp i:nil="true"/>
                     <a:BilledTimestamp i:nil="true"/>
                     <a:ClientAmount>189.99</a:ClientAmount>
                     <a:CostCardDetail>
                        <CostCardId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <CostCardUid i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <ReferenceId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <a:Description>Breakfast Meeting</a:Description>
                        <a:DescriptionClearFlag>false</a:DescriptionClearFlag>
                        <a:ExpenseTypeIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:ExpenseTypeId i:nil="true"/>
                           <b:ExpenseTypeName>Meals</b:ExpenseTypeName>
                           <b:ExpenseTypeUid>1152921504606878415</b:ExpenseTypeUid>
                        </a:ExpenseTypeIdentity>
                        <a:IncurredAmount>189.99</a:IncurredAmount>
                        <a:IncurredDate>2018-02-05T00:00:00Z</a:IncurredDate>
                        <a:IncurredOpsCurrencyIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:OpsCurrencyCode>USD</b:OpsCurrencyCode>
                           <b:OpsCurrencyId i:nil="true"/>
                        </a:IncurredOpsCurrencyIdentity>
                        <a:IncurredVatAmount>0</a:IncurredVatAmount>
                        <a:LocationClearFlag>false</a:LocationClearFlag>
                        <a:LocationIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <a:NonBillableFlag>false</a:NonBillableFlag>
                        <a:OverrideClientAmount i:nil="true"/>
                        <a:OverrideClientAmountClearFlag>false</a:OverrideClientAmountClearFlag>
                        <a:PayeeVendorClearFlag>false</a:PayeeVendorClearFlag>
                        <a:PayeeVendorIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <a:ProjectIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:ProjectCode>P001407-001</b:ProjectCode>
                           <b:ProjectId i:nil="true"/>
                           <b:ProjectUid>1152921504607413030</b:ProjectUid>
                        </a:ProjectIdentity>
                        <a:ResourceClearFlag>false</a:ResourceClearFlag>
                        <a:ResourceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:ResourceDisplayName>Beth Brown</b:ResourceDisplayName>
                           <b:ResourceId i:nil="true"/>
                           <b:ResourceReferenceSystemId>E125</b:ResourceReferenceSystemId>
                           <b:ResourceUid>1152921504607111786</b:ResourceUid>
                        </a:ResourceIdentity>
                        <a:Timestamp i:nil="true"/>
                        <a:TotalAmountDisbursedCurrency>189.99</a:TotalAmountDisbursedCurrency>
                        <a:Udf1 xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:UdfId i:nil="true"/>
                           <b:UdfName>Attendees</b:UdfName>
                           <b:UdfUid>1152921504606860180</b:UdfUid>
                           <b:BooleanValue i:nil="true"/>
                           <b:DataType>I</b:DataType>
                           <b:DateValue i:nil="true"/>
                           <b:IntegerValue>8</b:IntegerValue>
                           <b:ResourceIdentityValue i:nil="true"/>
                           <b:TextValue i:nil="true"/>
                           <b:UdfTreatment>A</b:UdfTreatment>
                           <b:StoplightValues/>
                           <b:NumericValue>8</b:NumericValue>
                           <b:RelationValue i:nil="true"/>
                        </a:Udf1>
                        <a:Udf1ClearFlag>false</a:Udf1ClearFlag>
                        <a:Udf2 xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:UdfId i:nil="true"/>
                           <b:UdfName>Purpose</b:UdfName>
                           <b:UdfUid>1152921504606860181</b:UdfUid>
                           <b:BooleanValue i:nil="true"/>
                           <b:DataType>L</b:DataType>
                           <b:DateValue i:nil="true"/>
                           <b:IntegerValue i:nil="true"/>
                           <b:ResourceIdentityValue i:nil="true"/>
                           <b:TextValue>Team Building</b:TextValue>
                           <b:UdfTreatment>A</b:UdfTreatment>
                           <b:StoplightValues/>
                           <b:NumericValue i:nil="true"/>
                           <b:RelationValue i:nil="true"/>
                        </a:Udf2>
                        <a:Udf2ClearFlag>false</a:Udf2ClearFlag>
                        <a:Units>1</a:Units>
                        <a:ExternalGroupingIdentifier i:nil="true"/>
                        <a:ExternalGroupingIdentifierClearFlag>false</a:ExternalGroupingIdentifierClearFlag>
                     </a:CostCardDetail>
                     <a:CreatedByUser xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:UserDisplayName>Beth Brown</b:UserDisplayName>
                        <b:UserId i:nil="true"/>
                        <b:UserReferenceSystemId>E125</b:UserReferenceSystemId>
                        <b:UserUid>1152921504607112693</b:UserUid>
                        <b:EmailAddress>beth@revcorp.bb</b:EmailAddress>
                        <b:FirstName>Beth</b:FirstName>
                        <b:LastName>Brown</b:LastName>
                        <b:MiddleName i:nil="true"/>
                     </a:CreatedByUser>
                     <a:CreatedTimestamp i:nil="true"/>
                     <a:CreditedCostCardIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:DisbursedAmountDisbursedCurrency>189.99</a:DisbursedAmountDisbursedCurrency>
                     <a:DisbursedAmountEngagementCurrency>189.99</a:DisbursedAmountEngagementCurrency>
                     <a:DocumentCount>0</a:DocumentCount>
                     <a:EngagementCurrency xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:CurrencyCode>USD</b:CurrencyCode>
                        <b:CurrencyId i:nil="true"/>
                        <b:CurrencyUid>1152921504606851838</b:CurrencyUid>
                     </a:EngagementCurrency>
                     <a:ExpenseAmount>0</a:ExpenseAmount>
                     <a:ForReportingOnlyFlag>false</a:ForReportingOnlyFlag>
                     <a:FxRate>1</a:FxRate>
                     <a:FxRateActual>1</a:FxRateActual>
                     <a:InvoiceIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:InvoiceWorkflowStatus>N</a:InvoiceWorkflowStatus>
                     <a:InvoicedAmount>0</a:InvoicedAmount>
                     <a:LastUpdatedByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:LastUpdatedTimestamp i:nil="true"/>
                     <a:LockedFlag>false</a:LockedFlag>
                     <a:NoteCount>0</a:NoteCount>
                     <a:RejectedByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:RejectedReason i:nil="true"/>
                     <a:RejectedTimestamp i:nil="true"/>
                     <a:RevRecAdjustmentAmount i:nil="true"/>
                     <a:RevenueAmount>0</a:RevenueAmount>
                     <a:Status>U</a:Status>
                     <a:SubmittedByUser i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:SubmittedTimestamp i:nil="true"/>
                     <a:SystemRatePerMileageUnit>0.575</a:SystemRatePerMileageUnit>
                     <a:UnitCost>189.99</a:UnitCost>
                     <a:UnitPrice>189.99</a:UnitPrice>
                     <a:VatAmountDisbursedCurrency>0</a:VatAmountDisbursedCurrency>
                     <a:VoucherIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <a:WipAmount i:nil="true"/>
                     <a:ChargeableFlag>false</a:ChargeableFlag>
                     <a:DisbursingCostCenterIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:CostCenterId i:nil="true"/>
                        <b:CostCenterName>Section B</b:CostCenterName>
                        <b:CostCenterNumber>Section B</b:CostCenterNumber>
                        <b:CostCenterUid>1152921504606884477</b:CostCenterUid>
                     </a:DisbursingCostCenterIdentity>
                     <a:EngagementCurrencyDecimalDigits>2</a:EngagementCurrencyDecimalDigits>
                     <a:EngagementTypeBillableFlag>true</a:EngagementTypeBillableFlag>
                     <a:IncurredCurrencyDecimalDigits>2</a:IncurredCurrencyDecimalDigits>
                     <a:ManagementData>
                        <a:AccountingPeriodClosedFlag>false</a:AccountingPeriodClosedFlag>
                        <a:ApprovalWorkflowFlag>false</a:ApprovalWorkflowFlag>
                        <a:ApproverFlag>false</a:ApproverFlag>
                        <a:ApproverToInvoiceFlag>false</a:ApproverToInvoiceFlag>
                        <a:ApproverToPayFlag>false</a:ApproverToPayFlag>
                        <a:ApproversCanRejectApprovedExpensesFlag>false</a:ApproversCanRejectApprovedExpensesFlag>
                        <a:AutoApprovalFlag>false</a:AutoApprovalFlag>
                        <a:AutoApprovalToInvoiceFlag>false</a:AutoApprovalToInvoiceFlag>
                        <a:AutoApprovalToPayFlag>false</a:AutoApprovalToPayFlag>
                        <a:AwsApprovedStatusAllowedFlag>false</a:AwsApprovedStatusAllowedFlag>
                        <a:AwsDraftStatusAllowedFlag>true</a:AwsDraftStatusAllowedFlag>
                        <a:AwsRejectedStatusAllowedFlag>false</a:AwsRejectedStatusAllowedFlag>
                        <a:AwsSubmittedStatusAllowedFlag>true</a:AwsSubmittedStatusAllowedFlag>
                        <a:CanAdjustFlag>false</a:CanAdjustFlag>
                        <a:CanEditFlag>true</a:CanEditFlag>
                        <a:ClientIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:ClientId i:nil="true"/>
                           <b:ClientNumber>PR-PSA</b:ClientNumber>
                           <b:ClientUid>1152921504606961482</b:ClientUid>
                        </a:ClientIdentity>
                        <a:ClientName>Projector PSA</a:ClientName>
                        <a:DisbursedCurrencyDecimalDigits>2</a:DisbursedCurrencyDecimalDigits>
                        <a:DisbursedCurrencyIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:CurrencyCode>USD</b:CurrencyCode>
                           <b:CurrencyId i:nil="true"/>
                           <b:CurrencyUid>1152921504606851838</b:CurrencyUid>
                        </a:DisbursedCurrencyIdentity>
                        <a:DisbursingCostCenterIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:CostCenterId i:nil="true"/>
                           <b:CostCenterName>Section B</b:CostCenterName>
                           <b:CostCenterNumber>Section B</b:CostCenterNumber>
                           <b:CostCenterUid>1152921504606884477</b:CostCenterUid>
                        </a:DisbursingCostCenterIdentity>
                        <a:EditSubmitFlag>true</a:EditSubmitFlag>
                        <a:ExpenseDocumentIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <a:ExpenseDocumentName>Team Meeting</a:ExpenseDocumentName>
                        <a:ExpenseDocumentTimestamp>E</a:ExpenseDocumentTimestamp>
                        <a:ExpenseDocumentType>E</a:ExpenseDocumentType>
                        <a:ExpenseDocumentVatFlag>false</a:ExpenseDocumentVatFlag>
                        <a:IwsApprovedStatusAllowedFlag>false</a:IwsApprovedStatusAllowedFlag>
                        <a:IwsDraftInvoiceStatusAllowedFlag>false</a:IwsDraftInvoiceStatusAllowedFlag>
                        <a:IwsInvoicedStatusAllowedFlag>false</a:IwsInvoicedStatusAllowedFlag>
                        <a:IwsUnapprovedStatusAllowedFlag>false</a:IwsUnapprovedStatusAllowedFlag>
                        <a:MileageUom>M</a:MileageUom>
                        <a:PwsApprovedStatusAllowedFlag>false</a:PwsApprovedStatusAllowedFlag>
                        <a:PwsPaidStatusAllowedFlag>false</a:PwsPaidStatusAllowedFlag>
                        <a:PwsReceivedStatusAllowedFlag>false</a:PwsReceivedStatusAllowedFlag>
                        <a:PwsTransmittedStatusAllowedFlag>false</a:PwsTransmittedStatusAllowedFlag>
                        <a:PwsUnapprovedStatusAllowedFlag>false</a:PwsUnapprovedStatusAllowedFlag>
                     </a:ManagementData>
                     <a:PaymentVoucherPaymentWorkflowStatus>N</a:PaymentVoucherPaymentWorkflowStatus>
                     <a:ProjectName>Project A</a:ProjectName>
                  </a:PwsCostCardElement>
               </a:CostCards>
               <a:DisbursedCurrencyIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                  <b:CurrencyCode>USD</b:CurrencyCode>
                  <b:CurrencyId i:nil="true"/>
                  <b:CurrencyUid>1152921504606851838</b:CurrencyUid>
               </a:DisbursedCurrencyIdentity>
               <a:DocumentCount>0</a:DocumentCount>
               <a:ExpenseDocumentDetail>
                  <DocumentNumber i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <ExpenseDocumentId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <ExpenseDocumentUid i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                  <a:CashAdvanceReturnAmount>0</a:CashAdvanceReturnAmount>
                  <a:CostCenterIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:CostCenterId i:nil="true"/>
                     <b:CostCenterName>Section B</b:CostCenterName>
                     <b:CostCenterNumber>Section B</b:CostCenterNumber>
                     <b:CostCenterUid>1152921504606884477</b:CostCenterUid>
                  </a:CostCenterIdentity>
                  <a:DocumentName>Copy of Team Meeting</a:DocumentName>
                  <a:DocumentType>E</a:DocumentType>
                  <a:LocationIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:LocationId i:nil="true"/>
                     <b:LocationName>USA</b:LocationName>
                     <b:LocationUid>1152921504606855985</b:LocationUid>
                  </a:LocationIdentity>
                  <a:ResourceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:ResourceDisplayName>Beth Brown</b:ResourceDisplayName>
                     <b:ResourceId i:nil="true"/>
                     <b:ResourceReferenceSystemId>E125</b:ResourceReferenceSystemId>
                     <b:ResourceUid>1152921504607111786</b:ResourceUid>
                  </a:ResourceIdentity>
                  <a:VendorIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:VendorId i:nil="true"/>
                     <b:VendorName>Beth Brown</b:VendorName>
                     <b:VendorUid>1152921504607055834</b:VendorUid>
                     <b:VendorNumber>Beth Brown</b:VendorNumber>
                  </a:VendorIdentity>
                  <a:VendorInvoiceDate i:nil="true"/>
                  <a:VendorInvoiceReferenceNumber i:nil="true"/>
                  <a:Vendor xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:VendorId i:nil="true"/>
                     <b:VendorName>Beth Brown</b:VendorName>
                     <b:VendorUid>1152921504607055834</b:VendorUid>
                     <b:VendorNumber>Beth Brown</b:VendorNumber>
                     <b:ExpenseReportPayeeFlag>true</b:ExpenseReportPayeeFlag>
                     <b:InactiveFlag>false</b:InactiveFlag>
                     <b:ResourceVendorFlag>true</b:ResourceVendorFlag>
                     <b:VendorInvoicePayeeFlag>false</b:VendorInvoicePayeeFlag>
                     <b:SubcontractorInvoicePayeeFlag>true</b:SubcontractorInvoicePayeeFlag>
                  </a:Vendor>
                  <a:SubcontractorInvoiceDate i:nil="true"/>
                  <a:SubcontractorInvoiceReferenceNumber i:nil="true"/>
                  <a:NewDocumentNumber i:nil="true"/>
                  <a:SubcontractorInvoiceReferenceNumberClearFlag>false</a:SubcontractorInvoiceReferenceNumberClearFlag>
                  <a:Timestamp>AAAAAAAAAAA=</a:Timestamp>
                  <a:VendorInvoiceReferenceNumberClearFlag>false</a:VendorInvoiceReferenceNumberClearFlag>
               </a:ExpenseDocumentDetail>
               <a:ExpenseDocumentVatFlag>false</a:ExpenseDocumentVatFlag>
               <a:Invoices/>
               <a:Locations xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
               <a:LockedFlag>true</a:LockedFlag>
               <a:NoteCount>0</a:NoteCount>
               <a:PayeeVendors xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                  <b:PwsVendorSummary>
                     <b:VendorId i:nil="true"/>
                     <b:VendorName>Beth Brown</b:VendorName>
                     <b:VendorUid>1152921504607055834</b:VendorUid>
                     <b:VendorNumber>Beth Brown</b:VendorNumber>
                     <b:ExpenseReportPayeeFlag>true</b:ExpenseReportPayeeFlag>
                     <b:InactiveFlag>false</b:InactiveFlag>
                     <b:ResourceVendorFlag>true</b:ResourceVendorFlag>
                     <b:VendorInvoicePayeeFlag>false</b:VendorInvoicePayeeFlag>
                     <b:SubcontractorInvoicePayeeFlag>true</b:SubcontractorInvoicePayeeFlag>
                  </b:PwsVendorSummary>
               </a:PayeeVendors>
               <a:Projects>
                  <a:PwsExpenseEntryProject>
                     <ProjectCode xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">P001407-001</ProjectCode>
                     <ProjectId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                     <ProjectUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504607413030</ProjectUid>
                     <a:BookedResourcesOnlyFlag>false</a:BookedResourcesOnlyFlag>
                     <a:EarliestRoleStartDate>2018-01-01T00:00:00Z</a:EarliestRoleStartDate>
                     <a:EngagementDescriptor>
                        <EngagementCode xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">E001407</EngagementCode>
                        <EngagementId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                        <EngagementUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504607325242</EngagementUid>
                        <a:ClientDescriptor>
                           <ClientId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                           <ClientNumber xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">PR-PSA</ClientNumber>
                           <ClientUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504606961482</ClientUid>
                           <a:ClientName>Projector PSA</a:ClientName>
                           <a:ParentClientDescriptor i:nil="true"/>
                        </a:ClientDescriptor>
                        <a:EngagementManager xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:UserDisplayName>Jack Spratt</b:UserDisplayName>
                           <b:UserId i:nil="true"/>
                           <b:UserReferenceSystemId>E123</b:UserReferenceSystemId>
                           <b:UserUid>1152921504607112369</b:UserUid>
                           <b:EmailAddress>jack@revcorp.bb</b:EmailAddress>
                           <b:FirstName>Jack</b:FirstName>
                           <b:LastName>Spratt</b:LastName>
                           <b:MiddleName i:nil="true"/>
                        </a:EngagementManager>
                        <a:EngagementName>Engagement A</a:EngagementName>
                        <a:EngagementTypeDescriptor>
                           <EngagementTypeId i:nil="true" xmlns="http://projectorpsa.com/DataContracts/Shared/Common/"/>
                           <EngagementTypeName xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">Billable - Time and Materials</EngagementTypeName>
                           <EngagementTypeShortName xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">TandM</EngagementTypeShortName>
                           <EngagementTypeUid xmlns="http://projectorpsa.com/DataContracts/Shared/Common/">1152921504606863884</EngagementTypeUid>
                           <a:BillableFlag>true</a:BillableFlag>
                        </a:EngagementTypeDescriptor>
                        <a:EngagementCurrencyDecimalDigits>2</a:EngagementCurrencyDecimalDigits>
                        <a:EngagementCurrencyIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                           <b:CurrencyCode>USD</b:CurrencyCode>
                           <b:CurrencyId i:nil="true"/>
                           <b:CurrencyUid>1152921504606851838</b:CurrencyUid>
                        </a:EngagementCurrencyIdentity>
                     </a:EngagementDescriptor>
                     <a:LatestRoleEndDate>2018-02-28T00:00:00Z</a:LatestRoleEndDate>
                     <a:LocationIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:LocationId i:nil="true"/>
                        <b:LocationName>USA</b:LocationName>
                        <b:LocationUid>1152921504606855985</b:LocationUid>
                     </a:LocationIdentity>
                     <a:OpenForCostFlag>true</a:OpenForCostFlag>
                     <a:ProjectCloseDate>2018-02-28T00:00:00Z</a:ProjectCloseDate>
                     <a:ProjectDescription i:nil="true"/>
                     <a:ProjectManager xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:UserDisplayName>Jack Spratt</b:UserDisplayName>
                        <b:UserId i:nil="true"/>
                        <b:UserReferenceSystemId>E123</b:UserReferenceSystemId>
                        <b:UserUid>1152921504607112369</b:UserUid>
                        <b:EmailAddress>jack@revcorp.bb</b:EmailAddress>
                        <b:FirstName>Jack</b:FirstName>
                        <b:LastName>Spratt</b:LastName>
                        <b:MiddleName i:nil="true"/>
                     </a:ProjectManager>
                     <a:ProjectName>Project A</a:ProjectName>
                     <a:ProjectOpenDate>2018-01-01T00:00:00Z</a:ProjectOpenDate>
                     <a:ProjectStageIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:ProjectStageId i:nil="true"/>
                        <b:ProjectStageName>Delivery</b:ProjectStageName>
                        <b:ProjectStageShortName>Delivery</b:ProjectStageShortName>
                        <b:ProjectStageUid>1152921504606853304</b:ProjectStageUid>
                     </a:ProjectStageIdentity>
                     <a:RoleCount>1</a:RoleCount>
                     <a:Udf1InactiveFlag>false</a:Udf1InactiveFlag>
                     <a:Udf1Values xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
                     <a:Udf2InactiveFlag>false</a:Udf2InactiveFlag>
                     <a:Udf2Values xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <b:string>Celebration</b:string>
                        <b:string>Team Building</b:string>
                        <b:string>Client Meeting</b:string>
                        <b:string>Other</b:string>
                     </a:Udf2Values>
                     <a:AllowBookingFlag>true</a:AllowBookingFlag>
                     <a:Udf1DefaultValue i:nil="true"/>
                     <a:Udf2DefaultValue i:nil="true"/>
                     <a:ExpenseTypeIdentities xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                        <b:PwsExpenseTypeRef>
                           <b:ExpenseTypeId i:nil="true"/>
                           <b:ExpenseTypeName>Meals</b:ExpenseTypeName>
                           <b:ExpenseTypeUid>1152921504606878415</b:ExpenseTypeUid>
                        </b:PwsExpenseTypeRef>
                        <b:PwsExpenseTypeRef>
                           <b:ExpenseTypeId i:nil="true"/>
                           <b:ExpenseTypeName>Other/Misc Billable</b:ExpenseTypeName>
                           <b:ExpenseTypeUid>1152921504606879705</b:ExpenseTypeUid>
                        </b:PwsExpenseTypeRef>
                        <b:PwsExpenseTypeRef>
                           <b:ExpenseTypeId i:nil="true"/>
                           <b:ExpenseTypeName>Meals and Entertainment</b:ExpenseTypeName>
                           <b:ExpenseTypeUid>1152921504606881279</b:ExpenseTypeUid>
                        </b:PwsExpenseTypeRef>
                        <b:PwsExpenseTypeRef>
                           <b:ExpenseTypeId i:nil="true"/>
                           <b:ExpenseTypeName>Travel</b:ExpenseTypeName>
                           <b:ExpenseTypeUid>1152921504606881280</b:ExpenseTypeUid>
                        </b:PwsExpenseTypeRef>
                     </a:ExpenseTypeIdentities>
                  </a:PwsExpenseEntryProject>
               </a:Projects>
               <a:Receipts/>
               <a:TitleIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                  <b:DepartmentIdentity>
                     <b:DepartmentId i:nil="true"/>
                     <b:DepartmentName>Administrative Team</b:DepartmentName>
                     <b:DepartmentUid>1152921504606854346</b:DepartmentUid>
                  </b:DepartmentIdentity>
                  <b:TitleId i:nil="true"/>
                  <b:TitleName>Level 2</b:TitleName>
                  <b:TitleUid>1152921504606876426</b:TitleUid>
               </a:TitleIdentity>
               <a:Vouchers/>
               <a:AllowCloneFlag>false</a:AllowCloneFlag>
               <a:AllowDeleteFlag>false</a:AllowDeleteFlag>
               <a:Category>D</a:Category>
               <a:CreatedByUser xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                  <b:UserDisplayName>Beth Brown</b:UserDisplayName>
                  <b:UserId i:nil="true"/>
                  <b:UserReferenceSystemId>E125</b:UserReferenceSystemId>
                  <b:UserUid>1152921504607112693</b:UserUid>
                  <b:EmailAddress>beth@revcorp.bb</b:EmailAddress>
                  <b:FirstName>Beth</b:FirstName>
                  <b:LastName>Brown</b:LastName>
                  <b:MiddleName i:nil="true"/>
               </a:CreatedByUser>
               <a:CreatedTimestamp>2018-02-07T17:44:24.317Z</a:CreatedTimestamp>
               <a:LastUpdatedByUser xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                  <b:UserDisplayName>Beth Brown</b:UserDisplayName>
                  <b:UserId i:nil="true"/>
                  <b:UserReferenceSystemId>E125</b:UserReferenceSystemId>
                  <b:UserUid>1152921504607112693</b:UserUid>
                  <b:EmailAddress>beth@revcorp.bb</b:EmailAddress>
                  <b:FirstName>Beth</b:FirstName>
                  <b:LastName>Brown</b:LastName>
                  <b:MiddleName i:nil="true"/>
               </a:LastUpdatedByUser>
               <a:LastUpdatedTimestamp>2018-02-07T17:50:59.82Z</a:LastUpdatedTimestamp>
               <a:PaymentVoucherItems/>
               <a:Status>D</a:Status>
               <a:DisbursedCurrencyDecimalDigits>2</a:DisbursedCurrencyDecimalDigits>
               <a:MileageUom>M</a:MileageUom>
               <a:ExpenseDocumentLockedFlag>false</a:ExpenseDocumentLockedFlag>
               <a:ApprovalWorkflowStatus>D</a:ApprovalWorkflowStatus>
               <a:CostCardTotalDisbursedAmount>189.99</a:CostCardTotalDisbursedAmount>
               <a:DeleteExpenseDocumentUnavailableReason>APP</a:DeleteExpenseDocumentUnavailableReason>
               <a:DueToOtherPayeesAmount>0</a:DueToOtherPayeesAmount>
               <a:InvoiceWorkflowStatus>N</a:InvoiceWorkflowStatus>
               <a:MaintainExpenseDocumentUnavailableReason>LOK</a:MaintainExpenseDocumentUnavailableReason>
               <a:PaymentWorkflowStatus>N</a:PaymentWorkflowStatus>
               <a:ViewInExpenseEntryFlag>false</a:ViewInExpenseEntryFlag>
            </a:ExpenseDocument>
         </PwsGetExpenseDocumentResult>
      </PwsGetExpenseDocumentResponse>
   </s:Body>
</s:Envelope>

PwsGetExpenseDocument - Common Errors and Warnings


ErrorNumber

ErrorCode

ErrorText

19004ExpenseDocumentNotSpecifiedForRetrieveNo expense document was specified for retrieval.
19007CloneDatesOrAmountsRequiresRetrieveCostCardsThe clone flags may not be specified unless you are retrieving the cost cards with the expense document.
19034InvalidValueForExpenseDocumentTypeThe value specified for expense document type is invalid. Value values are E for Expense Report, V for Vendor Invoice and S for Soft Card Batch.
19073ExpenseDocumentIdentityRequiredAn expense document identity must be specified.
65494ExpenseDocumentNotFoundExpense document not found
65577ExpenseDocumentMustBeSpecifiedForCloningExpenseDocumentWhen cloning, an expense document to clone from must be specified
65578NoPermissionToViewExpenseDocumentNo permission to view expense document
65649DisbCostCenterDiffersFromEdCostCenterThe specified disbursing cost center and expense document do not match.
65804SubcontractorInvoiceExpectedSpecified expense document is not a subcontractor invoice.
  • No labels