/config_v7

Configuration requests are sent by appending /config to your endpoint. There are no request parameters on this GET request.
 
The details in the emergency_contacts array will be used by TripAdvisor to contact you in cases where urgent API issues are detected and need to be addressed. These contacts must be kept up to date. 
 
Please note that TripAdvisor will always expect a response with "api_version": 7 in it, with the respective fields required in a v7 response. In order to transition from our current v5 to v7 (new) API, TripAdvisor may send you a request with the "api_version": 5 and transition these to "api_version": 7 in the near future. Please ensure that your v7 endpoint accepts the TripAdvisor request with variant "api_version" (both 5 and 7).

Request

http://www.partner-site.com/api_implementation/config

Response

ContentType: application/json

{
    "api_version": 7,
    "configuration": {
        "emergency_contacts": [
            {
                "full_name": "Alice Alicesworth",
                "email": "aalicesworth@example.com ",
                "phone_number": "1 (555) 555-5555"
            },
            {
                "full_name": "Bob Bobson",
                "email": "bbobson@example.com",
                "phone_number": "1 (555) 555-5555"
            }
        ],
        "info_contacts": [
            {
                "full_name": " Bob Bobson ",
                "email": " bbobson@example.com ",
                "phone_number": "1 (555) 555-5555"
            }
        ],
        "languages": [
            "en"
        ],
        "pref_hotels": 50,
        "five_min_rate_limit": 10000
    },
    "debug_info": "The ip of the request is 146.0.38.3"
}

Properties

Field Type Description
api_version number
The version of the API that this response is using.
configuration Configuration Object that has all the configuration information. Optionally the partner can send debugging info in any of the attributes that are not api_version or configuration.