Versions Compared

Key

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

Overview

This web service can be used to create a web invoice. You specify the attributes to use for invoice creation by providing a InvoiceSpec, an instance of PwsCandidateInvoiceSpec. This structure allows you to specify the name, scope and content of the invoice, the approval statuses and other invoice attributes. See below for full details. The caller can optionally request that the full invoice detail PwsInvoiceElement be included in the response.

...

Overview


This web service can be used to create a web invoice. You specify the attributes to use for invoice creation by providing a InvoiceSpec, an instance of PwsCandidateInvoiceSpec. This structure allows you to specify the name, scope and content of the invoice, the approval statuses and other invoice attributes. See below for full details. The caller can optionally request that the full invoice detail PwsInvoiceElement be included in the response.  Note that this service will create web invoices only, and cannot be used to create Management Portal invoices.


Info
titleRate Limiting

In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm.  When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate.  Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly.  For more information please visit: Projector Rate Limiting Behavior.


Request Format


Panel
titlePwsCreateInvoice Request
* PwsCreateInvoiceRq
	* InvoiceSpec
		* InvoiceName : String(100)
		* ClientIdentity : PwsClientRef
		* PurchaseOrderNumber : String(50)
		* EngagementIdentity : PwsEngagementRef
		* ProjectIdentity : PwsProjectRef
		* ApprovedByFinanceFlag : Boolean
		* ApprovedByProjectManagerFlag : Boolean
		* ApprovedByManagementFlag : Boolean
		* EngagementCurrencyIdentity : PwsCurrencyRef
		* CostCenterIdentity : PwsCostCenterRef
		* BillingCultureIdentity : PwsCultureRef
		* EngagementInvoiceContent : String(1)
		* InvoiceScope : String(1)
		* InvoiceContent : String(1)
		* CardBeginDate : Date
		* CardEndDate : Date
	* NotifyFinanceTeamFlag : Boolean
	* NotifyPmTeamFlag : Boolean
	* NotifyManagementTeamFlag : Boolean
	* NewInvoiceMessages: String(1000)
	* AddCommentsToInvoiceMessagesFlag : Boolean
	* ExcludeZeroAmountTimeCardsFlag : Boolean
	* ExcludeZeroAmountCostCardsFlag : Boolean
	* FullDetailFlag : Boolean
	* IncludeAdjustmentHistoryFlag : Boolean
	* IncludeFullAdjustmentHistoryFlag : Boolean

Request Elements

Request Usage Example(s)

Code Block
languagexml
titleExample 01
collapsetrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:sch="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/"> <soapenv:Header/> <soapenv:Body> <pws:PwsCreateProjectCostBaseline>
  • PwsCreateInvoiceRq
    • RequestId: Int32
    • SessionTicket: String
    • AddCommentsToInvoiceMessagesFlag: Boolean
    • ExcludeZeroAmountCostCardsFlag: Boolean
    • ExcludeZeroAmountTimeCardsFlag: Boolean
    • FullDetailFlag: Boolean
    • IncludeAdjustmentHistoryFlag: Boolean
    • IncludeFullAdjustmentHistoryFlag: Boolean
    • InvoiceSpec: PwsCandidateInvoiceSpec
    • NewInvoiceMessages: String
    • NotifyFinanceTeamFlag: Boolean
    • NotifyManagementTeamFlag: Boolean
    • NotifyPmTeamFlag: Boolean

Request Elements


Element

Data TypeRequired?DefaultDescription
RequestIdInt32No

Click here for more information


SessionTicketStringYes

Click here for more information


AddCommentsToInvoiceMessagesFlagBooleanNoFalseTrue to prepend comments (NewInvoiceMessages) to invoice message
ExcludeZeroAmountCostCardsFlagBooleanNoFalseTrue to exclude time cards with no value from invoice
ExcludeZeroAmountTimeCardsFlagBooleanNoFalseTrue to exclude cost cards with no value from invoice
FullDetailFlagBooleanNoFalseTrue to include the full details of the invoice in the response
IncludeAdjustmentHistoryFlagBooleanNoFalseIf FullDetailsFlag is set, true to include adjustment history in invoice detail
IncludeFullAdjustmentHistoryFlagBooleanNoFalseIf FullDetailsFlag is set and IncludeAdjustmentHistoryFlag is set, true to include full card breakdown with each
InvoiceSpecPwsCandidateInvoiceSpecYes
Attributes of the new invoice to be created
NewInvoiceMessagesString (1000)No
Invoice message to include workflow email. May also be added to invoice messages for the new invoice
NotifyFinanceTeamFlagBooleanNoFalseTrue to send an e-mail to the finance team response for finance approval of invoice upon creation
NotifyManagementTeamFlagBooleanNoFalseTrue to send an e-mail to the management team response for management approval of invoice upon creation
NotifyPmTeamFlagBooleanNoFalseTrue to send an e-mail to the PM team response for project manager approval of invoice upon creation

Request Usage Example(s)


code
Code Block
languagexml
titleRequest 01
collapsetrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:bil="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsCreateInvoice>
         <pws:serviceRequest>
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>AXoSoNYPC/IRu5ISV3f2EwSessionTicket>AcDDhcCta4Wna3CCTQ5Fng==</req:SessionTicket>
            <sch:ActualsCutoffDate>2018-03-31T00:00:00.000Z</sch:ActualsCutoffDate><bil:AddCommentsToInvoiceMessagesFlag>true</bil:AddCommentsToInvoiceMessagesFlag>
            <sch<bil:Basis>N<ExcludeZeroAmountCostCardsFlag>false</schbil:Basis>ExcludeZeroAmountCostCardsFlag>
            <sch<bil:Dimension>E<ExcludeZeroAmountTimeCardsFlag>false</schbil:Dimension>ExcludeZeroAmountTimeCardsFlag>
            <sch<bil:FullDetailFlag>true</schbil:FullDetailFlag>
            <sch<bil:IntervalCount>2<IncludeAdjustmentHistoryFlag>true</schbil:IntervalCount>IncludeAdjustmentHistoryFlag>
            <sch:ProjectCostBaseline><bil:IncludeFullAdjustmentHistoryFlag>true</bil:IncludeFullAdjustmentHistoryFlag>
               <com:ActiveProjectCostBaselineFlag>true</com:ActiveProjectCostBaselineFlag><bil:InvoiceSpec>
               <com<bil:CaMetricActiveFlag>true<ApprovedByFinanceFlag>false</combil:CaMetricActiveFlag>ApprovedByFinanceFlag>
               <com<bil:DaMetricActiveFlag>false<ApprovedByManagementFlag>false</combil:DaMetricActiveFlag>ApprovedByManagementFlag>
               <com:Description>Client Amount Cost Baseline</com:Description><bil:ApprovedByProjectManagerFlag>false</bil:ApprovedByProjectManagerFlag>
               <bil:BillingCultureIdentity>
  <com:EaMetricActiveFlag>false</com:EaMetricActiveFlag>                <com:PrimaryMetric>C<CultureName>en-US</com:PrimaryMetric>CultureName>
               <com:ProjectCostBaselineName>Client Amount Budget</com:ProjectCostBaselineName></bil:BillingCultureIdentity>
               <com:ProjectCostBaselineBuckets><bil:CardBeginDate>2022-07-01T00:00:00.000Z</bil:CardBeginDate>
                  <com:PwsProjectCostBaselineBucket><bil:CardEndDate>2022-07-05T00:00:00.000Z</bil:CardEndDate>
                     <com:ClientAmount>2000</com:ClientAmount><bil:ClientIdentity>
                     <com:EndDate>2018-01-31T00:00:00.000Z<ClientNumber>Amazon</com:EndDate>ClientNumber>
               </bil:ClientIdentity>
         <com:ExpenseTypeIdentity>      <bil:CostCenterIdentity>
                  <com:ExpenseTypeName>Per Diem<CostCenterName>Executive Team (USA)</com:ExpenseTypeName>CostCenterName>
               </bil:CostCenterIdentity>
      </com:ExpenseTypeIdentity>         <bil:EngagementCurrencyIdentity>
                  <com:StartDate>2018-01-01T00:00:00.000Z<CurrencyCode>USD</com:StartDate>
 CurrencyCode>
                </combil:PwsProjectCostBaselineBucket>EngagementCurrencyIdentity>
               <bil:EngagementIdentity>
    <com:PwsProjectCostBaselineBucket>              <com:EngagementCode>P001666</com:EngagementCode>
         <com:ClientAmount>2000</com:ClientAmount>      </bil:EngagementIdentity>
               <com:EndDate>2018-02-28T00:00:00.000Z</com:EndDate><bil:EngagementInvoiceContent>B</bil:EngagementInvoiceContent>
               <bil:InvoiceContent>B</bil:InvoiceContent>
     <com:ExpenseTypeIdentity>          <bil:InvoiceName>Invoice - WS</bil:InvoiceName>
             <com:ExpenseTypeName>Per Diem</com:ExpenseTypeName>  <bil:InvoiceScope>P</bil:InvoiceScope>
                     </com:ExpenseTypeIdentity><bil:ProjectIdentity>
                     <com:StartDate>2018-02-01T00:00:00.000Z<ProjectCode>P001666-001</com:StartDate>
 ProjectCode>
                </combil:PwsProjectCostBaselineBucket>ProjectIdentity>
               </com:ProjectCostBaselineBuckets><bil:PurchaseOrderNumber>Invoice - WS</bil:PurchaseOrderNumber>
            </schbil:ProjectCostBaseline>InvoiceSpec>
            <sch<bil:ProjectIdentity>NewInvoiceMessages>Invoice - WS</bil:NewInvoiceMessages>
             <com:ProjectCode>P001407-001</com:ProjectCode><bil:NotifyFinanceTeamFlag>true</bil:NotifyFinanceTeamFlag>
            <<bil:NotifyManagementTeamFlag>true</schbil:ProjectIdentity>NotifyManagementTeamFlag>
            <sch:StartDate>2018-01-01T00:00:00.000Z</sch:StartDate>
  <bil:NotifyPmTeamFlag>true</bil:NotifyPmTeamFlag>
         <sch:StealEngagementLockFlag>false</sch:StealEngagementLockFlag>
            <sch:TimePhase>M</sch:TimePhase>
         </pws:serviceRequest>
      </pws:PwsCreateProjectCostBaseline>PwsCreateInvoice>
   </soapenv:Body>
</soapenv:Envelope>

Response Format


language<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pws="http://projectorpsa.com/PwsProjectorServices/" xmlns:req="http://projectorpsa.com/DataContracts/Requests/" xmlns:sch="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/"> <soapenv:Header/> <soapenv:Body> <pws:PwsCreateProjectCostBaseline>
Panel
xml
title
titleExample 02 - lock stolen
collapsetrue
PwsCreateInvoice 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

1

Status

RequestStatus

Click here for more information.

Ok

ServerTimestampUtc

DateTime

Click here for more information

2018-01-29T21:55:08.7579802Z
InvoicePwsInvoiceElementThe complete details if FullDetailFlag is specified on request
InvoiceIdentityPwsInvoiceRefThe identity of the newly created invoice
InvoiceTimeStampStringThis is an optimisitc locking timestamp for the newly created invoice

Response Usage Example(s)


Code Block
languagexml
titleResponse 01
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
         <pws:serviceRequest><PwsCreateInvoiceResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
            <req:RequestId>1</req:RequestId>
            <req:SessionTicket>Ade8vXDjCIr0kcDpdVTbCw==</req:SessionTicket><PwsCreateInvoiceResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages <sch:ActualsCutoffDate>2018-12-31T00:00:00.000Z</sch:ActualsCutoffDate>xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
             <sch:Basis>N</sch:Basis><ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status <sch:Dimension>E</sch:Dimension>xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc <sch:FullDetailFlag>true</sch:FullDetailFlag>xmlns="http://projectorpsa.com/CommonServices/">2022-07-12T15:26:20.1132902Z</ServerTimestampUtc>
             <sch:ProjectCostBaseline><a:Invoice xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <com<b:ActiveProjectCostBaselineFlag>true<AdjustmentHistory/com:ActiveProjectCostBaselineFlag>>
               <com<b:CaMetricActiveFlag>true<AllowAccountingPeriodOverrideFlag>false</comb:CaMetricActiveFlag>AllowAccountingPeriodOverrideFlag>
               <com<b:DaMetricActiveFlag>false<ApprovedByFinanceFlag>false</comb:DaMetricActiveFlag>ApprovedByFinanceFlag>
               <com<b:Description>Client Amount Cost Baseline</com:Description>ApprovedByFinanceTimestamp i:nil="true"/>
               <b:ApprovedByFinanceUser  <com:EaMetricActiveFlag>false</com:EaMetricActiveFlag>i:nil="true"/>
               <com<b:PrimaryMetric>C<ApprovedByManagementFlag>false</comb:PrimaryMetric>ApprovedByManagementFlag>
               <com<b:ProjectCostBaselineName>Client Amount Budget</com:ProjectCostBaselineName>ApprovedByManagementTimestamp i:nil="true"/>
               <com<b:ProjectCostBaselineBuckets>
ApprovedByManagementUser i:nil="true"/>
                 <com:PwsProjectCostBaselineBucket><b:ApprovedByProjectManagerFlag>false</b:ApprovedByProjectManagerFlag>
                     <com:ClientAmount>2000</com:ClientAmount><b:ApprovedByProjectManagerTimestamp i:nil="true"/>
                     <com:ExpenseTypeIdentity><b:ApprovedByProjectManagerUser i:nil="true"/>
                        <com:ExpenseTypeName>Per Diem-AA</com:ExpenseTypeName><b:AutoManagementApprovalFlag>true</b:AutoManagementApprovalFlag>
               <b:AvailableBalances>
     </com:ExpenseTypeIdentity>             <b:PwsInvoiceAvailableBalance>
     </com:PwsProjectCostBaselineBucket>                <b:ContractLineItem>
  <com:PwsProjectCostBaselineBucket>                      <com<b:ClientAmount>2000<ContractLineItemCode>P001666-CL1</comb:ClientAmount>ContractLineItemCode>
                     <com:ExpenseTypeIdentity>    <b:ContractLineItemId i:nil="true"/>
                        <com<b:ExpenseTypeName>Travel-AR<ContractLineItemUid>1152921504607167042</com:ExpenseTypeName>b:ContractLineItemUid>
                        </com:ExpenseTypeIdentity><b:ContractLineItemName>R23 - 2022</b:ContractLineItemName>
                        </com<b:PwsProjectCostBaselineBucket>EngagementIdentity>
               </com:ProjectCostBaselineBuckets>             </sch:ProjectCostBaseline><b:EngagementCode>P001666</b:EngagementCode>
            <sch:ProjectIdentity>               <b:EngagementId <com:ProjectCode>P001125-001</com:ProjectCode>i:nil="true"/>
              </sch:ProjectIdentity>             <!--sch:StartDate>2018-11-01T00:00:00.000Z</sch:StartDate--><b:EngagementUid>1152921504607393774</b:EngagementUid>
            <sch:StealEngagementLockFlag>false</sch:StealEngagementLockFlag>             <sch:TimePhase>N</sch:TimePhase></b:EngagementIdentity>
            <sch:LocksToSteal>          </b:ContractLineItem>
     <com:PwsEntityLockSummary>                   <com:EntityIdentity><b:EditableFlag>true</b:EditableFlag>
                     <com<b:EntityCode>P001125-001<UnappliedPrepaidAmount>0</comb:EntityCode>UnappliedPrepaidAmount>
                     <com:LockType>P</com:LockType>
</b:PwsInvoiceAvailableBalance>
                 </comb:EntityIdentity>AvailableBalances>
                  <com:EntityLockSummary><b:AvailableMilestones/>
                  <b:CardBeginDate>2022-07-01T00:00:00</b:CardBeginDate>
  <com:PwsEntityLockSummaryItem>             <b:CardEndDate>2022-07-05T00:00:00</b:CardEndDate>
           <com:LockCount>1</com:LockCount>    <b:Client>
                  <b:ClientId i:nil="true"/>
    <com:LockHolderUserIdentity>              <b:ClientNumber>AMAZON</b:ClientNumber>
             <com:UserDisplayName>Krakauer, Larry</com:UserDisplayName>     <b:ClientUid>1152921504606971723</b:ClientUid>
                  <b:ClientName>Amazon</b:ClientName>
      </com:LockHolderUserIdentity>            <b:InactiveFlag>false</b:InactiveFlag>
             <com:MostRecentLockAcquisitionTimestamp>2018-11-14T17:59:52.2Z</com:MostRecentLockAcquisitionTimestamp>     <b:ParentClientIdentity i:nil="true"/>
               </comb:PwsEntityLockSummaryItem>Client>
               <b:CompanyIdentity>
   </com:EntityLockSummary>                </com:PwsEntityLockSummary><b:CompanyId i:nil="true"/>
                  <<b:CompanyName>USA</schb:LocksToSteal>CompanyName>
           </pws:serviceRequest>       <<b:CompanyUid>1152921504606850739</pws:PwsCreateProjectCostBaseline>b:CompanyUid>
         </soapenv:Body>
</soapenv:Envelope>

Response Format

...

titlePwsCreateProjectCostBaseline 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

...

1

...

Status

...

RequestStatus

...

Click here for more information.

...

Ok

...

ServerTimestampUtc

...

DateTime

...

Click here for more information

...

2018-01-29T21:55:08.7579802Z

...

EngagementLockStolenFromUserIdentity

...

PwsUserRef

...

**deprecated**

...

EngagementTimestamp

...

String

...

**deprecated**

...

AAAAAA62DGw=

...

ProjectCostBaseline

...

PwsProjectCostBaselineElement

...

The complete set of information about the project cost baseline. Specify FullDetailFlag = true in request to get this value returned in the response.

...

ProjectCostBaselineIdentity

...

PwsProjectCostBaselineRef

...

The unique keys used to identify the project cost baseline

...

Response Usage Example(s)

Code Block
languagexml
titleExample 01
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>         <b:CompanyNumber>USA</b:CompanyNumber>
               </b:CompanyIdentity>
               <b:CostCardAdjustmentAmount>0</b:CostCardAdjustmentAmount>
               <b:CostCardExclusionsAmount>0</b:CostCardExclusionsAmount>
               <b:CostCardInvoicedAmount>0</b:CostCardInvoicedAmount>
               <b:CostCardRequireLocationFlag>false</b:CostCardRequireLocationFlag>
               <b:CostCenterIdentity>
                  <b:CostCenterId i:nil="true"/>
                  <b:CostCenterName>Executive Team (USA)</b:CostCenterName>
                 <PwsCreateProjectCostBaselineResponse xmlns="http://projectorpsa.com/PwsProjectorServices/"><b:CostCenterNumber>Executive Team (USA)</b:CostCenterNumber>
                 <PwsCreateProjectCostBaselineResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><b:CostCenterUid>1152921504606867363</b:CostCenterUid>
                 <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/></b:CostCenterIdentity>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>  <b:CreatedByUser>
          <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>       <b:UserDisplayName>Bettina</b:UserDisplayName>
     <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-01-29T21:55:08.7579802Z</ServerTimestampUtc>             <a<b:EngagementLockStolenFromUserIdentityUserId i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>>
             <a:EngagementTimestamp>AAAAAA62DGw=</a:EngagementTimestamp>     <b:UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
                 <a:ProjectCostBaseline xmlns<b:UserUid>1152921504607011056</b="http://projectorpsa.com/DataContracts/Shared/Common/">:UserUid>
                  <b:Basis>N<EmailAddress>bettina@projectorpsa.com</b:Basis>EmailAddress>
                  <b:FirstName>Bettina</b:CreatedByUser>FirstName>
                  <b:UserDisplayName>Web Services<LastName>Borces</b:UserDisplayName>LastName>
                  <b:UserIdMiddleName i:nil="true"/>
               </b:CreatedByUser>
               <b:UserReferenceSystemId>WS01<CreatedTimestamp>2022-07-12T15:26:19.99Z</b:UserReferenceSystemId>
  CreatedTimestamp>
               <b:UserUid>1152921504607067736<DeletedFlag>false</b:UserUid>
  DeletedFlag>
               <b:EmailAddress>webservices@revcorp.bb<DraftCostCardCount>0</b:EmailAddress>
  DraftCostCardCount>
               <b:FirstName>Web<DraftInvoiceNumber>DRAFT00764</b:FirstName>
 DraftInvoiceNumber>
                <b:LastName>Services<DraftTimeCardCount>0</b:LastName>DraftTimeCardCount>
               <b:Engagement>
  <b:MiddleName i:nil="true"/>                <<b:EngagementCode>P001666</b:CreatedByUser>EngagementCode>
                  <b:CreatedTimestamp>2018-01-29T21:55:02.573Z</b:CreatedTimestamp>EngagementId i:nil="true"/>
                  <b:Dimension>E<EngagementUid>1152921504607393774</b:Dimension>EngagementUid>
                  <b:EndDate>2018-02-28T00:00:00Z</b:EndDate>ClientIdentity>
                     <b:ClientId i:EngagementTimestamp>AAAAAA62DGwnil=</b:EngagementTimestamp>"true"/>
                     <b:LastUpdatedByUser>:ClientNumber>AMAZON</b:ClientNumber>
                     <b:UserDisplayName>Web Services<ClientUid>1152921504606971723</b:UserDisplayName>ClientUid>
                  <b</b:UserId i:nil="true"/>
ClientIdentity>
                  <b:UserReferenceSystemId>WS01<EngagementName>R23 - 2022</b:UserReferenceSystemId>EngagementName>
                  <b:UserUid>1152921504607067736<</b:UserUid>
 Engagement>
                <b:EmailAddress>webservices@revcorp.bb<ExcludeZeroAmountCostCardsFlag>false</b:EmailAddress>ExcludeZeroAmountCostCardsFlag>
                  <b:FirstName>Web<ExcludeZeroAmountTimeCardsFlag>false</b:FirstName>ExcludeZeroAmountTimeCardsFlag>
                  <b:LastName>Services<ExcludedCostCardAmount>10</b:LastName>ExcludedCostCardAmount>
                  <b:MiddleName i:nil="true"/>ExcludedCostCardCount>1</b:ExcludedCostCardCount>
               <<b:ExcludedMilestoneAmount>0</b:LastUpdatedByUser>ExcludedMilestoneAmount>
               <b:LastUpdatedTimestamp>2018-01-29T21:55:02.573Z<ExcludedMilestoneCount>0</b:LastUpdatedTimestamp>ExcludedMilestoneCount>
               <b:ProjectCostBaselineBucketDateIntervals>ExcludedTimeCardAmount>800</b:ExcludedTimeCardAmount>
                  <b:PwsDateInterval>
<b:ExcludedTimeCardCount>1</b:ExcludedTimeCardCount>
                    <b:EndDate>2017-12-31T00:00:00Z<GrossInvoiceAmount>0</b:EndDate>GrossInvoiceAmount>
               <b:IncludedCostCardCount>0</b:IncludedCostCardCount>
     <b:StartDate i:nil="true"/>         <b:IncludedMilestoneCount>0</b:IncludedMilestoneCount>
         </b:PwsDateInterval>      <b:IncludedMilestones/>
            <b:PwsDateInterval>   <b:IncludedTimeCardCount>0</b:IncludedTimeCardCount>
                  <b:EndDate>2018-01-31T00:00:00Z<InvoiceContent>B</b:EndDate>InvoiceContent>
               <b:InvoiceCurrencyDecimalDigits>2</b:InvoiceCurrencyDecimalDigits>
     <b:StartDate>2018-01-01T00:00:00Z</b:StartDate>                   </b:PwsDateInterval><b:InvoiceCurrencyIdentity>
                  <b:PwsDateInterval>
CurrencyCode>USD</b:CurrencyCode>
                    <b:EndDate>2018-02-28T00:00:00Z</b:EndDate>
  CurrencyId i:nil="true"/>
                  <b:StartDate>2018-02-01T00:00:00Z<CurrencyUid>1152921504606851838</b:StartDate>
  CurrencyUid>
               </b:PwsDateInterval>InvoiceCurrencyIdentity>
                  <b:PwsDateInterval>
  InvoiceDetail>
                  <b:EndDateInvoiceId i:nil="true"/>
                  <b:InvoiceNumber>DRAFT00764</b:InvoiceNumber>
    <b:StartDate>2018-03-01T00:00:00Z</b:StartDate>              <b:InvoiceUid>1152921504607847047</b:InvoiceUid>
    </b:PwsDateInterval>              <b:InvoiceDate  </b:ProjectCostBaselineBucketDateIntervals>i:nil="true"/>
                  <b:ProjectCostBaselineDetail>:InvoiceName>Invoice - WS</b:InvoiceName>
                  <b:ExternalSystemIdentifier i:nil="true"/>BillingAddress>
                     <b:ProjectCostBaselineId i:nil="true"/>AddressLine1>98 N. Washingtong Street</b:AddressLine1>
                     <b:ProjectCostBaselineUid>1152921504607272102<AddressLine2>Suite 400</b:ProjectCostBaselineUid>AddressLine2>
                  <b:ActiveProjectCostBaselineFlag>true</b:ActiveProjectCostBaselineFlag>   <b:Attention i:nil="true"/>
                     <b:CaMetricActiveFlag>true<City>Boston</b:CaMetricActiveFlag>City>
                     <b:DaMetricActiveFlag>false<CompanyName>R23</b:DaMetricActiveFlag>CompanyName>
                     <b:Description>Cost Budget Baseline<Country>USA</b:Description>Country>
                     <b:EaMetricActiveFlag>false<StateOrProvince>MA</b:EaMetricActiveFlag>StateOrProvince>
                     <b:PrimaryMetric>C<ZipOrPostalCode>02130</b:PrimaryMetric>ZipOrPostalCode>
                  <b:ProjectCostBaselineName>Client Amount Budget<</b:ProjectCostBaselineName>BillingAddress>
                  <b:ProjectCostBaselineBuckets>BillingCultureIdentity>
                     <b:PwsProjectCostBaselineBucket>
 CultureId i:nil="true"/>
                      <b:ClientAmount>2000<CultureName>en-US</b:ClientAmount>CultureName>
                     <b:CultureUid>1152921504606851419</b:CultureUid>
     <b:DisbursedAmount i:nil="true"/>             </b:BillingCultureIdentity>
             <b:EndDate>2018-01-31T00:00:00Z</b:EndDate>     <b:BillingInstructions i:nil="true"/>
                  <b:ExpenseAmountClientMessage i:nil="true"/>
     
                  <b:ExpenseTypeGroupIdentityClientMessagePlain i:nil="true"/>
                  <b:ContractLineItems/>
     <b:ExpenseTypeIdentity>                <b:CostGrossAmtOption>C</b:CostGrossAmtOption>
           <b:ExpenseTypeId i:nil="true"/>      <b:DistributionSettings>
                     <b:ExpenseTypeName>PerEmailSettings>
Diem</b:ExpenseTypeName>                        <b:EmailFromUserIdentity>
   <b:ExpenseTypeUid>1152921504606881747</b:ExpenseTypeUid>                         <<b:UserDisplayName>Bettina</b:ExpenseTypeIdentity>UserDisplayName>
                           <b:StartDate>2018-01-01T00:00:00Z</b:StartDate>UserId i:nil="true"/>
                     </b:PwsProjectCostBaselineBucket>      <b:UserReferenceSystemId>QA       - 01</b:UserReferenceSystemId>
        <b:PwsProjectCostBaselineBucket>                         <b:ClientAmount>2000<UserUid>1152921504607011056</b:ClientAmount>UserUid>
                        <b:DisbursedAmount i:nil="true"/></b:EmailFromUserIdentity>
                        <b:EndDate>2018-02-28T00:00:00Z</b:EndDate>EmailInvoiceTemplateIdentity>
                           <b:ExpenseAmountInvoiceTemplateId i:nil="true"/>
                           <b:ExpenseTypeGroupIdentity i:nil="true"/>InvoiceTemplateName>E001</b:InvoiceTemplateName>
                        <b:ExpenseTypeIdentity>   <b:InvoiceTemplateUid>1152921504606878906</b:InvoiceTemplateUid>
                        <b</b:ExpenseTypeId i:nil="true"/>EmailInvoiceTemplateIdentity>
                            <b:ExpenseTypeName>Per Diem<InvoiceEmailEnabledFlag>true</b:ExpenseTypeName>
 InvoiceEmailEnabledFlag>
                         <b:ExpenseTypeUid>1152921504606881747<InvoiceEmailType>W</b:ExpenseTypeUid>InvoiceEmailType>
                        </b:ExpenseTypeIdentity><b:Recipients>
                           <b:StartDate>2018-02-01T00:00:00Z</b:StartDate>PwsInvoiceEmailRecipient>
                              <<b:RecipientType>T</b:PwsProjectCostBaselineBucket>RecipientType>
                   </b:ProjectCostBaselineBuckets>           <b:UserIdentity>
       <b:Timestamp>AAAAAA62DG8=</b:Timestamp>
               </b:ProjectCostBaselineDetail>                <b:StartDate>2018-01-01T00:00:00Z<UserDisplayName>Fitzgerald Grant</b:StartDate>UserDisplayName>
               <b:TimePhase>M</b:TimePhase>
            </a:ProjectCostBaseline>             <a:ProjectCostBaselineIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"><b:UserId i:nil="true"/>
                <b:ExternalSystemIdentifier i:nil="true"/>                <b:ProjectCostBaselineId i:nil="true"/>:UserReferenceSystemId>Client11</b:UserReferenceSystemId>
                                 <b:ProjectCostBaselineUid>1152921504607272102<UserUid>1152921504607061857</b:ProjectCostBaselineUid>UserUid>
                              </ab:ProjectCostBaselineIdentity>UserIdentity>
             <a:ProjectTimestamp>AAAAAA62DHA=</a:ProjectTimestamp>             <a:StolenLocks xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/> </b:PwsInvoiceEmailRecipient>
             </PwsCreateProjectCostBaselineResult>       </PwsCreateProjectCostBaselineResponse>    </sb:Body>
</s:Envelope>
Code Block
languagexml
titleExample 02 - lock stolen
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>Recipients>
                     </b:EmailSettings>
         <PwsCreateProjectCostBaselineResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">          <PwsCreateProjectCostBaselineResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><b:SubjectText>Invoice - WS</b:SubjectText>
                 <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/> </b:DistributionSettings>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>     <b:InvoiceMessages>[Bettina, 12 Jul 2022 11:26 (Create Invoice)] Invoice <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>- WS</b:InvoiceMessages>
                 <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-11-14T18:00:35.249869Z</ServerTimestampUtc><b:InvoiceTemplateIdentity>
                     <a<b:EngagementLockStolenFromUserIdentityInvoiceTemplateId xmlnsi:bnil="true"http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:UserDisplayName>Krakauer, Larry<InvoiceTemplateName>A100</b:UserDisplayName>InvoiceTemplateName>
                     <b:UserId i:nil="true"/>InvoiceTemplateUid>1152921504606878901</b:InvoiceTemplateUid>
                  <b:UserReferenceSystemId>097<</b:UserReferenceSystemId>InvoiceTemplateIdentity>
                  <b:UserUid>1152921504606944254</b:UserUid>:OverrideAccountingPeriodIdentity i:nil="true"/>
              </a:EngagementLockStolenFromUserIdentity>    <b:PaymentTermIdentity>
        <a:EngagementTimestamp>AAAAABFHYZY=</a:EngagementTimestamp>             <a<b:ProjectCostBaselinePaymentTermId xmlnsi:bnil="true"http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:Basis>N<PaymentTermName>Net 15</b:Basis>PaymentTermName>
                     <b:CreatedByUser>PaymentTermUid>1152921504606856053</b:PaymentTermUid>
                  <b:UserDisplayName>Krakauer, Larry<</b:UserDisplayName>PaymentTermIdentity>
                  <b:UserIdPurchaseOrderNumber i:nil="true"/>
                  <b:UserReferenceSystemId>097<RenderReceiptsFlag>false</b:UserReferenceSystemId>RenderReceiptsFlag>
                  <b:UserUid>1152921504606944254<RenderedInvoiceFormat>P</b:UserUid>RenderedInvoiceFormat>
                  <b:EmailAddress>Larry@revcorp.min</b:EmailAddress>Taxes/>
                  <b:FirstName>Larry<TimeBillingType>H</b:FirstName>TimeBillingType>
                  <b:LastName>Krakauer<TimeGrossAmtOption>S</b:LastName>TimeGrossAmtOption>
                  <b:MiddleName>A<Timestamp>AAAAAB4/Y0s=</b:MiddleName>Timestamp>
               </b:CreatedByUser>InvoiceDetail>
               <b:CreatedTimestamp>2018-11-14T18:00:35.573Z<InvoiceNumberHistory>DRAFT00764</b:CreatedTimestamp>InvoiceNumberHistory>
               <b:Dimension>E</b:Dimension>InvoiceRecipients>
                  <b:EndDate i:nil="true"/>PwsUserSummary>
                     <b:EngagementTimestamp>AAAAABFHYZY=<UserDisplayName>Bettina</b:EngagementTimestamp>
UserDisplayName>
              <b:LastUpdatedByUser>                   <b:UserDisplayName>Krakauer, Larry</b:UserDisplayName>
                  <b:UserId i:nil="true"/>
                     <b:UserReferenceSystemId>097<UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
                     <b:UserUid>1152921504606944254<UserUid>1152921504607011056</b:UserUid>
                     <b:EmailAddress>Larry@revcorpEmailAddress>bettina@projectorpsa.min<com</b:EmailAddress>
                     <b:FirstName>Larry<FirstName>Bettina</b:FirstName>
                     <b:LastName>Krakauer<LastName>Borces</b:LastName>
                  <b:MiddleName>A</b:MiddleName>     <b:MiddleName i:nil="true"/>
          </b:LastUpdatedByUser>        </b:PwsUserSummary>
       <b:LastUpdatedTimestamp>2018-11-14T18:00:35.573Z</b:LastUpdatedTimestamp>           <b:PwsUserSummary>
    <b:ProjectCostBaselineBucketDateIntervals>                   <b:PwsDateInterval><b:UserDisplayName>Fitzgerald Grant</b:UserDisplayName>
                     <b:EndDateUserId i:nil="true"/>
                     <b:StartDate i:nil="true"/>UserReferenceSystemId>Client11</b:UserReferenceSystemId>
                     <<b:UserUid>1152921504607061857</b:PwsDateInterval>UserUid>
                     <<b:EmailAddress>fitzgerald@usagov.bb</b:ProjectCostBaselineBucketDateIntervals>EmailAddress>
                <b:ProjectCostBaselineDetail>     <b:FirstName>Fitzgerald</b:FirstName>
                     <b:ExternalSystemIdentifier i:nil="true"/>:LastName>Grant</b:LastName>
                     <b:ProjectCostBaselineIdMiddleName i:nil="true"/>
                  <b:ProjectCostBaselineUid>1152921504607284872<</b:ProjectCostBaselineUid>PwsUserSummary>
                  <b:ActiveProjectCostBaselineFlag>true<</b:ActiveProjectCostBaselineFlag>
  InvoiceRecipients>
               <b:CaMetricActiveFlag>true<InvoiceScope>P</b:CaMetricActiveFlag>InvoiceScope>
                  <b:DaMetricActiveFlag>false<InvoiceStatus>D</b:DaMetricActiveFlag>InvoiceStatus>
               <b:IssuedByUser i:nil="true"/>
 <b:Description>Client  Amount Cost Baseline</b:Description>          <b:IssuedTimestamp i:nil="true"/>
       <b:EaMetricActiveFlag>false</b:EaMetricActiveFlag>        <b:LastUpdatedByUser>
                  <b:PrimaryMetric>C<UserDisplayName>Bettina</b:PrimaryMetric>UserDisplayName>
                  <b:ProjectCostBaselineName>Client Amount Budget</b:ProjectCostBaselineName>UserId i:nil="true"/>
                  <b:ProjectCostBaselineBuckets>UserReferenceSystemId>QA -  01</b:UserReferenceSystemId>
                  <b:PwsProjectCostBaselineBucket>UserUid>1152921504607011056</b:UserUid>
                  <b:EmailAddress>bettina@projectorpsa.com</b:EmailAddress>
     <b:ClientAmount>2000</b:ClientAmount>             <b:FirstName>Bettina</b:FirstName>
           <b:DisbursedAmount i:nil="true"/>      <b:LastName>Borces</b:LastName>
                  <b:EndDateMiddleName i:nil="true"/>
               </b:LastUpdatedByUser>
               <b:ExpenseAmount i:nil="true"/>LastUpdatedTimestamp>2022-07-12T15:26:19.99Z</b:LastUpdatedTimestamp>
               <b:ManagementApprovalThresholdAmount>10</b:ManagementApprovalThresholdAmount>
        <b:ExpenseTypeGroupIdentity i:nil="true"/>      <b:ManagementApprovalThresholdPercent>0.5</b:ManagementApprovalThresholdPercent>
               <b:MilestoneInvoicedAmount>0</b:MilestoneInvoicedAmount>
  <b:ExpenseTypeIdentity>             <b:NetInvoiceAmount>0</b:NetInvoiceAmount>
               <b:ExpenseTypeIdPaidByUser i:nil="true"/>
               <b:PaidTimestamp i:nil="true"/>
          <b:ExpenseTypeName>Travel-AR</b:ExpenseTypeName>     <b:PaymentComment i:nil="true"/>
                     <b:ExpenseTypeUid>1152921504606861209<PostFailedFlag>false</b:ExpenseTypeUid>PostFailedFlag>
               <b:PostFailureStatusMessage i:nil="true"/>
       </b:ExpenseTypeIdentity>        <b:PostStatus>U</b:PostStatus>
                <b:StartDatePostedByUser i:nil="true"/>
               <b:PostedFlag>false</b:PostedFlag>
     </b:PwsProjectCostBaselineBucket>          <b:PostedTimestamp i:nil="true"/>
          <b:PwsProjectCostBaselineBucket>      <b:Project>
                  <b:ClientAmount>2000<ProjectCode>P001666-001</b:ClientAmount>
    ProjectCode>
                   <b:DisbursedAmountProjectId i:nil="true"/>
                  <b:ProjectUid>1152921504607524352</b:ProjectUid>
     <b:EndDate i:nil="true"/>            <b:EngagementIdentity>
            <b:ExpenseAmount i:nil="true"/>         <b:EngagementCode>P001666</b:EngagementCode>
                     <b:ExpenseTypeGroupIdentityEngagementId i:nil="true"/>
                        <b:ExpenseTypeIdentity>EngagementUid>1152921504607393774</b:EngagementUid>
                  </b:EngagementIdentity>
        <b:ExpenseTypeId i:nil="true"/>         <b:ProjectName>R23 - Time and Materials</b:ProjectName>
              <b:ExpenseTypeName>Per Diem-AA< </b:ExpenseTypeName>Project>
               <b:RejectedCostCardCount>0</b:RejectedCostCardCount>
               <b:ExpenseTypeUid>1152921504606869373<RejectedTimeCardCount>0</b:ExpenseTypeUid>RejectedTimeCardCount>
               <b:RevaluePlEffect>0</b:RevaluePlEffect>
          </b:ExpenseTypeIdentity>         <b:SendFailedFlag>false</b:SendFailedFlag>
               <b:StartDateSendFailureStatusMessage i:nil="true"/>
                     <<b:SendStatus>U</b:PwsProjectCostBaselineBucket>SendStatus>
                  </b:ProjectCostBaselineBuckets>
  <b:SentByUser i:nil="true"/>
               <b:Timestamp>AAAAABFHYc0=<SentFlag>false</b:Timestamp>SentFlag>
               </b:ProjectCostBaselineDetail><b:SentTimestamp i:nil="true"/>
               <b:StartDate i:nil="true"/>TimeCardAdjustmentAmount>0</b:TimeCardAdjustmentAmount>
               <b:TimePhase>N<TimeCardExclusionsAmount>0</b:TimePhase>TimeCardExclusionsAmount>
               <<b:TimeCardInvoicedAmount>0</ab:ProjectCostBaseline>TimeCardInvoicedAmount>
             <a:ProjectCostBaselineIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">  <b:TimeCardRequireLocationFlag>false</b:TimeCardRequireLocationFlag>
               <b:UnapprovedCostCardCount>0</b:UnapprovedCostCardCount>
               <b:UnapprovedTimeCardCount>0</b:UnapprovedTimeCardCount>
               <b:ExternalSystemIdentifierVoidedByUser i:nil="true"/>
               <b:ProjectCostBaselineIdVoidedTimestamp i:nil="true"/>
               <b:ProjectCostBaselineUid>1152921504607284872<WebInvoiceFlag>true</b:ProjectCostBaselineUid>WebInvoiceFlag>
               <<b:WriteUpWriteDownPlEffect>0</ab:ProjectCostBaselineIdentity>WriteUpWriteDownPlEffect>
            <a:ProjectTimestamp>AAAAABFHYc4=</a:ProjectTimestamp>Invoice>
            <a:StolenLocksInvoiceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:EntityIdentity>
                  <b:EntityCode>P001125-001</b:EntityCode>
                  <b:EntityId i:nilInvoiceId i:nil="true"/>
                  <b:EntityUid>1152921504607425735<InvoiceNumber>DRAFT00764</b:EntityUid>InvoiceNumber>
                  <b:LockType>P<InvoiceUid>1152921504607847047</b:LockType>
  InvoiceUid>
            </b:EntityIdentity>
               <b:EntityLockSummary>
                  <b:PwsEntityLockSummaryItem>
                     <b:LockCount>1</b:LockCount>
                     <b:LockHolderUserIdentity>
                        <b:UserDisplayName>Krakauer, Larry</b:UserDisplayName>
                        <b:UserId i:nil="true"/>
                        <b:UserReferenceSystemId>097</b:UserReferenceSystemId>
                        <b:UserUid>1152921504606944254</b:UserUid>
                     </b:LockHolderUserIdentity>
                     <b:MostRecentLockAcquisitionTimestamp>2018-11-14T17:59:52.2Z</b:MostRecentLockAcquisitionTimestamp>
                  </b:PwsEntityLockSummaryItem>
               </b:EntityLockSummary>
            </a:StolenLocks>
         </PwsCreateProjectCostBaselineResult>
      </PwsCreateProjectCostBaselineResponse>
   </s:Body>
</s:Envelope>

PwsCreateProjectCostBaseline - Common Errors and Warnings

...

ErrorNumber

...

ErrorCode

...

ErrorText

...

a:InvoiceIdentity>
            <a:InvoiceTimestamp>AAAAAB4/Y0s=</a:InvoiceTimestamp>
         </PwsCreateInvoiceResult>
      </PwsCreateInvoiceResponse>
   </s:Body>
</s:Envelope>

PwsCreateInvoice - Common Errors and Warnings

ErrorNumber

ErrorCode

ErrorText

10111RequiredFieldMissingA required field is missing: BillingCultureIdentity.
10115FieldExceedsMaxLengthThe value specified in the field "InvoiceName" in the class "PwsCandidateInvoiceSpec" exceeds the maximum allowable length of 100 characters.
10126InvalidEnumerationValueSpecifiedAn invalid value was specified for EngagementInvoiceContent. Valid values are B, S.
10126InvalidEnumerationValueSpecifiedAn invalid value was specified for InvoiceContent. Valid values are B, F, A, M, S, C, T.
10126InvalidEnumerationValueSpecifiedAn invalid value was specified for InvoiceScope. Valid values are C, E, N, P.
50024EntityNotFoundProject was not found. Another user may have deleted it.
57528CultureNotValidForAccountError 57528, State 1: Specified culture not valid for this installation (installation = 2378, culture name = en-USA, culture number = (null))
50046UpdatePermissionDeniedYou do not have permission to update this item.