A subscription to a notification when any user in the Concur company changes the specified features of their Concur account or data. Currently supports notifications for the following events: Itinerary change (create or update), Travel Profile basic information change.
This functionality requires that the partner complete the OAuth process with an administrative user from the Concur company. This resource can only be accessed by partner applications that have selected the User API scope.
1.0
To subscribe:
https://www.concursolutions.com/api/company/v1.0/subscribe
To unsubscribe:
https://www.concursolutions.com/api/company/v1.0/unsubscribe
application/xml
Subscribes or unsubscribes the partner from notifications when any users in the company add, modify, or cancel an itinerary. The partner must have received authorization using OAuth by an administrative user at the company to access the company’s trip information.
type=itinerary
Required. The type of subscription.
Examples
To subscribe:https://www.concursolutions.com/api/company/v1.0/subscribe?type=itinerary
To unsubscribe:https://www.concursolutions.com/api/company/v1.0/unsubscribe?type=itinerary
Required. Authorization header with OAuth token for an administrative user at the company. The user must have one of the following user roles in Concur: Company Administrator or Web Services Administrator for Professional, or Can Administer for Standard.
POST http://www.concursolutions.com/api/company/v1.0/subscribe?type=itinerary HTTP/1.1
Authorization: OAuth {access token}
...
The notification will be sent to the Postback URL that the partner has registered with Concur during application review. Partners can only have one postback URL for all notification types. The notification will include the type, oauth_token_key, userid_type, and userid_value query parameters, specifying the updated user:
https://postbackurl.com?type=itinerary&oauth_token_key={oauthtoken}&userid_type=login&userid_value=cm@example.com
The response body 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. |
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 |
200 OK
POST https://www.postbackurl.com?type=itinerary&oauth_token_key={oauthtoken}&userid_type=login&userid_value=cm@example.com HTTP/1.1
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>
Subscribes or unsubscribes the partner from notifications when the company’s Payment information changes. The partner must have received authorization using OAuth by an administrative user at the company to access the company’s form of payment information.
type=fop
The type of subscription. Required.
Examples
To subscribe:https://www.concursolutions.com/api/company/v1.0/subscribe?type=fop
To unsubscribe:https://www.concursolutions.com/api/company/v1.0/unsubscribe?type=fop
Required. Authorization header with OAuth token for the desired Concur user. This token is granted as part of the OAuth 2.0 Web flow authorization process.
POST https://www.concursolutions.com/api/company/v1.0/subscribe?type=fop HTTP/1.1
Authorization: OAuth {access token}
The notification will be sent to the Postback URL that the supplier has registered with 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}
200 OK
Subscribes or unsubscribes the partner from notifications when the company’s Travel Profile information changes. The partner must have received authorization using OAuth by an administrative user at the company to access the company’s trip information.
NOTE: 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.
type=profile
Required. The type of subscription.
Examples
To subscribe:https://www.concursolutions.com/api/company/v1.0/subscribe?type=profile
To unsubscribe:https://www.concursolutions.com/api/company/v1.0/unsubscribe?type=profile
Required. Authorization header with OAuth token for an administrative user at the company. The user must have one of the following user roles in Concur: Company Administrator or Web Services Administrator for Professional, or Can Administer for Standard.
POST <https://www.concursolutions.com/api/company/v1.0/subscribe?type=profile> HTTP/1.1
Authorization: OAuth {access token}
...
The notification will be sent to the Postback URL that the partner has registered with Concur during application review. Partners can only have one postback URL for all notification types. The notification will include the type, oauth_token_key, userid_type, and userid_value query parameters, specifying the updated user:
https://postbackurl.com?type=profile&oauth_token_key={oauthtoken}&userid_type=login&userid_value=cm@example.com
The partner can use this information to make a Get Travel Profile request.
200 OK