Standard API Integration

Synchronize a local saleable hotel catalogue and room mappings before selling.

When to choose Standard integration

Choose this approach when you maintain your own hotel catalogue and search/listing experience. Synchronize static content locally, then query availability and prices in real time only when the traveller needs them.

Mandatory interfaces

  1. Static data: Query country list, Query city list, Get saleable hotel ID list, and Query hotel basic information.
  2. Catalogue maintenance: Query hotel incremental information; update or unmap locally changed hotels and rooms.
  3. Real-time booking: Query product in real time → Trial booking → Create order → Pay order.
  4. Order lifecycle: receive order-status webhook; use Query order details for compensation; call Cancel order when needed.

Recommended synchronization

DataRecommended handling
Countries and citiesLoad during initial setup and refresh when mapping changes.
Saleable hotel IDs and detailsBuild the local catalogue from ID list, then fetch full hotel/room details.
Hotel incrementRun periodically; additions, changes and deletions must update local mapping.
Daily lowest priceUse for display/listing reference only; refresh daily after 05:00 where applicable and never treat it as a bookable price.

Booking path

  1. At the hotel detail or booking step, call Query product in real time.
  2. Call Trial booking when the traveller clicks Book, and repeat it immediately before order submission using the actual room count.
  3. Call Create order only after the final trial succeeds; retain the unique partner coOrderCode.
  4. After local payment succeeds, call Pay order.
  5. Use the signed order-status webhook as the primary result; stop any compensation lookup as soon as the order becomes confirmed, rejected or cancelled.

Important: the legacy name hotelBooking in historical material is superseded by the current /booking/createOrder operation in this API Reference.


Did this page help you?