Development guide
1. Development steps
- 1.1 You will contact the customer service of JL-TOUR to provide access intention and obtain the domain name and account of the test.
- 1.2 Reference to the standard development documents on the platform, for development, and can be developed while testing.
- 1.3 After passing the test, test the final official data once as required, and be ready to go online.
2. Interface requirements
- 2.1 Quotation interface: maximum support qps: 20.
- 2.2 Price change interface: It is recommended to poll every 1 minute.
- 2.3 variable price increment interface update: according to the cache days required by your company, update the corresponding days quotation;
- 2.4 The interface needs to open gzip, and the request contains accept-encoding: gzip, deflate, and get the request needs to do urlencode.
- 2.5 The docking formal environment must provide all server IP to facilitate JL-TOUR routing and whitelist control.
- 2.5 Individual order contains more night, booking and cancellation rules take the strictest day.
3. Interface use process
- 3.1 Develop the city list interface to obtain regional information.
- 3.2 Develop the hotel list interface to obtain the hotel information (this interface data only supports the hotel simple information).
- 3.3 Develop the static data details interface to obtain the hotel details, room type, price type, pictures and other information;
- 3.4 Develop the quotation interface to obtain the information on the price, room status, inventory, reservation terms, cancellation terms and so on.
- 3.5 Develop the variable price increment interface to obtain the variable id and the variable price range, and obtain the price at the call quotation interface.
- 3.6 Develop the order quotation interface to check the price, room status and inventory.
- 3.7 Develop the order interface, and return the order number after the successful order.
- 3.8 Develop the order query interface to obtain the order status and confirmation number.
- 3.9 Develop cancel order interface, cancel order.
4. Order test steps
- 4.1 Query the quotation interface in the test environment to obtain the price, room status and inventory.
- 4.2 Call the order quotation interface, and conduct the order test after passing it.
- 4.3 Order needs to be tested according to the reservation terms.
- 4.4 The order needs to be tested until the order is cancelled according to the cancellation clause.
5. Relevant documentation