Overview
This web service inserts or updates a single expense document based on a detailed expense document structure (PwsExpenseDocumentDetail). The service returns the identity (PwsClientRef) of the client that has been inserted or updated. The caller can optionally request that the full client detail (PwsClientElement) be included in the response.
Format
- PwsSaveExpenseDocument
- serviceRequest: PwsSaveExpenseDocumentRq
- RequestId: Int32
- SessionTicket: String
- AdministratorComments: String
- ApproverIdentities: PwsUserRef[]
- DeleteCostCards: PwsCostCardRef[]
- DeleteReceipts: PwsReceiptRef[]
- ExcludeCreditCostCardsFlag: Boolean
- ExpenseDocument: PwsExpenseDocumentDetail
- ExpenseDocumentIdentity: PwsExpenseDocumentRef
- FullDetailFlag: Boolean
- InsertReceiptsIfNotFoundOnUpdateFlag: Boolean
- ResourceIdentity: PwsResourceRef
- RetrieveCostCardsFlag: Boolean
- RetrieveReceiptsFlag: Boolean
- SaveCostCards: PwsCostCardDetail[]
- SaveReceipts: PwsReceiptDetail[]
- SendNotificationEmailFlag: Boolean
- SubmissionComments: String
- SubmitFlag: Boolean
- UpdateReceiptsIfFoundOnInsertFlag: Boolean
- ExpenseDocumentTimestamp: String
- PreserveCostCardStatusFlag: Boolean
- serviceRequest: PwsSaveExpenseDocumentRq
Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 |
|
| Click here for more information. |
|
SessionTicket | String |
|
| Click here for more information. |
|
AdministratorComments | String |
|
|
|
|
ApproverIdentities |
|
|
|
| |
DeleteCostCards |
|
|
|
| |
DeleteReceipts |
|
|
|
| |
ExcludeCreditCostCardsFlag | Boolean |
|
|
|
|
ExpenseDocument |
|
|
|
| |
ExpenseDocumentIdentity |
|
|
|
| |
FullDetailFlag | Boolean |
|
|
|
|
InsertReceiptsIfNotFoundOnUpdateFlag | Boolean |
|
|
|
|
ResourceIdentity |
|
|
|
| |
RetrieveCostCardsFlag | Boolean |
|
|
|
|
RetrieveReceiptsFlag | Boolean |
|
|
|
|
SaveCostCards |
|
|
|
| |
SaveReceipts |
|
|
|
| |
SendNotificationEmailFlag | Boolean |
|
|
|
|
SubmissionComments | String |
|
|
|
|
SubmitFlag | Boolean |
|
|
|
|
UpdateReceiptsIfFoundOnInsertFlag | Boolean |
|
|
|
|
ExpenseDocumentTimestamp | String |
|
|
|
|
PreserveCostCardStatusFlag | Boolean |
|
|
|
|