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.

Note that this service will create web invoices only, and cannot be used to create Management Portal invoices.

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

...

Element

...

Click here for more information

...

Click here for more information

...

Request Usage Example(s)

...

languagexml
titleExample 01
collapsetrue

...

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.

Request Format


Panel
titlePwsCreateInvoice Request
  • 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 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>AcDDhcCta4Wna3CCTQ5Fng==</req:SessionTicket>
            <bil:AddCommentsToInvoiceMessagesFlag>true</bil:AddCommentsToInvoiceMessagesFlag>
            <bil:ExcludeZeroAmountCostCardsFlag>false</bil:ExcludeZeroAmountCostCardsFlag>
            <bil:ExcludeZeroAmountTimeCardsFlag>false</bil:ExcludeZeroAmountTimeCardsFlag>
            <bil:FullDetailFlag>true</bil:FullDetailFlag>
            <bil:IncludeAdjustmentHistoryFlag>true</bil:IncludeAdjustmentHistoryFlag>
            <bil:IncludeFullAdjustmentHistoryFlag>true</bil:IncludeFullAdjustmentHistoryFlag>
            <bil:InvoiceSpec>
               <bil:ApprovedByFinanceFlag>false</bil:ApprovedByFinanceFlag>
               <bil:ApprovedByManagementFlag>false</bil:ApprovedByManagementFlag>
               <bil:ApprovedByProjectManagerFlag>false</bil:ApprovedByProjectManagerFlag>
               <bil:BillingCultureIdentity>
                  <com:CultureName>en-US</com:CultureName>
               </bil:BillingCultureIdentity>
               <bil:CardBeginDate>2022-07-01T00:00:00.000Z</bil:CardBeginDate>
               <bil:CardEndDate>2022-07-05T00:00:00.000Z</bil:CardEndDate>
               <bil:ClientIdentity>
                  <req<com:SessionTicket>AXoSoNYPC/IRu5ISV3f2Ew==</req:SessionTicket>ClientNumber>Amazon</com:ClientNumber>
               <sch:ActualsCutoffDate>2018-03-31T00:00:00.000Z</sch:ActualsCutoffDate></bil:ClientIdentity>
            <sch:Basis>N</sch:Basis>   <bil:CostCenterIdentity>
         <sch:Dimension>E</sch:Dimension>         <com:CostCenterName>Executive    <sch:FullDetailFlag>true</sch:FullDetailFlag>Team (USA)</com:CostCenterName>
            <sch:IntervalCount>2</sch:IntervalCount>   </bil:CostCenterIdentity>
         <sch:ProjectCostBaseline>      <bil:EngagementCurrencyIdentity>
                  <com:ActiveProjectCostBaselineFlag>true<CurrencyCode>USD</com:ActiveProjectCostBaselineFlag>CurrencyCode>
               <com:CaMetricActiveFlag>true<</combil:CaMetricActiveFlag>EngagementCurrencyIdentity>
               <com:DaMetricActiveFlag>false</com:DaMetricActiveFlag><bil:EngagementIdentity>
               <com:Description>Client Amount Cost Baseline<<com:EngagementCode>P001666</com:Description>EngagementCode>
               <com:EaMetricActiveFlag>false<</combil:EaMetricActiveFlag>EngagementIdentity>
               <com<bil:PrimaryMetric>C<EngagementInvoiceContent>B</combil:PrimaryMetric>EngagementInvoiceContent>
               <com:ProjectCostBaselineName>Client Amount Budget</com:ProjectCostBaselineName><bil:InvoiceContent>B</bil:InvoiceContent>
               <com<bil:ProjectCostBaselineBuckets>InvoiceName>Invoice - WS</bil:InvoiceName>
                <com:PwsProjectCostBaselineBucket><bil:InvoiceScope>P</bil:InvoiceScope>
               <bil:ProjectIdentity>
       <com:ClientAmount>2000</com:ClientAmount>
                     <com:EndDate>2018-01-31T00:00:00.000Z<ProjectCode>P001666-001</com:EndDate>ProjectCode>
               </bil:ProjectIdentity>
     <com:ExpenseTypeIdentity>          <bil:PurchaseOrderNumber>Invoice - WS</bil:PurchaseOrderNumber>
            <com:ExpenseTypeName>Per Diem</com:ExpenseTypeName></bil:InvoiceSpec>
            <bil:NewInvoiceMessages>Invoice - WS</bil:NewInvoiceMessages>
      </com:ExpenseTypeIdentity>      <bil:NotifyFinanceTeamFlag>true</bil:NotifyFinanceTeamFlag>
               <com:StartDate>2018-01-01T00:00:00.000Z</com:StartDate><bil:NotifyManagementTeamFlag>true</bil:NotifyManagementTeamFlag>
                  </com:PwsProjectCostBaselineBucket><bil:NotifyPmTeamFlag>true</bil:NotifyPmTeamFlag>
         </pws:serviceRequest>
        <com:PwsProjectCostBaselineBucket></pws:PwsCreateInvoice>
                     <com:ClientAmount>2000</com:ClientAmount>
                     <com:EndDate>2018-02-28T00:00:00.000Z</com:EndDate>
                     <com:ExpenseTypeIdentity>
                        <com:ExpenseTypeName>Per Diem</com:ExpenseTypeName>
                     </com:ExpenseTypeIdentity>
                     <com:StartDate>2018-02-01T00:00:00.000Z</com:StartDate>
    </soapenv:Body>
</soapenv:Envelope>

Response Format


Panel
titlePwsCreateInvoice 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>
        <PwsCreateInvoiceResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
      </com:PwsProjectCostBaselineBucket>   <PwsCreateInvoiceResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages   </com:ProjectCostBaselineBuckets>xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
            </sch:ProjectCostBaseline><ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>
            <Status <sch:ProjectIdentity>xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
               <com:ProjectCode>P001407-001</com:ProjectCode><ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2022-07-12T15:26:20.1132902Z</ServerTimestampUtc>
             </sch:ProjectIdentity><a:Invoice xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
            <sch:StartDate>2018-01-01T00:00:00.000Z</sch:StartDate>   <b:AdjustmentHistory/>
               <sch<b:StealEngagementLockFlag>false<AllowAccountingPeriodOverrideFlag>false</sch:StealEngagementLockFlag>b:AllowAccountingPeriodOverrideFlag>
               <sch<b:TimePhase>M<ApprovedByFinanceFlag>false</sch:TimePhase>b:ApprovedByFinanceFlag>
                </pws:serviceRequest><b:ApprovedByFinanceTimestamp i:nil="true"/>
           </pws:PwsCreateProjectCostBaseline>    </soapenv<b:Body>
</soapenv:Envelope>
Code Block
languagexml
titleExample 02 - lock stolen
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>ApprovedByFinanceUser i:nil="true"/>
               <b:ApprovedByManagementFlag>false</b:ApprovedByManagementFlag>
               <b:ApprovedByManagementTimestamp i:nil="true"/>
               <b:ApprovedByManagementUser i:nil="true"/>
               <b:ApprovedByProjectManagerFlag>false</b:ApprovedByProjectManagerFlag>
      <pws:PwsCreateProjectCostBaseline>         <b:ApprovedByProjectManagerTimestamp <pws:serviceRequest>i:nil="true"/>
             <req:RequestId>1</req:RequestId>  <b:ApprovedByProjectManagerUser i:nil="true"/>
               <req:SessionTicket>Ade8vXDjCIr0kcDpdVTbCw==</req:SessionTicket><b:AutoManagementApprovalFlag>true</b:AutoManagementApprovalFlag>
             <sch:ActualsCutoffDate>2018-12-31T00:00:00.000Z</sch:ActualsCutoffDate>  <b:AvailableBalances>
          <sch:Basis>N</sch:Basis>        <b:PwsInvoiceAvailableBalance>
    <sch:Dimension>E</sch:Dimension>             <sch:FullDetailFlag>true</sch:FullDetailFlag>    <b:ContractLineItem>
        <sch:ProjectCostBaseline>                <com<b:ActiveProjectCostBaselineFlag>true<ContractLineItemCode>P001666-CL1</comb:ActiveProjectCostBaselineFlag>ContractLineItemCode>
               <com:CaMetricActiveFlag>true</com:CaMetricActiveFlag>         <b:ContractLineItemId i:nil="true"/>
     <com:DaMetricActiveFlag>false</com:DaMetricActiveFlag>                <com:Description>Client Amount Cost Baseline<<b:ContractLineItemUid>1152921504607167042</comb:Description>ContractLineItemUid>
               <com:EaMetricActiveFlag>false</com:EaMetricActiveFlag>         <b:ContractLineItemName>R23 - 2022</b:ContractLineItemName>
     <com:PrimaryMetric>C</com:PrimaryMetric>                 <com:ProjectCostBaselineName>Client Amount Budget</com<b:ProjectCostBaselineName>EngagementIdentity>
               <com:ProjectCostBaselineBuckets>            <b:EngagementCode>P001666</b:EngagementCode>
      <com:PwsProjectCostBaselineBucket>                     <b:EngagementId <com:ClientAmount>2000</com:ClientAmount>i:nil="true"/>
                     <com:ExpenseTypeIdentity>      <b:EngagementUid>1152921504607393774</b:EngagementUid>
                  <com:ExpenseTypeName>Per Diem-AA</com:ExpenseTypeName>      </b:EngagementIdentity>
                     </com:ExpenseTypeIdentity>b:ContractLineItem>
                     <<b:EditableFlag>true</comb:PwsProjectCostBaselineBucket>EditableFlag>
                  <com:PwsProjectCostBaselineBucket>   <b:UnappliedPrepaidAmount>0</b:UnappliedPrepaidAmount>
                  <com:ClientAmount>2000<</comb:ClientAmount>PwsInvoiceAvailableBalance>
               </b:AvailableBalances>
      <com:ExpenseTypeIdentity>         <b:AvailableMilestones/>
               <com<b:ExpenseTypeName>Travel-AR</com:ExpenseTypeName>CardBeginDate>2022-07-01T00:00:00</b:CardBeginDate>
               <b:CardEndDate>2022-07-05T00:00:00</b:CardEndDate>
     </com:ExpenseTypeIdentity>          <b:Client>
        </com:PwsProjectCostBaselineBucket>          <b:ClientId i:nil="true"/>
     </com:ProjectCostBaselineBuckets>             <<b:ClientNumber>AMAZON</schb:ProjectCostBaseline>ClientNumber>
            <sch:ProjectIdentity>      <b:ClientUid>1152921504606971723</b:ClientUid>
           <com:ProjectCode>P001125-001</com:ProjectCode>       <b:ClientName>Amazon</b:ClientName>
     </sch:ProjectIdentity>             <!--sch:StartDate>2018-11-01T00:00:00.000Z</sch:StartDate--><b:InactiveFlag>false</b:InactiveFlag>
            <sch:StealEngagementLockFlag>false</sch:StealEngagementLockFlag>          <b:ParentClientIdentity i:nil="true"/>
  <sch:TimePhase>N</sch:TimePhase>             <sch</b:LocksToSteal>Client>
               <com<b:PwsEntityLockSummary>CompanyIdentity>
                  <com<b:EntityIdentity>
CompanyId i:nil="true"/>
                    <com:EntityCode>P001125-001</com:EntityCode><b:CompanyName>USA</b:CompanyName>
                     <com:LockType>P</com:LockType><b:CompanyUid>1152921504606850739</b:CompanyUid>
                  <<b:CompanyNumber>USA</comb:EntityIdentity>CompanyNumber>
               </b:CompanyIdentity>
  <com:EntityLockSummary>             <b:CostCardAdjustmentAmount>0</b:CostCardAdjustmentAmount>
        <com:PwsEntityLockSummaryItem>       <b:CostCardExclusionsAmount>0</b:CostCardExclusionsAmount>
                 <com<b:LockCount>1<CostCardInvoicedAmount>0</comb:LockCount>CostCardInvoicedAmount>
                <b:CostCardRequireLocationFlag>false</b:CostCardRequireLocationFlag>
       <com:LockHolderUserIdentity>        <b:CostCenterIdentity>
                  <b:CostCenterId <com:UserDisplayName>Krakauer, Larry</com:UserDisplayName>i:nil="true"/>
                  <b:CostCenterName>Executive      Team (USA)</comb:LockHolderUserIdentity>CostCenterName>
                  <b:CostCenterNumber>Executive      <com:MostRecentLockAcquisitionTimestamp>2018-11-14T17:59:52.2Z</com:MostRecentLockAcquisitionTimestamp>Team (USA)</b:CostCenterNumber>
                     </com:PwsEntityLockSummaryItem><b:CostCenterUid>1152921504606867363</b:CostCenterUid>
                  </comb:EntityLockSummary>CostCenterIdentity>
               </com:PwsEntityLockSummary><b:CreatedByUser>
                  <<b:UserDisplayName>Bettina</sch:LocksToSteal>b:UserDisplayName>
                  </pws:serviceRequest><b:UserId i:nil="true"/>
                  <b:UserReferenceSystemId>QA - <01</pws:PwsCreateProjectCostBaseline>b:UserReferenceSystemId>
                  <<b:UserUid>1152921504607011056</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>
      <PwsCreateProjectCostBaselineResponse xmlns="http://projectorpsa.com/PwsProjectorServices/"b:UserUid>
                  <b:EmailAddress>bettina@projectorpsa.com</b:EmailAddress>
                  <b:FirstName>Bettina</b:FirstName>
                  <b:LastName>Borces</b:LastName>
                  <b:MiddleName i:nil="true"/>
               </b:CreatedByUser>
               <b:CreatedTimestamp>2022-07-12T15:26:19.99Z</b:CreatedTimestamp>
               <b:DeletedFlag>false</b:DeletedFlag>
               <b:DraftCostCardCount>0</b:DraftCostCardCount>
               <b:DraftInvoiceNumber>DRAFT00764</b:DraftInvoiceNumber>
               <b:DraftTimeCardCount>0</b:DraftTimeCardCount>
               <b:Engagement>
                  <b:EngagementCode>P001666</b:EngagementCode>
                  <b:EngagementId i:nil="true"/>
         <PwsCreateProjectCostBaselineResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">         <b:EngagementUid>1152921504607393774</b:EngagementUid>
                 <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/><b:ClientIdentity>
                     <b:ClientId i:nil="true"/>
              <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId>      <b:ClientNumber>AMAZON</b:ClientNumber>
      <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>             <ServerTimestampUtc xmlns="http<b://projectorpsa.com/CommonServices/">2018-01-29T21:55:08.7579802Z</ServerTimestampUtc>
 ClientUid>1152921504606971723</b:ClientUid>
          <a:EngagementLockStolenFromUserIdentity i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>       </b:ClientIdentity>
     <a:EngagementTimestamp>AAAAAA62DGw=</a:EngagementTimestamp>             <a<b:ProjectCostBaseline xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">EngagementName>R23 - 2022</b:EngagementName>
               <b:Basis>N<</b:Basis>Engagement>
               <b:CreatedByUser>
  ExcludeZeroAmountCostCardsFlag>false</b:ExcludeZeroAmountCostCardsFlag>
               <b:UserDisplayName>Web Services<ExcludeZeroAmountTimeCardsFlag>false</b:UserDisplayName>ExcludeZeroAmountTimeCardsFlag>
                  <b:UserId i:nil="true"/>
  ExcludedCostCardAmount>10</b:ExcludedCostCardAmount>
               <b:UserReferenceSystemId>WS01<ExcludedCostCardCount>1</b:UserReferenceSystemId>
 ExcludedCostCardCount>
                <b:UserUid>1152921504607067736<ExcludedMilestoneAmount>0</b:UserUid>
  ExcludedMilestoneAmount>
               <b:EmailAddress>webservices@revcorp.bb<ExcludedMilestoneCount>0</b:EmailAddress>ExcludedMilestoneCount>
                  <b:FirstName>Web<ExcludedTimeCardAmount>800</b:FirstName>
  ExcludedTimeCardAmount>
               <b:LastName>Services<ExcludedTimeCardCount>1</b:LastName>ExcludedTimeCardCount>
                  <b:MiddleName i:nil="true"/>GrossInvoiceAmount>0</b:GrossInvoiceAmount>
               <<b:IncludedCostCardCount>0</b:CreatedByUser>IncludedCostCardCount>
               <b:CreatedTimestamp>2018-01-29T21:55:02.573Z</b:CreatedTimestamp>IncludedMilestoneCount>0</b:IncludedMilestoneCount>
               <b:IncludedMilestones/>
               <b:Dimension>E<IncludedTimeCardCount>0</b:Dimension>IncludedTimeCardCount>
               <b:EndDate>2018-02-28T00:00:00Z<InvoiceContent>B</b:EndDate>InvoiceContent>
               <b:EngagementTimestamp>AAAAAA62DGw=<InvoiceCurrencyDecimalDigits>2</b:EngagementTimestamp>InvoiceCurrencyDecimalDigits>
               <b:LastUpdatedByUser>InvoiceCurrencyIdentity>
                  <b:UserDisplayName>Web Services<CurrencyCode>USD</b:UserDisplayName>CurrencyCode>
                  <b:UserIdCurrencyId i:nil="true"/>
                  <b:UserReferenceSystemId>WS01<CurrencyUid>1152921504606851838</b:UserReferenceSystemId>CurrencyUid>
                  <b:UserUid>1152921504607067736<</b:UserUid>
  InvoiceCurrencyIdentity>
               <b:EmailAddress>webservices@revcorp.bb</b:EmailAddress>InvoiceDetail>
                  <b:FirstName>Web</b:FirstName>InvoiceId i:nil="true"/>
                  <b:LastName>Services<InvoiceNumber>DRAFT00764</b:LastName>InvoiceNumber>
                  <b:MiddleName i:nil="true"/>InvoiceUid>1152921504607847047</b:InvoiceUid>
                   </b:LastUpdatedByUser><b:InvoiceDate i:nil="true"/>
                  <b:LastUpdatedTimestamp>2018-01-29T21:55:02.573Z<InvoiceName>Invoice - WS</b:LastUpdatedTimestamp>InvoiceName>
                  <b:ProjectCostBaselineBucketDateIntervals>BillingAddress>
                     <b:PwsDateInterval>:AddressLine1>98 N. Washingtong Street</b:AddressLine1>
                     <b:EndDate>2017-12-31T00:00:00Z<AddressLine2>Suite 400</b:EndDate>AddressLine2>
                     <b:StartDateAttention i:nil="true"/>
                  <   <b:City>Boston</b:PwsDateInterval>City>
                  <b:PwsDateInterval>    <b:CompanyName>R23</b:CompanyName>
                     <b:EndDate>2018-01-31T00:00:00Z<Country>USA</b:EndDate>Country>
                     <b:StartDate>2018-01-01T00:00:00Z<StateOrProvince>MA</b:StartDate>StateOrProvince>
                     <<b:ZipOrPostalCode>02130</b:PwsDateInterval>ZipOrPostalCode>
                  <b:PwsDateInterval>
  </b:BillingAddress>
                  <b:EndDate>2018-02-28T00:00:00Z</b:EndDate>BillingCultureIdentity>
                     <b:StartDate>2018-02-01T00:00:00Z</b:StartDate>CultureId i:nil="true"/>
                     <<b:CultureName>en-US</b:PwsDateInterval>CultureName>
                  <b:PwsDateInterval>    <b:CultureUid>1152921504606851419</b:CultureUid>
                 <b:EndDate i:nil="true"/>
   </b:BillingCultureIdentity>
                  <b:StartDate>2018-03-01T00:00:00Z</b:StartDate>BillingInstructions i:nil="true"/>
                   </b:PwsDateInterval><b:ClientMessage i:nil="true"/>
                   </b:ProjectCostBaselineBucketDateIntervals><b:ClientMessagePlain i:nil="true"/>
                  <b:ProjectCostBaselineDetail>ContractLineItems/>
                  <b:ExternalSystemIdentifier i:nil="true"/>CostGrossAmtOption>C</b:CostGrossAmtOption>
                  <b:ProjectCostBaselineId i:nil="true"/>DistributionSettings>
                     <b:ProjectCostBaselineUid>1152921504607272102</b:ProjectCostBaselineUid>EmailSettings>
                  <b:ActiveProjectCostBaselineFlag>true</b:ActiveProjectCostBaselineFlag>      <b:EmailFromUserIdentity>
            <b:CaMetricActiveFlag>true</b:CaMetricActiveFlag>
                  <b:DaMetricActiveFlag>false<UserDisplayName>Bettina</b:DaMetricActiveFlag>
UserDisplayName>
                 <b:Description>Cost Budget Baseline</b:Description>         <b:UserId i:nil="true"/>
        <b:EaMetricActiveFlag>false</b:EaMetricActiveFlag>                   <b:PrimaryMetric>C<UserReferenceSystemId>QA - 01</b:PrimaryMetric>UserReferenceSystemId>
                  <b:ProjectCostBaselineName>Client Amount Budget</b:ProjectCostBaselineName>        <b:UserUid>1152921504607011056</b:UserUid>
          <b:ProjectCostBaselineBuckets>              </b:EmailFromUserIdentity>
       <b:PwsProjectCostBaselineBucket>                     <b:EmailInvoiceTemplateIdentity>
   <b:ClientAmount>2000</b:ClientAmount>                         <b:DisbursedAmountInvoiceTemplateId i:nil="true"/>
                           <b:EndDate>2018-01-31T00:00:00Z<InvoiceTemplateName>E001</b:EndDate>InvoiceTemplateName>
                           <b:ExpenseAmount i:nil="true"/>InvoiceTemplateUid>1152921504606878906</b:InvoiceTemplateUid>
                        <b:ExpenseTypeGroupIdentity i:nil="true"/></b:EmailInvoiceTemplateIdentity>
                        <b:ExpenseTypeIdentity>InvoiceEmailEnabledFlag>true</b:InvoiceEmailEnabledFlag>
                        <b:InvoiceEmailType>W</b:InvoiceEmailType>
  <b:ExpenseTypeId i:nil="true"/>                     <b:Recipients>
      <b:ExpenseTypeName>Per Diem</b:ExpenseTypeName>                      <b:PwsInvoiceEmailRecipient>
     <b:ExpenseTypeUid>1152921504606881747</b:ExpenseTypeUid>                         <<b:RecipientType>T</b:ExpenseTypeIdentity>RecipientType>
                        <b:StartDate>2018-01-01T00:00:00Z</b:StartDate>          <b:UserIdentity>
           </b:PwsProjectCostBaselineBucket>                      <b:PwsProjectCostBaselineBucket>
       UserDisplayName>Fitzgerald Grant</b:UserDisplayName>
                <b:ClientAmount>2000</b:ClientAmount>                         <b:DisbursedAmountUserId i:nil="true"/>
                        <b:EndDate>2018-02-28T00:00:00Z<         <b:UserReferenceSystemId>Client11</b:EndDate>UserReferenceSystemId>
                        <b:ExpenseAmount i:nil="true"/>        <b:UserUid>1152921504607061857</b:UserUid>
                <b:ExpenseTypeGroupIdentity i:nil="true"/>             </b:UserIdentity>
           <b:ExpenseTypeIdentity>                 </b:PwsInvoiceEmailRecipient>
          <b:ExpenseTypeId i:nil="true"/>             </b:Recipients>
              <b:ExpenseTypeName>Per Diem</b:ExpenseTypeName>      </b:EmailSettings>
                     <b:ExpenseTypeUid>1152921504606881747<SubjectText>Invoice - WS</b:ExpenseTypeUid>SubjectText>
                        </b:ExpenseTypeIdentity>DistributionSettings>
                  <b:InvoiceMessages>[Bettina, 12 Jul 2022   <b:StartDate>2018-02-01T00:00:00Z<11:26 (Create Invoice)] Invoice - WS</b:StartDate>InvoiceMessages>
                  <b:InvoiceTemplateIdentity>
   </b:PwsProjectCostBaselineBucket>                   </b:ProjectCostBaselineBuckets><b:InvoiceTemplateId i:nil="true"/>
                     <b:Timestamp>AAAAAA62DG8=<InvoiceTemplateName>A100</b:Timestamp>
     InvoiceTemplateName>
         </b:ProjectCostBaselineDetail>                <b:StartDate>2018-01-01T00:00:00Z<InvoiceTemplateUid>1152921504606878901</b:StartDate>InvoiceTemplateUid>
                  <b:TimePhase>M<</b:TimePhase>InvoiceTemplateIdentity>
            </a:ProjectCostBaseline>      <b:OverrideAccountingPeriodIdentity i:nil="true"/>
      <a:ProjectCostBaselineIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">           <b:PaymentTermIdentity>
    <b:ExternalSystemIdentifier i:nil="true"/>                <b:ProjectCostBaselineIdPaymentTermId i:nil="true"/>
                     <b:ProjectCostBaselineUid>1152921504607272102<PaymentTermName>Net 15</b:ProjectCostBaselineUid>PaymentTermName>
                     <<b:PaymentTermUid>1152921504606856053</a:ProjectCostBaselineIdentity>b:PaymentTermUid>
                  <a:ProjectTimestamp>AAAAAA62DHA=</a:ProjectTimestamp>b:PaymentTermIdentity>
               <a:StolenLocks xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/   <b:PurchaseOrderNumber i:nil="true"/>
         </PwsCreateProjectCostBaselineResult>         </PwsCreateProjectCostBaselineResponse><b:RenderReceiptsFlag>false</b:RenderReceiptsFlag>
    </s:Body> </s:Envelope>
Code Block
languagexml
titleExample 02 - lock stolen
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">    <s:Body>       <PwsCreateProjectCostBaselineResponse xmlns="http<b://projectorpsa.com/PwsProjectorServices/">
RenderedInvoiceFormat>P</b:RenderedInvoiceFormat>
        <PwsCreateProjectCostBaselineResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">         <b:Taxes/>
   <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>             <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId><b:TimeBillingType>H</b:TimeBillingType>
                 <Status xmlns="http<b://projectorpsa.com/CommonServices/">Ok</Status>TimeGrossAmtOption>S</b:TimeGrossAmtOption>
                 <ServerTimestampUtc xmlns="http<b:Timestamp>AAAAAB4//projectorpsa.com/CommonServices/">2018-11-14T18:00:35.249869Z</ServerTimestampUtc>Y0s=</b:Timestamp>
              <a:EngagementLockStolenFromUserIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
   </b:InvoiceDetail>
               <b:UserDisplayName>Krakauer, Larry<InvoiceNumberHistory>DRAFT00764</b:UserDisplayName>InvoiceNumberHistory>
               <b:UserId i:nil="true"/>InvoiceRecipients>
                  <b:UserReferenceSystemId>097</b:UserReferenceSystemId>PwsUserSummary>
                     <b:UserUid>1152921504606944254<UserDisplayName>Bettina</b:UserUid>
UserDisplayName>
           </a:EngagementLockStolenFromUserIdentity>             <a:EngagementTimestamp>AAAAABFHYZY=</a:EngagementTimestamp><b:UserId i:nil="true"/>
            <a:ProjectCostBaseline xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">        <b:UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
     <b:Basis>N</b:Basis>                <b:CreatedByUser>:UserUid>1152921504607011056</b:UserUid>
                     <b:UserDisplayName>Krakauer, Larry<EmailAddress>bettina@projectorpsa.com</b:UserDisplayName>EmailAddress>
                     <b:UserId i:nil="true"/>FirstName>Bettina</b:FirstName>
                     <b:UserReferenceSystemId>097<LastName>Borces</b:UserReferenceSystemId>LastName>
                     <b:UserUid>1152921504606944254</b:UserUid>MiddleName i:nil="true"/>
                  <b:EmailAddress>Larry@revcorp.min<</b:EmailAddress>PwsUserSummary>
                  <b:FirstName>Larry</b:FirstName>PwsUserSummary>
                     <b:LastName>Krakauer<UserDisplayName>Fitzgerald Grant</b:LastName>UserDisplayName>
                  <b:MiddleName>A</b:MiddleName>   <b:UserId i:nil="true"/>
           </b:CreatedByUser>          <b:UserReferenceSystemId>Client11</b:UserReferenceSystemId>
     <b:CreatedTimestamp>2018-11-14T18:00:35.573Z</b:CreatedTimestamp>                <b:Dimension>E<UserUid>1152921504607061857</b:Dimension>
 UserUid>
             <b:EndDate i:nil="true"/>       <b:EmailAddress>fitzgerald@usagov.bb</b:EmailAddress>
        <b:EngagementTimestamp>AAAAABFHYZY=</b:EngagementTimestamp>             <b:FirstName>Fitzgerald</b:FirstName>
  <b:LastUpdatedByUser>                   <b:UserDisplayName>Krakauer, Larry<LastName>Grant</b:UserDisplayName>LastName>
                     <b:UserIdMiddleName i:nil="true"/>
                  <b:UserReferenceSystemId>097<</b:UserReferenceSystemId>PwsUserSummary>
                  <b:UserUid>1152921504606944254<</b:UserUid>
  InvoiceRecipients>
               <b:EmailAddress>Larry@revcorp.min<InvoiceScope>P</b:EmailAddress>InvoiceScope>
                  <b:FirstName>Larry<InvoiceStatus>D</b:FirstName>InvoiceStatus>
                  <b:LastName>Krakauer</b:LastName><b:IssuedByUser i:nil="true"/>
                  <b:MiddleName>A</b:MiddleName><b:IssuedTimestamp i:nil="true"/>
               </b<b:LastUpdatedByUser>
                  <b:LastUpdatedTimestamp>2018-11-14T18:00:35.573Z<UserDisplayName>Bettina</b:LastUpdatedTimestamp>UserDisplayName>
                  <b:ProjectCostBaselineBucketDateIntervals>UserId i:nil="true"/>
                  <b:PwsDateInterval>UserReferenceSystemId>QA -  01</b:UserReferenceSystemId>
                  <b:EndDate i:nil="true"/>UserUid>1152921504607011056</b:UserUid>
                     <b:StartDate i:nil="true"/>EmailAddress>bettina@projectorpsa.com</b:EmailAddress>
                  <<b:FirstName>Bettina</b:PwsDateInterval>
        FirstName>
      </b:ProjectCostBaselineBucketDateIntervals>                <b:ProjectCostBaselineDetail><b:LastName>Borces</b:LastName>
                  <b:ExternalSystemIdentifierMiddleName i:nil="true"/>
               </b:LastUpdatedByUser>
  <b:ProjectCostBaselineId i:nil="true"/>            <b:LastUpdatedTimestamp>2022-07-12T15:26:19.99Z</b:LastUpdatedTimestamp>
               <b:ProjectCostBaselineUid>1152921504607284872<ManagementApprovalThresholdAmount>10</b:ProjectCostBaselineUid>
  ManagementApprovalThresholdAmount>
               <b:ActiveProjectCostBaselineFlag>true<ManagementApprovalThresholdPercent>0.5</b:ActiveProjectCostBaselineFlag>
 ManagementApprovalThresholdPercent>
                <b:CaMetricActiveFlag>true<MilestoneInvoicedAmount>0</b:CaMetricActiveFlag>MilestoneInvoicedAmount>
                  <b:DaMetricActiveFlag>false<NetInvoiceAmount>0</b:DaMetricActiveFlag>
NetInvoiceAmount>
                 <b:Description>Client Amount Cost Baseline</b:Description>PaidByUser i:nil="true"/>
                  <b:EaMetricActiveFlag>false</b:EaMetricActiveFlag><b:PaidTimestamp i:nil="true"/>
                  <b:PrimaryMetric>C</b:PrimaryMetric>
  <b:PaymentComment i:nil="true"/>
               <b:ProjectCostBaselineName>Client Amount Budget<PostFailedFlag>false</b:ProjectCostBaselineName>PostFailedFlag>
               <b:PostFailureStatusMessage i:nil="true"/>
 <b:ProjectCostBaselineBuckets>              <b:PostStatus>U</b:PostStatus>
       <b:PwsProjectCostBaselineBucket>        <b:PostedByUser i:nil="true"/>
               <b:ClientAmount>2000<PostedFlag>false</b:ClientAmount>
       PostedFlag>
                <b:DisbursedAmountPostedTimestamp i:nil="true"/>
               <b:Project>
        <b:EndDate i:nil="true"/>          <b:ProjectCode>P001666-001</b:ProjectCode>
                  <b:ExpenseAmountProjectId i:nil="true"/>
                        <b:ExpenseTypeGroupIdentity i:nil="true"/>ProjectUid>1152921504607524352</b:ProjectUid>
                  <b:EngagementIdentity>
      <b:ExpenseTypeIdentity>               <b:EngagementCode>P001666</b:EngagementCode>
                     <b:ExpenseTypeIdEngagementId i:nil="true"/>
                     <b:EngagementUid>1152921504607393774</b:EngagementUid>
     <b:ExpenseTypeName>Travel-AR</b:ExpenseTypeName>              </b:EngagementIdentity>
             <b:ExpenseTypeUid>1152921504606861209</b:ExpenseTypeUid>     <b:ProjectName>R23 - Time and Materials</b:ProjectName>
               </b:ExpenseTypeIdentity>Project>
               <b:RejectedCostCardCount>0</b:RejectedCostCardCount>
        <b:StartDate i:nil="true"/>      <b:RejectedTimeCardCount>0</b:RejectedTimeCardCount>
               <<b:RevaluePlEffect>0</b:PwsProjectCostBaselineBucket>RevaluePlEffect>
                 <b:SendFailedFlag>false</b:SendFailedFlag>
   <b:PwsProjectCostBaselineBucket>            <b:SendFailureStatusMessage i:nil="true"/>
               <b:ClientAmount>2000<SendStatus>U</b:ClientAmount>
SendStatus>
                       <b:DisbursedAmountSentByUser i:nil="true"/>
               <b:SentFlag>false</b:SentFlag>
               <b:EndDateSentTimestamp i:nil="true"/>
               <b:TimeCardAdjustmentAmount>0</b:TimeCardAdjustmentAmount>
        <b:ExpenseAmount i:nil="true"/>      <b:TimeCardExclusionsAmount>0</b:TimeCardExclusionsAmount>
                  <b:ExpenseTypeGroupIdentity i:nil="true"/>TimeCardInvoicedAmount>0</b:TimeCardInvoicedAmount>
                 <b:TimeCardRequireLocationFlag>false</b:TimeCardRequireLocationFlag>
               <b:ExpenseTypeIdentity>UnapprovedCostCardCount>0</b:UnapprovedCostCardCount>
               <b:UnapprovedTimeCardCount>0</b:UnapprovedTimeCardCount>
               <b:ExpenseTypeIdVoidedByUser i:nil="true"/>
               <b:VoidedTimestamp i:nil="true"/>
               <b:ExpenseTypeName>Per Diem-AA<WebInvoiceFlag>true</b:ExpenseTypeName>WebInvoiceFlag>
               <b:WriteUpWriteDownPlEffect>0</b:WriteUpWriteDownPlEffect>
            <b:ExpenseTypeUid>1152921504606869373<</ba:ExpenseTypeUid>Invoice>
            <a:InvoiceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
            </b:ExpenseTypeIdentity>
                        <b:StartDateInvoiceId i:nil="true"/>
                     </b:PwsProjectCostBaselineBucket>
                  <<b:InvoiceNumber>DRAFT00764</b:ProjectCostBaselineBuckets>
  InvoiceNumber>
               <b:Timestamp>AAAAABFHYc0=<InvoiceUid>1152921504607847047</b:Timestamp>InvoiceUid>
               </b:ProjectCostBaselineDetail>
               <b:StartDate i:nil="true"/>
               <b:TimePhase>N</b:TimePhase>
            </a:ProjectCostBaseline>
            <a:ProjectCostBaselineIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:ExternalSystemIdentifier i:nil="true"/>
               <b:ProjectCostBaselineId i:nil="true"/>
               <b:ProjectCostBaselineUid>1152921504607284872</b:ProjectCostBaselineUid>
            </a:ProjectCostBaselineIdentity>
            <a:ProjectTimestamp>AAAAABFHYc4=</a:ProjectTimestamp>
            <a:StolenLocks xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:EntityIdentity>
                  <b:EntityCode>P001125-001</b:EntityCode>
                  <b:EntityId i:nil="true"/>
                  <b:EntityUid>1152921504607425735</b:EntityUid>
                  <b:LockType>P</b:LockType>
               </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.