Get Notifications by Status
Retrieves the list of event notifications that are in the supplied status.
Limitations
Access to this documentation does not provide access to the API.
Request
Request Parameters
status={status}
The desired status for the notification. Required. Currently supports failed.
Example:
https://www.concursolutions.com/api/platform/notifications/v1.0/notification?status={status}
Headers
Authorization Header
Authorization header with OAuth token for valid SAP Concur user. Required.
The OAuth consumer must have one of the following user roles in the SAP Concur platform: Company Administrator or Web Services Administrator for Professional, or Can Administer for Standard.
Accept Header
- application/xml
- application/json
Content-Type Header
application/xml
XML Example Request
GET https://www.concursolutions.com/api/platform/notifications/v1.0/notification?status=FAILED HTTP/1.1
Authorization: OAuth {access token}
Accept: application/xml
Response
Supported Content Types
- application/xml
- application/json
Schema
This request will return a NotificationsList parent element with a Notification child element for each failed notification. The Notification elements will have a Failure child element if the notification is failed.
Failure Elements
Element | Description |
---|---|
Context | Message that the callout can use to provide the developer some context for the callout. |
EventDateTime | When the event happened. Format: YYYY-MM-DD:HH:MM:SS |
EventType | The event that triggered the callout. |
NotificationURL | The URL the developer calls to delete a failed notification. |
ObjectType | The type of object that triggered the notification. |
ObjectURI | The URI for the object. The developer can use the appropriate GET function for the Object Type. |
XML Example of Successful Response
HTTP/1.1 200 OK
Content-Length: 626
Content-Type: application/xml
<?xml version="1.0" encoding="utf-8"?>
<NotificationList xmlns="http://www.concursolutions.com/api/notification/2012/06" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Notification>
<Context i:nil="true" />
<EventDateTime>2012-11-14T19:45:25</EventDateTime>
<EventType>Report Entered Expense Report Workflow Step - REPORT SUBMITTED</EventType>
<NotificationURI>https://www.concursolutions.com/api/platform/notifications/v1.0/notification/nOB1KNTDSWUcJPMV6dPDjNc$scu6EDbt9s</NotificationURI>
<ObjectType>EXPRPT</ObjectType>
<ObjectURI>https://www.concursolutions.com/api/expense/expensereport/v1.1/reportfulldetails/nxxKgLlnROzz$sHcpnRHQ$pALxamClaFfdC</ObjectURI>
</Notification>
</NotificationList>
JSON Example of Successful Response
HTTP/1.1 200 OK
Content-Length: 388
Content-Type: application/json; charset=utf-8
[
{
"Context": null,
"EventDateTime": "2012-11-14T19:45:25",
"EventType": "Report Entered Expense Report Workflow Step - REPORT SUBMITTED",
"NotificationURI": "https://www.concursolutions.com/api/platform/notifications/v1.0/notification/nOB1KNTDSWUcJPMV6dPDjNc$scu6EDbt9s",
"ObjectType": "EXPRPT",
"ObjectURI": "https://www.concursolutions.com/api/expense/expensereport/v1.1/reportfulldetails/nxxKgLlnROzz$sHcpnRHQ$pALxamClaFfdC"
}
]