PwsSaveReceiptResult

Overview


This structure represents the results of a receipt insert or update. Multiple receipts can be submitted for insert or update in a single request to PwsSaveExpenseDocument or PwsSaveExpenseDocumentCostCard. These operations can partially succeed, meaning some receipts were successfully saved while others triggered errors and could not be saved. The web service will report back details about each receipt, whether it succeeded or failed, by returning a collection of these structures. For failed receipts, ErrorDetail will provide more details about the nature of the failure.

Format


PwsSaveReceiptResult

Elements


Element

Data Type

Description

Sample Data

ErrorDetail

PwsErrorDetail

The error detail regarding the failed receipt insert or update.


ReferenceId

String

 Reference id (used to affiliate PwsSaveReceiptResult records with associated PwsReceiptDetail records).


Usage Example(s)


Example 01
 <a:PwsSaveReceiptResult>
                  <a:ErrorDetail xmlns:b="http://projectorpsa.com/DataContracts/Shared/Common/">
                     <b:ErrorCode>DocumentNotFound</b:ErrorCode>
                     <b:ErrorNumber>75199</b:ErrorNumber>
                     <b:ErrorText>Document not found.</b:ErrorText>
                  </a:ErrorDetail>
                  <a:ReferenceId i:nil="true"/>
               </a:PwsSaveReceiptResult>