1. Default module
ChinaTicket.Online OPEN API Document
  • Default module
    • Open API
      • flight
        • Flight Shopping
        • Flight Pricing
        • Price validation
        • Create origin order
        • pay an order
        • cancel an order
        • order detail
        • search change solutions
        • request an flight change
        • request an refund
        • confirm to refund the tiekct
      • train
        • Train Stations
        • Train shopping
        • Create train order
        • Order detail
        • Cancel an order
        • Pay an order
        • Intercept an order
        • Refund an order
      • Get Balance
    • Schemas
      • request
        • request.FlightShoppingRequest
        • request.PayFlightOrderRequest
        • request.ChangeFlightOrderRequests
        • request.CreateFlightOriginOrderRequest
        • request.FlightChangeSearchRequest
        • request.RefundFlightOrderRequest
      • consts
        • consts.CabinClass
        • consts.RefundReason
        • consts.FlightOrderStatus
        • consts.FlightOrderType
        • consts.FlightTicketStatus
        • consts.FlightProductType
        • consts.FlightInvoiceType
        • consts.FlightTaxType
        • consts.PassengerEligibility
      • model
        • model.FlightJourneyCore
        • model.PassengerCountRequest
        • model.ChangeSegment
        • model.PassengerFlightOrder
        • model.ChangeShoppingResult
        • model.ChangeShoppingSegment
        • model.FlightSegmentInfo
        • model.BaggageRule
        • model.BaggageRuleDetail
        • model.FlightCoreSegmentCache
        • model.StopOver
        • model.OrderDetail
        • model.FareRule
        • model.FlightJourney
        • model.FlightSegmentWithCoreSegment
        • model.CoreSegmentDetail
        • model.FlightScheduleChange
        • model.FlightPassengerTickets
        • model.FlightTicket
        • model.PriceDetail
        • model.PriceInFlightOriginOrder
        • model.PriceInFlightChangeOrder
        • model.PriceInFlightRefundOrder
        • model.PriceInFlightVoidOrder
        • model.FlightSolutionResp
        • model.FlightJourneyResp
        • model.FlightPriceDetail
        • model.FlightPrice
        • model.FlightTax
        • model.FlightSolutionLimitation
        • model.FlightLimitAgePair
      • Schemas
        • consts.PassengerType
        • consts.Gender
        • consts.TrainIssueWay
        • consts.TravelDocumentType
        • consts.TrainOrderStatus
        • consts.TrainOrderTicketStatus
        • consts.TrainPassengerStatus
        • consts.TrainRefundStatus
        • dto.PaginationList-array_resp_TrainOrderResp
        • resp.TrainOrderResp
        • resp.TrainOriginTicketDetail
        • req.TrainOrderListReq
        • response.Response-dto_PaginationList-array_resp_TrainOrderResp
        • model.CreateTrainOriginOrderReq
        • response.Response-resp_TrainOrderResp
        • resp.TrainChangeDetail
        • resp.TrainChangeTicketDetail
        • resp.StationDetail
        • model.ShoppingCNTrainStationsResp
        • req.TrainShoppingReq
        • response.Response-array_model_ShoppingCNTrainStationsResp
        • resp.Seats
        • resp.StationInfo
        • response.Response-array_resp_TrainShoppingResp
        • resp.TrainShoppingResp
  • berlogic
    • authenticate
      POST
    • preparePayment
      POST
    • finishBooking
      POST
    • checkPricing
      POST
    • createReservation
      POST
    • priceBrandFamily
      POST
    • searchAeroexpressSeatInfo
      POST
    • searchExchanges
      POST
    • refundBooking
      POST
    • searchFlights
      POST
    • calculateInsurance
      POST
    • sendEmail
      POST
    • cancelReservation
      POST
    • voidTickets
      POST
    • updatePassenger
      POST
    • getBookingRefundCost
      POST
    • bookAdditionalServices
      POST
    • refundPolicy
      POST
    • changePassword
      POST
    • reversePolicy
      POST
    • searchRemarks
      POST
    • issuePolicy
      POST
    • exchangeBooking
      POST
    • searchSchedule
      POST
    • priceAdditionalServices
      POST
    • searchAeroexpressTrainInfo
      POST
  1. Default module

OpenApi

Introduction#

Our STTS Open API allows you to search flight results, to make flight orders, to submit change & refund application for a flight order.
We accepts JSON-encoded request bodies and returns also JSON-encoded responses. We use standard HTTP response codes and verbs.
Before using our API, you need to contact us to get an agency code & API key which are used to authenticate your requests.

Environments#

Sandbox
Host: api-sandbox.chinaticket.online
schemes: https
Production
Host: open.chinaticket.online
schemes: https

Authentication#

STTS Open api use agency code & API key to authenticate requests.
Your API key carries many privileges, so be sure to keep them secure! NEVER share it in publicly accessible areas such as GitHub, client-side code, and so forth.
To authenricate your request, you need to pass timestamp, code, signature in your request headers:
Code: your agency code
Timestamp: the UTC date and time of the request, formatted as a Unix timestamp (the number of elapsed seconds since 1st Jan, 1970)
Signature: sha1(code + timestamp + api_key)
All API requests MUST be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Modified at 2025-06-17 08:12:33
Next
flight
Built with