PwsGetCostAlerts
Overview
This service is used to retrieve expense entry alerts associated with rejected and/or draft (unsubmitted) cost cards.
Rate Limiting
In order to protect our servers from inadvertent service overuse or intentional attack, and to fairly distribute services to all our customers, we have implemented a rate limiting algorithm. When fully deployed, this new algorithm will cause services to either succeed with new warnings or fail with new errors when services are consumed at too high a rate. Programs that consume Projector services should be enhanced to handle rate limiting errors so that they can continue functioning properly. For more information please visit: Projector Rate Limiting Behavior.
Request Format
- PwsGetCostAlerts
- serviceRequest: PwsGetCostAlertsRq
- RequestId: Int32
- SessionTicket: String
- CountOnlyFlag: Boolean
- IncludeRejectedFlag: Boolean
- IncludeUnsubmittedFlag: Boolean
- ResourceIdentity: PwsResourceRef
- serviceRequest: PwsGetCostAlertsRq
Request Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
RequestId | Int32 | No | Click here for more information. | 1 | |
SessionTicket | String | Yes | Click here for more information. | AbHODMrb8ng+PCV+B7BzmQ== | |
CountOnlyFlag | Boolean | No | false | If set to 'true', the web service will return only the count of cost alerts; if set to 'false' the web service will return full information about each alert | false |
IncludeRejectedFlag | Boolean | No | false | If set to 'true', rejected expense alerts will be returned | true |
IncludeUnsubmittedFlag | Boolean | No | false | If set to 'true', draft/unsubmitted expense alerts will be returned | true |
ResourceIdentity | No | The resource identity to retrieve alerts for. If not specified, the resource associated with the authenticated user will be used. If this is not specified, and the authenticated user is not a associated with a resource, this will return no alerts (no error will be generated). |
Request Usage Example(s)
Response Format
- PwsGetCostAlertsResponse
- PwsGetCostAlertsResult: PwsGetCostAlertsRs
- Messages: PwsMessage[]
- ResponseId: Int32
- Status: RequestStatus
- ServerTimestampUtc: DateTime
- CostAlerts: PwsCostAlerts[]
- PwsGetCostAlertsResult: PwsGetCostAlertsRs
Response Elements
Element | Data Type | Description | Sample Data |
---|---|---|---|
Messages | The web service response status and message. Click here for more information. | ||
ResponseId | Int32 | Click here for more information | 1 |
Status | Click here for more information | Ok | |
ServerTimestampUtc | DateTime | Click here for more information | |
CostAlerts | The full detail of the cost alerts |
Response Usage Example(s)
PwsGetCostAlerts - Common Errors and Warnings
- For all errors and warnings please refer to the Complete List of Errors and Warnings
ErrorNumber | ErrorCode | ErrorText |
---|---|---|
57545 | ResourceNotFound | The specified resource does not exist. |