Versions Compared

Key

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

...

Element

Data Type

Required?

Default

Description

Sample Data

RequestId

Int32

No




SessionTicket

String

Yes



AQOEFtV1TzXKcVR0VSE/sg==

CostCardIdentities

PwsVersionedCostCardRef[]





InvoiceWorkflowStatus

String

Yes


The invoice workflow status:

'N' for Not Approved to Invoice

'A' for Approved to Invoice

'D' for Draft Invoiced

'I' for Invoiced

A

SendApprovalEmailFlag

Boolean

No

false



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:tim="http://projectorpsa.com/DataContracts/Shared/TimeAndCost/" xmlns:com="http://projectorpsa.com/DataContracts/Shared/Common/">
   <soapenv:Header/>
   <soapenv:Body>
      <pws:PwsSetCostCardInvoiceWorkflowStatus>
         <pws:serviceRequest>
            <req:SessionTicket>AQOEFtV1TzXKcVR0VSE/sg==</req:SessionTicket>
            <tim:CostCardIdentities>
               <!--Zero or more repetitions:-->
               <tim:PwsVersionedCostCardRef>
                  <com:CostCardUid>1152921504613936990</com:CostCardUid>
               </tim:PwsVersionedCostCardRef>
            </tim:CostCardIdentities>
            <tim:InvoiceWorkflowStatus>A</tim:InvoiceWorkflowStatus>
            <tim:SendApprovalEmailFlag>false</tim:SendApprovalEmailFlag>
         </pws:serviceRequest>
      </pws:PwsSetCostCardInvoiceWorkflowStatus>
   </soapenv:Body>
</soapenv:Envelope>

...

Response Elements


Element

Data TypeDefault

Description

Sample Data

Messages

PwsMessage[]

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-08-22T17:50:23.1025831Z

CostCardIdentities

PwsCostCardRef[]

 The identity of the cost cards that have been updated.


...

ErrorNumber

ErrorCode

ErrorText

19057InvalidValueForCostCardInvoiceWorkflowStatus

The specified value for cost card invoice workflow status is invalid. Valid values are N for Not Approved to Invoice, A for Approved to Invoice, D for Draft Invoiced and I for Invoiced. Values of D and I are only valid when querying for existing data.

65489CostCardRefInvalidCostCardRef is required
65723StatusChangeCannotBeCompletedCostCardsChangedOrIneligibleStatus change cannot be completed because one or more cards has changed or is ineligible.