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