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 cost card detail (PwsClientElement) be included in the response.
Request Format
- PwsSaveExpenseDocumentCostCard
- serviceRequest: PwsSaveExpenseDocumentCostCardRq
- RequestId: Int32
- SessionTicket: String
- Comments: String
- CostCard: PwsCostCardDetail
- DeleteReceipts: PwsReceiptRef [???]
- ExpenseDocumentIdentity: PwsExpenseDocumentRef
- ExpenseDocumentTimestamp: String
- FullDetailFlag: Boolean
- InsertReceiptsIfNotFoundOnUpdateFlag: Boolean
- ResourceIdentity: PwsResourceRef
- SaveReceipts: PwsReceiptDetail [???]
- UpdateReceiptsIfFoundOnInsertFlag: Boolean
- PreserveCostCardStatusFlag: Boolean
- CostCards: PwsCostCardDetail [???]
- serviceRequest: PwsSaveExpenseDocumentCostCardRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No |
| Click here for more information. |
|
SessionTicket | String | Yes |
| Click here for more information. |
|
Comments | String | No |
|
|
|
CostCard | On Insert: No On Update Yes |
|
|
| |
DeleteReceipts | No |
|
|
| |
ExpenseDocumentIdentity | On Insert: yes On Update: No |
|
|
| |
ExpenseDocumentTimestamp | String | No |
|
|
|
FullDetailFlag | Boolean | No |
|
|
|
InsertReceiptsIfNotFoundOnUpdateFlag | Boolean | No |
|
|
|
ResourceIdentity | On Insert: No On Update No |
|
|
| |
SaveReceipts | On Insert: No On Update: No |
|
|
| |
UpdateReceiptsIfFoundOnInsertFlag | Boolean | On Insert: No On Update: No |
|
|
|
PreserveCostCardStatusFlag | Boolean | On Insert: No On Update: No | false |
|
|
CostCards | On Insert: Yes On Update: No |
|
|
|