Travel Profile v1 - User Notification

This API has been deprecated.

Partners and customers using a deprecated API should contact SAP Concur and discuss moving to the latest versions.

Learn more in the API Lifecycle & Deprecation Policy.

A subscription to a notification when the SAP Concur user changes the specified features of their SAP Concur account or data. Currently supports notifications for the following events: Itinerary change (create or update), Travel Profile basic information change, or Travel Profile Form of Payment change. This functionality is restricted to Travel Suppliers or TMCs (Travel Management Companies) who have registered with SAP Concur.

NOTE: This resource can only be accessed by partner applications that have selected the User API scope.

Limitations

Access to this documentation does not provide access to the API. 

Resource URI

To subscribe:

https://www.concursolutions.com/api/user/v1.0/subscribe

To unsubscribe:

https://www.concursolutions.com/api/user/v1.0/unsubscribe

Headers

Content-Type Header

application/xml

Accept Header

application/xml

Subscribe to Notifications for Itinerary Changes

Subscribes or unsubscribes the travel supplier from notifications when the user adds, modifies, or cancels an itinerary. This functionality is only available to travel suppliers that have an application on the App Center tab of SAP Concur. The supplier must also have received authorization by the user to access their trip information.

Request

To subscribe:

shells://www.concursolutions.com/api/travelprofile/v1.0/subscribe?type=itinerary

To unsubscribe:

https://www.concursolutions.com/api/travelprofile/v1.0/unsubscribe?type=itinerary

Request Parameters

Name Description
type=itinerary The type of subscription. Required.

Headers

Authorization Header

Required. Authorization header with OAuth token for the desired SAP Concur user. This token is granted as part of the OAuth 2.0 Web flow authorization process.

Example: Subscribe to Itinerary Changes

POST https://www.concursolutions.com/api/travelprofile/v1.0/subscribe?type=itinerary HTTP/1.1
Authorization: OAuth {access token}

Post Notification Subscription for Itinerary Changes Response

Notification Format

The notification will be sent to the Postback URL that the supplier has registered with SAP Concur during application review. Suppliers can only have one postback URL for all notification types. The notification will include the type and oauth_token_key query parameters, specifying the OAuth information for the updated user:

https://postbackurl.com?type=Itinerary&oauth_token_key={oauth_token}

Response Body Schema

The request will include a Notification parent element, with the following child elements:

Element Description
ObjectType ITINERARY
ObjectURI The URI for the object. The developer can use the appropriate GET endpoint with the ObjectURI to get complete details for the trip. For Itinerary, the ObjectURI value is the same as the TripId value.
EventDateTime When the event happened. Format: YYYY-MM-DDThh:mm:ss
EventType The type of the change. Format: CREATE, UPDATE, CANCEL
Context This is not used yet but will be used in the future to specify the change in the trip. Developers can use this in conjunction with EventType to decide how to process the notification.
TripId The unique identifier for the trip. Format: String

Example: Post a of Notification in XML Format

POST https://www.postbackurl.com?type=itinerary&oauth_token_key={oauthtoken} HTTP/1.1
Authorization: OAuth {access token}
Content-Type: application/xml
<?xml version="1.0" encoding="utf-8"?>
<Notification>
  <ObjectType>ITINERARY</ObjectType>
  <ObjectURI>https://www.concursolutions.com/api/travel/trip/v1.1/naIzQJ0y2DBWjCIQOb2SHTsozwBsHDkdP</ObjectURI>
  <EventDateTime>2013-02-13T08:12:35</EventDateTime>
  <EventType>CREATE</EventType>
  <Context/>
  <TripId>naIzQJ0y2DBWjCIQOb2SHTsozwBsHDkdP</TripId>
</Notification>

XML Example of Successful Response for Itinerary Changes

200 OK

Subscribe for Notifications for Payment Changes

Description

Subscribes or unsubscribes the travel supplier from notifications when the user’s Form of Payment information changes. This functionality is only available to travel suppliers that have an application on the App Center tab of SAP Concur. The supplier must also have received authorization by the user to access their Form of Payment information.

NOTE: SAP Concur will send a notification when any area of the user’s Form of Payment is updated. This may include fields that are not available through the Travel Profile web service.

Post Notification Subscription for Form of Payment Changes Request

Request Parameters

Name Description
type=fop The type of subscription. Required.

Examples

To subscribe:

https://www.concursolutions.com/api/travelprofile/v1.0/subscribe?type=fop

To unsubscribe:

https://www.concursolutions.com/api/travelprofile/v1.0/unsubscribe?type=fop

Headers

Authorization Header

Required. Authorization header with OAuth token for the desired SAP Concur user. This token is granted as part of the OAuth 2.0 Web flow authorization process.

XML Example Request

POST https://www.concursolutions.com/api/travelprofile/v1.0/subscribe?type=fop HTTP/1.1
Authorization: OAuth {access token}

Post Notification Subscription for Form of Payment Changes Response

Notification Format

The notification will be sent to the Postback URL that the supplier has registered with SAP Concur during application review. Suppliers can only have one postback URL for all notification types. The notification will include the type and oauth_token_key query parameters, specifying the OAuth information for the updated user:

https://postbackurl.com?type=FOP&oauth_token_key={oauth_token}

XML Example of Successful Response

200 OK

Subscribe for Notifications for Travel Profile Changes

Subscribes or unsubscribes the travel supplier from notifications when the user’s Travel Profile information changes. This functionality is only available to travel suppliers that have an application on the App Center tab of SAP Concur. The supplier must also have received authorization by the user to access their travel profile information.

NOTE: SAP Concur will send a notification when any area of the user’s Travel Profile is updated. This may include fields that are not available through the Travel Profile web service.

Request

Request parameters

Name Description
type=profile The type of subscription. Required.

Examples

To subscribe:

https://www.concursolutions.com/api/travelprofile/v1.0/subscribe?type=profile

To unsubscribe:

https://www.concursolutions.com/api/travelprofile/v1.0/unsubscribe?type=profile

Headers

Authorization header

Required. Authorization header with OAuth token for the desired SAP Concur user. This token is granted as part of the OAuth 2.0 Web flow authorization process.

Request

POST https://www.concursolutions.com/api/travelprofile/v1.0/subscribe?type=profile HTTP/1.1
Authorization: OAuth {access token}

Response

Notification Format

The notification will be sent to the Postback URL that the supplier has registered with SAP Concur during application review. Suppliers can only have one postback URL for all notification types. The notification will include the type and oauth_token_key query parameters, specifying the OAuth information for the updated user:

https://postbackurl.com?type=Profile&oauth_token_key={oauth_token}

XML Example of Successful Response

200 OK

On this page