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
titlePwsCreateInvoice
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>
         <pws:serviceRequest>      <bil:ApprovedByProjectManagerFlag>false</bil:ApprovedByProjectManagerFlag>
      <req:RequestId>1</req:RequestId>         <bil:BillingCultureIdentity>
     <req:SessionTicket>AcDDhcCta4Wna3CCTQ5Fng==</req:SessionTicket>             <bil<com:AddCommentsToInvoiceMessagesFlag>true<CultureName>en-US</bil:AddCommentsToInvoiceMessagesFlag>com:CultureName>
               <bil:ExcludeZeroAmountCostCardsFlag>false<</bil:ExcludeZeroAmountCostCardsFlag>BillingCultureIdentity>
               <bil:ExcludeZeroAmountTimeCardsFlag>false<CardBeginDate>2022-07-01T00:00:00.000Z</bil:ExcludeZeroAmountTimeCardsFlag>CardBeginDate>
               <bil:FullDetailFlag>true<:CardEndDate>2022-07-05T00:00:00.000Z</bil:FullDetailFlag>CardEndDate>
            <bil:IncludeAdjustmentHistoryFlag>true</bil:IncludeAdjustmentHistoryFlag>   <bil:ClientIdentity>
         <bil:IncludeFullAdjustmentHistoryFlag>true</bil:IncludeFullAdjustmentHistoryFlag>         <com:ClientNumber>Amazon</com:ClientNumber>
   <bil:InvoiceSpec>            </bil:ClientIdentity>
               <bil:ApprovedByFinanceFlag>false</bil:ApprovedByFinanceFlag>CostCenterIdentity>
                  <bil:ApprovedByManagementFlag>false</bil:ApprovedByManagementFlag><com:CostCenterName>Executive Team (USA)</com:CostCenterName>
               <bil:ApprovedByProjectManagerFlag>false<</bil:ApprovedByProjectManagerFlag>CostCenterIdentity>
               <bil:BillingCultureIdentity>EngagementCurrencyIdentity>
                  <com:CultureName>en-US<CurrencyCode>USD</com:CultureName>CurrencyCode>
               </bil:BillingCultureIdentity>EngagementCurrencyIdentity>
               <bil:CardBeginDate>2022-07-01T00:00:00.000Z</bil:CardBeginDate>EngagementIdentity>
               <bil:CardEndDate>2022-07-05T00:00:00.000Z</bil:CardEndDate>
               <bil:ClientIdentity>   <com:EngagementCode>P001666</com:EngagementCode>
                  <com:ClientNumber>Amazon</com:ClientNumber></bil:EngagementIdentity>
               <<bil:EngagementInvoiceContent>B</bil:ClientIdentity>EngagementInvoiceContent>
               <bil:InvoiceContent>B</bil:CostCenterIdentity>InvoiceContent>
                  <com:CostCenterName>Executive Team (USA)</com:CostCenterName><bil:InvoiceName>Invoice - WS</bil:InvoiceName>
               <<bil:InvoiceScope>P</bil:CostCenterIdentity>InvoiceScope>
               <bil:EngagementCurrencyIdentity>ProjectIdentity>
                  <com:CurrencyCode>USD<ProjectCode>P001666-001</com:CurrencyCode>ProjectCode>
               </bil:EngagementCurrencyIdentity>ProjectIdentity>
               <bil:EngagementIdentity>PurchaseOrderNumber>Invoice - WS</bil:PurchaseOrderNumber>
                <com:EngagementCode>P001666</com:EngagementCode></bil:InvoiceSpec>
            <bil:NewInvoiceMessages>Invoice -  <WS</bil:EngagementIdentity>
 NewInvoiceMessages>
             <bil:EngagementInvoiceContent>B<NotifyFinanceTeamFlag>true</bil:EngagementInvoiceContent>
  NotifyFinanceTeamFlag>
            <bil:InvoiceContent>B<NotifyManagementTeamFlag>true</bil:InvoiceContent>NotifyManagementTeamFlag>
               <bil:InvoiceName>Invoice - WS<NotifyPmTeamFlag>true</bil:InvoiceName>NotifyPmTeamFlag>
               <bil:InvoiceScope>P</bil:InvoiceScope></pws:serviceRequest>
      </pws:PwsCreateInvoice>
        <bil:ProjectIdentity>
                  <com:ProjectCode>P001666-001</com:ProjectCode>
               </bil:ProjectIdentity>
               <bil:PurchaseOrderNumber>Invoice - WS</bil:PurchaseOrderNumber>
            </bil:InvoiceSpec>
            <bil:NewInvoiceMessages>Invoice - WS</bil:NewInvoiceMessages>
            <bil:NotifyFinanceTeamFlag>true</bil:NotifyFinanceTeamFlag>
            <bil:NotifyManagementTeamFlag>true</bil:NotifyManagementTeamFlag>
            <bil:NotifyPmTeamFlag>true</bil:NotifyPmTeamFlag>
         </pws:serviceRequest>
      </pws:PwsCreateInvoice>
   </soapenv:Body>
</soapenv:Envelope>

Response Format

Panel
titlePwsCreateInvoice Response

{panel:title=PwsCreateInvoice Response}

* PwsCreateInvoiceResponse

** PwsCreateInvoiceResult: [PwsCreateInvoiceRs]

*** Messages: [PwsMessage][]

*** [ResponseId]: Int32

*** [Status]: RequestStatus

*** [ServerTimestampUtc]: DateTime

*** Invoice: [PwsInvoiceElement]

*** InvoiceIdentity: [PwsInvoiceRef]

*** InvoiceTimestamp: String

{panel}

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</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/">
         <PwsCreateInvoiceResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns="http://projectorpsa.com/PwsProjectorServicesCommonServices/">
         <PwsCreateProjectCostBaselineResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns xmlns:b="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>2022-0107-29T2112T15:5526:0820.7579802Z<1132902Z</ServerTimestampUtc>
            <a:EngagementLockStolenFromUserIdentity i:nil="true"Invoice xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
            <a:EngagementTimestamp>AAAAAA62DGw=</a:EngagementTimestamp>
            <a:ProjectCostBaseline xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"   <b:AdjustmentHistory/>
               <b:Basis>N<AllowAccountingPeriodOverrideFlag>false</b:Basis>AllowAccountingPeriodOverrideFlag>
               <b:ApprovedByFinanceFlag>false</b:CreatedByUser>ApprovedByFinanceFlag>
                  <b:UserDisplayName>Web Services</b:UserDisplayName>
ApprovedByFinanceTimestamp i:nil="true"/>
                 <b:UserIdApprovedByFinanceUser i:nil="true"/>
 
                <b:UserReferenceSystemId>WS01<ApprovedByManagementFlag>false</b:UserReferenceSystemId>
  ApprovedByManagementFlag>
               <b:UserUid>1152921504607067736</b:UserUid>ApprovedByManagementTimestamp i:nil="true"/>
                  <b:EmailAddress>webservices@revcorp.bb</b:EmailAddress>
 <b:ApprovedByManagementUser i:nil="true"/>
                <b:FirstName>Web<ApprovedByProjectManagerFlag>false</b:FirstName>ApprovedByProjectManagerFlag>
                  <b:LastName>Services</b:LastName>
 <b:ApprovedByProjectManagerTimestamp i:nil="true"/>
                <b:MiddleNameApprovedByProjectManagerUser i:nil="true"/>
               <<b:AutoManagementApprovalFlag>true</b:CreatedByUser>AutoManagementApprovalFlag>
               <b:CreatedTimestamp>2018-01-29T21:55:02.573Z</b:CreatedTimestamp>AvailableBalances>
               <b:Dimension>E</b:Dimension>   <b:PwsInvoiceAvailableBalance>
            <b:EndDate>2018-02-28T00:00:00Z</b:EndDate>                <b:EngagementTimestamp>AAAAAA62DGw=</b:EngagementTimestamp><b:ContractLineItem>
               <b:LastUpdatedByUser>             <b:ContractLineItemCode>P001666-CL1</b:ContractLineItemCode>
     <b:UserDisplayName>Web Services</b:UserDisplayName>                   <b:UserIdContractLineItemId i:nil="true"/>
                        <b:UserReferenceSystemId>WS01<ContractLineItemUid>1152921504607167042</b:UserReferenceSystemId>ContractLineItemUid>
                        <b:UserUid>1152921504607067736<ContractLineItemName>R23 - 2022</b:UserUid>ContractLineItemName>
                  <b:EmailAddress>webservices@revcorp.bb</b:EmailAddress>          <b:EngagementIdentity>
        <b:FirstName>Web</b:FirstName>                   <b:LastName>Services<EngagementCode>P001666</b:LastName>EngagementCode>
                   <b:MiddleName         <b:EngagementId i:nil="true"/>
               </b:LastUpdatedByUser>
               <b:LastUpdatedTimestamp>2018-01-29T21:55:02.573Z<EngagementUid>1152921504607393774</b:LastUpdatedTimestamp>EngagementUid>
                        <b:ProjectCostBaselineBucketDateIntervals></b:EngagementIdentity>
                     <b</b:PwsDateInterval>ContractLineItem>
                     <b:EndDate>2017-12-31T00:00:00Z<EditableFlag>true</b:EndDate>EditableFlag>
                     <b:StartDate i:nil="true"/>UnappliedPrepaidAmount>0</b:UnappliedPrepaidAmount>
                  </b:PwsDateInterval>PwsInvoiceAvailableBalance>
                  <b:PwsDateInterval></b:AvailableBalances>
                <b:AvailableMilestones/>
               <b:EndDate>2018CardBeginDate>2022-0107-31T0001T00:00:00Z<00</b:EndDate>CardBeginDate>
                     <b:StartDate>2018CardEndDate>2022-0107-01T0005T00:00:00Z<00</b:StartDate>CardEndDate>
                  </b:PwsDateInterval><b:Client>
                  <b:PwsDateInterval>
ClientId i:nil="true"/>
                    <b:EndDate>2018-02-28T00:00:00Z<ClientNumber>AMAZON</b:EndDate>ClientNumber>
                     <b:StartDate>2018-02-01T00:00:00Z<ClientUid>1152921504606971723</b:StartDate>ClientUid>
                  <<b:ClientName>Amazon</b:PwsDateInterval>ClientName>
                  <b:PwsDateInterval>InactiveFlag>false</b:InactiveFlag>
                     <b:EndDateParentClientIdentity i:nil="true"/>
  
                  <b:StartDate>2018-03-01T00:00:00Z</b:StartDate>
                  </b:PwsDateInterval>Client>
               </b:ProjectCostBaselineBucketDateIntervals>
               <b:ProjectCostBaselineDetail>CompanyIdentity>
                  <b:ExternalSystemIdentifierCompanyId i:nil="true"/>
                  <b:ProjectCostBaselineId i:nil="true"/>CompanyName>USA</b:CompanyName>
                  <b:ProjectCostBaselineUid>1152921504607272102<CompanyUid>1152921504606850739</b:ProjectCostBaselineUid>CompanyUid>
                  <b:ActiveProjectCostBaselineFlag>true<CompanyNumber>USA</b:ActiveProjectCostBaselineFlag>CompanyNumber>
                  <b:CaMetricActiveFlag>true<</b:CaMetricActiveFlag>
  CompanyIdentity>
               <b:DaMetricActiveFlag>false<CostCardAdjustmentAmount>0</b:DaMetricActiveFlag>
 CostCardAdjustmentAmount>
                <b:Description>Cost Budget Baseline<CostCardExclusionsAmount>0</b:Description>
  CostCardExclusionsAmount>
               <b:EaMetricActiveFlag>false<CostCardInvoicedAmount>0</b:EaMetricActiveFlag>
 CostCardInvoicedAmount>
                <b:PrimaryMetric>C<CostCardRequireLocationFlag>false</b:PrimaryMetric>
  CostCardRequireLocationFlag>
               <b:ProjectCostBaselineName>Client Amount Budget</b:ProjectCostBaselineName>CostCenterIdentity>
                  <b:ProjectCostBaselineBuckets>
  CostCenterId i:nil="true"/>
                  <b:PwsProjectCostBaselineBucket>CostCenterName>Executive Team (USA)</b:CostCenterName>
                  <b:CostCenterNumber>Executive    <b:ClientAmount>2000<Team (USA)</b:ClientAmount>
   CostCenterNumber>
                    <b:DisbursedAmount i:nil="true"/>CostCenterUid>1152921504606867363</b:CostCenterUid>
               </b:CostCenterIdentity>
         <b:EndDate>2018-01-31T00:00:00Z</b:EndDate>      <b:CreatedByUser>
                  <b:ExpenseAmount i:nil="true"/>UserDisplayName>Bettina</b:UserDisplayName>
                        <b:ExpenseTypeGroupIdentityUserId i:nil="true"/>
                        <b:ExpenseTypeIdentity>UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
                         <b:ExpenseTypeId i:nil="true"/>UserUid>1152921504607011056</b:UserUid>
                   <b:EmailAddress>bettina@projectorpsa.com</b:EmailAddress>
       <b:ExpenseTypeName>Per Diem</b:ExpenseTypeName>           <b:FirstName>Bettina</b:FirstName>
                  <b:ExpenseTypeUid>1152921504606881747<LastName>Borces</b:ExpenseTypeUid>LastName>
                  <b:MiddleName i:nil="true"/>
      </b:ExpenseTypeIdentity>         </b:CreatedByUser>
               <b:StartDate>2018CreatedTimestamp>2022-0107-01T0012T15:0026:00Z<19.99Z</b:StartDate>CreatedTimestamp>
                     <<b:DeletedFlag>false</b:PwsProjectCostBaselineBucket>DeletedFlag>
               <b:DraftCostCardCount>0</b:DraftCostCardCount>
      <b:PwsProjectCostBaselineBucket>         <b:DraftInvoiceNumber>DRAFT00764</b:DraftInvoiceNumber>
               <b:ClientAmount>2000<DraftTimeCardCount>0</b:ClientAmount>
 DraftTimeCardCount>
                      <b:DisbursedAmount i:nil="true"/>
 Engagement>
                       <b:EndDate>2018-02-28T00:00:00Z<EngagementCode>P001666</b:EndDate>
     EngagementCode>
                  <b:ExpenseAmountEngagementId i:nil="true"/>
   
                    <b:ExpenseTypeGroupIdentity i:nil="true"/>
   EngagementUid>1152921504607393774</b:EngagementUid>
                    <b:ExpenseTypeIdentity>
    ClientIdentity>
                      <b:ExpenseTypeIdClientId i:nil="true"/>
     
                     <b:ExpenseTypeName>Per Diem<ClientNumber>AMAZON</b:ExpenseTypeName>ClientNumber>
                           <b:ExpenseTypeUid>1152921504606881747<<b:ClientUid>1152921504606971723</b:ExpenseTypeUid>
ClientUid>
                       </b:ExpenseTypeIdentity>
    ClientIdentity>
                   <b:StartDate>2018-02-01T00:00:00Z<EngagementName>R23 - 2022</b:StartDate>
     EngagementName>
               </b:PwsProjectCostBaselineBucket>Engagement>
                  <<b:ExcludeZeroAmountCostCardsFlag>false</b:ProjectCostBaselineBuckets>ExcludeZeroAmountCostCardsFlag>
                  <b:Timestamp>AAAAAA62DG8=<ExcludeZeroAmountTimeCardsFlag>false</b:Timestamp>ExcludeZeroAmountTimeCardsFlag>
               <<b:ExcludedCostCardAmount>10</b:ProjectCostBaselineDetail>ExcludedCostCardAmount>
               <b:StartDate>2018-01-01T00:00:00Z<ExcludedCostCardCount>1</b:StartDate>ExcludedCostCardCount>
               <b:TimePhase>M<ExcludedMilestoneAmount>0</b:TimePhase>ExcludedMilestoneAmount>
               <<b:ExcludedMilestoneCount>0</ab:ProjectCostBaseline>ExcludedMilestoneCount>
             <a:ProjectCostBaselineIdentity  xmlns<b:ExcludedTimeCardAmount>800</b="http://projectorpsa.com/DataContracts/Shared/Common/">:ExcludedTimeCardAmount>
               <b:ExternalSystemIdentifier i:nil="true"/>ExcludedTimeCardCount>1</b:ExcludedTimeCardCount>
               <b:ProjectCostBaselineId i:nil="true"/>GrossInvoiceAmount>0</b:GrossInvoiceAmount>
               <b:ProjectCostBaselineUid>1152921504607272102<IncludedCostCardCount>0</b:ProjectCostBaselineUid>IncludedCostCardCount>
               <<b:IncludedMilestoneCount>0</a:ProjectCostBaselineIdentity>b:IncludedMilestoneCount>
               <a<b:ProjectTimestamp>AAAAAA62DHA=</a:ProjectTimestamp>IncludedMilestones/>
              <a:StolenLocks xmlns<b:IncludedTimeCardCount>0</b="http://projectorpsa.com/DataContracts/Shared/Common/"/>:IncludedTimeCardCount>
               </PwsCreateProjectCostBaselineResult><b:InvoiceContent>B</b:InvoiceContent>
           </PwsCreateProjectCostBaselineResponse>    <<b:InvoiceCurrencyDecimalDigits>2</sb:Body>
</s:Envelope>
Code Block
languagexml
titleExample 02 - lock stolen
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">InvoiceCurrencyDecimalDigits>
      <s:Body>       <PwsCreateProjectCostBaselineResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">  <b:InvoiceCurrencyIdentity>
                 <PwsCreateProjectCostBaselineResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Scheduling/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><b:CurrencyCode>USD</b:CurrencyCode>
                  <b:CurrencyId i:nil="true"/>
                 <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/><b:CurrencyUid>1152921504606851838</b:CurrencyUid>
              <ResponseId xmlns="http://projectorpsa.com/CommonServices/">1</ResponseId> </b:InvoiceCurrencyIdentity>
              <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status><b:InvoiceDetail>
                  <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2018-11-14T18:00:35.249869Z</ServerTimestampUtc><b:InvoiceId i:nil="true"/>
                 <a:EngagementLockStolenFromUserIdentity xmlns<b:InvoiceNumber>DRAFT00764</b="http://projectorpsa.com/DataContracts/Shared/Common/">:InvoiceNumber>
                  <b:UserDisplayName>Krakauer, Larry<InvoiceUid>1152921504607847047</b:UserDisplayName>InvoiceUid>
                  <b:UserIdInvoiceDate i:nil="true"/>
                  <b:UserReferenceSystemId>097<InvoiceName>Invoice - WS</b:UserReferenceSystemId>InvoiceName>
                  <b:UserUid>1152921504606944254</b:UserUid>BillingAddress>
            </a:EngagementLockStolenFromUserIdentity>         <b:AddressLine1>98 N. Washingtong  <a:EngagementTimestamp>AAAAABFHYZY=</a:EngagementTimestamp>Street</b:AddressLine1>
               <a:ProjectCostBaseline xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">     <b:AddressLine2>Suite 400</b:AddressLine2>
         <b:Basis>N</b:Basis>            <b:Attention i:nil="true"/>
  <b:CreatedByUser>                   <b:UserDisplayName>Krakauer, Larry<City>Boston</b:UserDisplayName>City>
                     <b:UserId i:nil="true"/>:CompanyName>R23</b:CompanyName>
                     <b:UserReferenceSystemId>097<Country>USA</b:UserReferenceSystemId>Country>
                   <b  <b:UserUid>1152921504606944254<StateOrProvince>MA</b:UserUid>StateOrProvince>
                     <b:EmailAddress>Larry@revcorp.min<ZipOrPostalCode>02130</b:EmailAddress>ZipOrPostalCode>
                  <b:FirstName>Larry<</b:FirstName>BillingAddress>
                  <b:LastName>Krakauer</b:LastName>BillingCultureIdentity>
                     <b:MiddleName>A</b:MiddleName>:CultureId i:nil="true"/>
                     <<b:CultureName>en-US</b:CreatedByUser>CultureName>
                     <b:CreatedTimestamp>2018-11-14T18:00:35.573Z<CultureUid>1152921504606851419</b:CreatedTimestamp>CultureUid>
                  <b:Dimension>E<</b:Dimension>BillingCultureIdentity>
                  <b:EndDateBillingInstructions i:nil="true"/>
                  <b:EngagementTimestamp>AAAAABFHYZY=</b:EngagementTimestamp>ClientMessage i:nil="true"/>
                  <b:LastUpdatedByUser>:ClientMessagePlain i:nil="true"/>
                  <b:UserDisplayName>Krakauer, Larry</b:UserDisplayName>ContractLineItems/>
                  <b:UserId i:nil="true"/>CostGrossAmtOption>C</b:CostGrossAmtOption>
                  <b:UserReferenceSystemId>097</b:UserReferenceSystemId>DistributionSettings>
                  <b:UserUid>1152921504606944254</b:UserUid>   <b:EmailSettings>
               <b:EmailAddress>Larry@revcorp.min</b:EmailAddress>         <b:EmailFromUserIdentity>
         <b:FirstName>Larry</b:FirstName>                   <b:LastName>Krakauer<UserDisplayName>Bettina</b:LastName>UserDisplayName>
                  <b:MiddleName>A</b:MiddleName>         <b:UserId i:nil="true"/>
     </b:LastUpdatedByUser>                      <b:LastUpdatedTimestamp>2018-11-14T18:00:35.573Z</b:LastUpdatedTimestamp>UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
                           <b:ProjectCostBaselineBucketDateIntervals>UserUid>1152921504607011056</b:UserUid>
                        <b:PwsDateInterval></b:EmailFromUserIdentity>
                        <b:EndDate i:nil="true"/>EmailInvoiceTemplateIdentity>
                           <b:StartDateInvoiceTemplateId i:nil="true"/>

                 </b:PwsDateInterval>           <b:InvoiceTemplateName>E001</b:InvoiceTemplateName>
    </b:ProjectCostBaselineBucketDateIntervals>                <b:ProjectCostBaselineDetail>       <b:InvoiceTemplateUid>1152921504606878906</b:InvoiceTemplateUid>
           <b:ExternalSystemIdentifier i:nil="true"/>             </b:EmailInvoiceTemplateIdentity>
     <b:ProjectCostBaselineId i:nil="true"/>                   <b:ProjectCostBaselineUid>1152921504607284872<InvoiceEmailEnabledFlag>true</b:ProjectCostBaselineUid>InvoiceEmailEnabledFlag>
                        <b:ActiveProjectCostBaselineFlag>true<InvoiceEmailType>W</b:ActiveProjectCostBaselineFlag>InvoiceEmailType>
                        <b:CaMetricActiveFlag>true</b:CaMetricActiveFlag>Recipients>
                  <b:DaMetricActiveFlag>false</b:DaMetricActiveFlag>         <b:PwsInvoiceEmailRecipient>
         <b:Description>Client Amount Cost Baseline</b:Description>                   <b:EaMetricActiveFlag>false<RecipientType>T</b:EaMetricActiveFlag>RecipientType>
                              <b:PrimaryMetric>C</b:PrimaryMetric>UserIdentity>
                  <b:ProjectCostBaselineName>Client Amount Budget</b:ProjectCostBaselineName>             <b:UserDisplayName>Fitzgerald Grant</b:UserDisplayName>
    <b:ProjectCostBaselineBuckets>                      <b:PwsProjectCostBaselineBucket>       <b:UserId i:nil="true"/>
                <b:ClientAmount>2000</b:ClientAmount>                 <b:UserReferenceSystemId>Client11</b:UserReferenceSystemId>
       <b:DisbursedAmount i:nil="true"/>                         <b:UserUid>1152921504607061857</b:EndDate i:nil="true"/>UserUid>
                         <b:ExpenseAmount i:nil="true"/>    </b:UserIdentity>
                    <b:ExpenseTypeGroupIdentity i:nil="true"/>      </b:PwsInvoiceEmailRecipient>
                  <b:ExpenseTypeIdentity>      </b:Recipients>
                     <b:ExpenseTypeId i:nil="true"/>
 </b:EmailSettings>
                         <b:ExpenseTypeName>TravelSubjectText>Invoice -AR< WS</b:ExpenseTypeName>SubjectText>
                           <b:ExpenseTypeUid>1152921504606861209<</b:ExpenseTypeUid>DistributionSettings>
                  <b:InvoiceMessages>[Bettina, 12 Jul 2022   </b:ExpenseTypeIdentity>
  11:26 (Create Invoice)] Invoice - WS</b:InvoiceMessages>
                  <b:InvoiceTemplateIdentity>
                     <b:StartDateInvoiceTemplateId i:nil="true"/>
                     <<b:InvoiceTemplateName>A100</b:PwsProjectCostBaselineBucket>InvoiceTemplateName>
                     <b:InvoiceTemplateUid>1152921504606878901</b:PwsProjectCostBaselineBucket>InvoiceTemplateUid>
                        <b:ClientAmount>2000<</b:ClientAmount>InvoiceTemplateIdentity>
                        <b:DisbursedAmountOverrideAccountingPeriodIdentity i:nil="true"/>
 
                      <b:EndDate i:nil="true"/>
 PaymentTermIdentity>
                      <b:ExpenseAmountPaymentTermId i:nil="true"/>
  
                     <b:ExpenseTypeGroupIdentityPaymentTermName>Net i:nil="true"/>15</b:PaymentTermName>
                     <b:PaymentTermUid>1152921504606856053</b:PaymentTermUid>
        <b:ExpenseTypeIdentity>          </b:PaymentTermIdentity>
                  <b:ExpenseTypeIdPurchaseOrderNumber i:nil="true"/>
                  <b:RenderReceiptsFlag>false</b:RenderReceiptsFlag>
        <b:ExpenseTypeName>Per Diem-AA</b:ExpenseTypeName>         <b:RenderedInvoiceFormat>P</b:RenderedInvoiceFormat>
                  <b:ExpenseTypeUid>1152921504606869373<Taxes/b:ExpenseTypeUid>>
                        <<b:TimeBillingType>H</b:ExpenseTypeIdentity>
     TimeBillingType>
                  <b:StartDate i:nil="true"/>TimeGrossAmtOption>S</b:TimeGrossAmtOption>
                     <b:Timestamp>AAAAAB4/Y0s=</b:PwsProjectCostBaselineBucket>Timestamp>
                  </b:ProjectCostBaselineBuckets>
  InvoiceDetail>
               <b:Timestamp>AAAAABFHYc0=<InvoiceNumberHistory>DRAFT00764</b:Timestamp>InvoiceNumberHistory>
               </b:ProjectCostBaselineDetail><b:InvoiceRecipients>
                  <b:StartDate i:nil="true"/>PwsUserSummary>
                     <b:TimePhase>N<UserDisplayName>Bettina</b:TimePhase>UserDisplayName>
            </a:ProjectCostBaseline>             <a:ProjectCostBaselineIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"><b:UserId i:nil="true"/>
                     <b:ExternalSystemIdentifier i:nil="true"/>UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
               <b:ProjectCostBaselineId i:nil="true"/>       <b:UserUid>1152921504607011056</b:UserUid>
        <b:ProjectCostBaselineUid>1152921504607284872</b:ProjectCostBaselineUid>             </a:ProjectCostBaselineIdentity><b:EmailAddress>bettina@projectorpsa.com</b:EmailAddress>
             <a:ProjectTimestamp>AAAAABFHYc4=</a:ProjectTimestamp>        <b:FirstName>Bettina</b:FirstName>
    <a:StolenLocks xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">                <b:EntityIdentity>:LastName>Borces</b:LastName>
                   <b:EntityCode>P001125-001</b:EntityCode>
                  <b:EntityIdMiddleName i:nil="true"/>
                  <b:EntityUid>1152921504607425735<</b:EntityUid>PwsUserSummary>
                  <b:LockType>P</b:LockType>PwsUserSummary>
               </b:EntityIdentity>      <b:UserDisplayName>Fitzgerald Grant</b:UserDisplayName>
        <b:EntityLockSummary>                   <b:PwsEntityLockSummaryItem><b:UserId i:nil="true"/>
                     <b:LockCount>1<UserReferenceSystemId>Client11</b:LockCount>UserReferenceSystemId>
                     <b:LockHolderUserIdentity>
  :UserUid>1152921504607061857</b:UserUid>
                     <b:UserDisplayName>Krakauer, Larry<EmailAddress>fitzgerald@usagov.bb</b:UserDisplayName>
EmailAddress>
                       <b:UserId i:nil="true"/>
  FirstName>Fitzgerald</b:FirstName>
                     <b:UserReferenceSystemId>097<LastName>Grant</b:UserReferenceSystemId>LastName>
                        <b:UserUid>1152921504606944254</b:UserUid>
  <b:MiddleName i:nil="true"/>
                  </b:LockHolderUserIdentity>PwsUserSummary>
                     <b:MostRecentLockAcquisitionTimestamp>2018-11-14T17:59:52.2Z<</b:MostRecentLockAcquisitionTimestamp>InvoiceRecipients>
                  <<b:InvoiceScope>P</b:PwsEntityLockSummaryItem>InvoiceScope>
               <<b:InvoiceStatus>D</b:EntityLockSummary>InvoiceStatus>
               </a<b:StolenLocks>
IssuedByUser i:nil="true"/>
        </PwsCreateProjectCostBaselineResult>       <b:IssuedTimestamp i:nil="true"/>
           </PwsCreateProjectCostBaselineResponse>    </s:Body>
</s:Envelope>

PwsCreateProjectCostBaseline - Common Errors and Warnings

...

ErrorNumber

...

ErrorCode

...

ErrorText

...

<b:LastUpdatedByUser>
                  <b:UserDisplayName>Bettina</b:UserDisplayName>
                  <b:UserId i:nil="true"/>
                  <b:UserReferenceSystemId>QA - 01</b:UserReferenceSystemId>
                  <b:UserUid>1152921504607011056</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:LastUpdatedByUser>
               <b:LastUpdatedTimestamp>2022-07-12T15:26:19.99Z</b:LastUpdatedTimestamp>
               <b:ManagementApprovalThresholdAmount>10</b:ManagementApprovalThresholdAmount>
               <b:ManagementApprovalThresholdPercent>0.5</b:ManagementApprovalThresholdPercent>
               <b:MilestoneInvoicedAmount>0</b:MilestoneInvoicedAmount>
               <b:NetInvoiceAmount>0</b:NetInvoiceAmount>
               <b:PaidByUser i:nil="true"/>
               <b:PaidTimestamp i:nil="true"/>
               <b:PaymentComment i:nil="true"/>
               <b:PostFailedFlag>false</b:PostFailedFlag>
               <b:PostFailureStatusMessage i:nil="true"/>
               <b:PostStatus>U</b:PostStatus>
               <b:PostedByUser i:nil="true"/>
               <b:PostedFlag>false</b:PostedFlag>
               <b:PostedTimestamp i:nil="true"/>
               <b:Project>
                  <b:ProjectCode>P001666-001</b:ProjectCode>
                  <b:ProjectId i:nil="true"/>
                  <b:ProjectUid>1152921504607524352</b:ProjectUid>
                  <b:EngagementIdentity>
                     <b:EngagementCode>P001666</b:EngagementCode>
                     <b:EngagementId i:nil="true"/>
                     <b:EngagementUid>1152921504607393774</b:EngagementUid>
                  </b:EngagementIdentity>
                  <b:ProjectName>R23 - Time and Materials</b:ProjectName>
               </b:Project>
               <b:RejectedCostCardCount>0</b:RejectedCostCardCount>
               <b:RejectedTimeCardCount>0</b:RejectedTimeCardCount>
               <b:RevaluePlEffect>0</b:RevaluePlEffect>
               <b:SendFailedFlag>false</b:SendFailedFlag>
               <b:SendFailureStatusMessage i:nil="true"/>
               <b:SendStatus>U</b:SendStatus>
               <b:SentByUser i:nil="true"/>
               <b:SentFlag>false</b:SentFlag>
               <b:SentTimestamp i:nil="true"/>
               <b:TimeCardAdjustmentAmount>0</b:TimeCardAdjustmentAmount>
               <b:TimeCardExclusionsAmount>0</b:TimeCardExclusionsAmount>
               <b:TimeCardInvoicedAmount>0</b:TimeCardInvoicedAmount>
               <b:TimeCardRequireLocationFlag>false</b:TimeCardRequireLocationFlag>
               <b:UnapprovedCostCardCount>0</b:UnapprovedCostCardCount>
               <b:UnapprovedTimeCardCount>0</b:UnapprovedTimeCardCount>
               <b:VoidedByUser i:nil="true"/>
               <b:VoidedTimestamp i:nil="true"/>
               <b:WebInvoiceFlag>true</b:WebInvoiceFlag>
               <b:WriteUpWriteDownPlEffect>0</b:WriteUpWriteDownPlEffect>
            </a:Invoice>
            <a:InvoiceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:InvoiceId i:nil="true"/>
               <b:InvoiceNumber>DRAFT00764</b:InvoiceNumber>
               <b:InvoiceUid>1152921504607847047</b:InvoiceUid>
            </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.