Overview

The API are version controlled.

We use a major and minor version nomenclature to manage changes.

Minor versioning ensures that API changes are backward compatible.

By specifying a major version in a http request, you can get expected responses regardless of future changes to the API.

Major Version

The major version number of the API appears in the http URL.

https://apiproxy.ctrip.com/apiproxy/booking/v1/createOrder.

Minor Version

We use minor versions for the API to control small changes. These changes are available through upgrade.

The following table gives an example for versioning:

Fields Minor Version API Methods Description

invoiceCollect

v1.1

Create Order; Update Order;

Generates an invoice and collects a payment for a subscription.

Access to the API

You can access the flight API via one of the following base endpoints:

Environment Base URL for HTTP Endpoints

Production

https://apiproxy.ctrip.com/apiproxy

Test

https://apiproxy-fws.ctripqa.com/apiproxy