Versions Compared

Key

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

...

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:PwsSaveInvoice>
   
     <!--Optional:-->          <pws:serviceRequest>
            <req:SessionTicket>AcQ1BEusAT8qGh8BhF0OFgSessionTicket>AT0Wkw45/5xiaJ8It3xxkA==</req:SessionTicket>
            <bil:FinanceApprovalStatus>A</bil:FinanceApprovalStatus>
            <bil:Invoice>
               <com:InvoiceNumber>DRAFT00156<InvoiceNumber>DRAFT00763</com:InvoiceNumber>
               <com:ClientMessage>Please pay by YYYY2023-MM07-DD18.  Thank you for your cooperation.</com:ClientMessage>
               <com:ContractLineItems>
                  <!--Zero or more repetitions:-->                   <com:PwsInvoiceContractLineItem>
                     <!--Optional:-->
                     <com:AppliedPrepaidAmount>0</com:AppliedPrepaidAmount>
                     <!--Optional:-->
                     <com:ContractLineItemIdentity>
               
        <!--Optional:-->                         <com:ContractLineItemCode>P001063ContractLineItemCode>P001670-CL1</com:ContractLineItemCode>
                     </com:ContractLineItemIdentity>
                  </com:PwsInvoiceContractLineItem>
               </com:ContractLineItems>
              
<!--Optional:-->                <com:PurchaseOrderNumber>PO-WS-1</com:PurchaseOrderNumber>
            </bil:Invoice>
            <!--Optional:-->
            <bil:NewInvoiceMessages>Invoice Message #1</bil:NewInvoiceMessages>
  
         <!--Optional:-->             <bil:NotifyFinanceTeamFlag>1<NotifyFinanceTeamFlag>true</bil:NotifyFinanceTeamFlag>
            <!--Optional:-->
            <bil:NotifyManagementTeamFlag>1<NotifyManagementTeamFlag>true</bil:NotifyManagementTeamFlag>
         </pws:serviceRequest>
      </pws:PwsSaveInvoice>
   </soapenv:Body>
</soapenv:Envelope>

...

ElementData TypeDescriptionSample Data
MessagesPwsMessage[]

The web service response status and message. Click here for more information.


ResponseIdInt32Click here for more information1
StatusRequestStatusClick here for more informationOk
ServerTimestampUtcDateTimeClick here for more information
2018-01-17T19:38:49.0775059Z
InvoiceIdentityPwsInvoiceRefThe identity of the updated invoice.
InvoicePwsInvoiceElementThe complete details If FullDetailFlag is specified on request.
ExceededContractsPwsExceededContractDetail[]Details about exceeded contracts (i.e. saving of invoice would cause cap to be exceeded on NTE contracts). To save invoice anyways, re-issue request with OverrideCapExceededWarningFlag set to true.
InvoiceTimestampStringThis is an optimistic locking timestamp for the updated invoice.
StolenLocksPwsEntityLockSummaryThis structure contains information about the locks that were stolen in order to complete this request, Will be included only when LocksToSteal is specified in the request.

...

Code Block
languagexml
titleResponse 01
collapsetrue
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <PwsSaveInvoiceResponse xmlns="http://projectorpsa.com/PwsProjectorServices/">
         <PwsSaveInvoiceResult xmlns:a="http://projectorpsa.com/DataContracts/Shared/Billing/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <Messages xmlns="http://projectorpsa.com/CommonServices/" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
            <ResponseId xmlns="http://projectorpsa.com/CommonServices/">0</ResponseId>
            <Status xmlns="http://projectorpsa.com/CommonServices/">Ok</Status>
            <ServerTimestampUtc xmlns="http://projectorpsa.com/CommonServices/">2022-07-13T1518T16:28:17:50.5349657Z<5822748Z</ServerTimestampUtc>
            <a:ExceededContracts i:nil="true"/>
            <a:Invoice i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
            <a:InvoiceIdentity xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
               <b:InvoiceId i:nil="true"/>
               <b:InvoiceNumber>DRAFT00156<InvoiceNumber>DRAFT00763</b:InvoiceNumber>
               <b:InvoiceUid i:nil="true"/>
            </a:InvoiceIdentity>
            <a:InvoiceTimestamp>AAAAAB5BS+kInvoiceTimestamp>AAAAAB5a1X4=</a:InvoiceTimestamp>
            <a:StolenLocks i:nil="true" xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/"/>
         </PwsSaveInvoiceResult>
      </PwsSaveInvoiceResponse>
   </s:Body>
</s:Envelope>

...

ErrorNumberErrorCodeErrorText
10126InvalidEnumerationValueSpecifiedAn invalid value was specified for FinanceApprovalStatus. Valid values are A, U.
68263NoManagementApprovalRequiredInvoice ... does not require management approval.