KingTravel Shopping API
  1. Ticket Booking API
KingTravel Shopping API
ShoppingAPI
  • ShoppingAPI
  • Ticket Booking Process
    • Booking Process
  • Ticket Booking API
    • Search
      POST
    • Verify
      POST
    • Booking
      POST
    • Cancel
      POST
    • Pay
      POST
    • Query
      POST
  • Ticket Booking Notification
    • Notify
      POST
  • Error Codes
    • Search
    • Verify
    • Booking
  • Attachment
    • About Booking AES Encryption
  1. Ticket Booking API

Query

POST
/ndc/v1/query
You can use this method to query order information and ticketing information at any time.

Request

Authorization
API Key
Add parameter in header
appKey
Example:
appKey: ********************
API Key
Add parameter in header
appSecret
Example:
appSecret: ********************
or
Body Params application/jsonRequired

Examples

Responses

🟢200成功
application/json
success
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost:9002/api/ndc/v1/query' \
--header 'appKey: <api-key>' \
--header 'appSecret: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "platFormOrderId": "AF19987663562124",
    "recordNo": "AEDFAC"
}'
Response Response Example
{
    "status": 0,
    "msg": "string",
    "orderInfo": {
        "platFormOrderId": "string",
        "recordNo": "string",
        "status": 0,
        "launchTotalAmount": "string",
        "tripType": 0
    },
    "ticketInfos": [
        {
            "ticketNo": "string",
            "ticketSource": "string",
            "passengerName": "string",
            "flightNumber": "string",
            "pnr": "string",
            "refundStatus": 0,
            "issuePayAccount": "string",
            "issuePayPassword": "string"
        }
    ],
    "flightSegmentRefs": [
        {
            "flightNumber": "string",
            "depAirport": "string",
            "arrAirport": "string",
            "arrTime": "string",
            "depTime": "string",
            "seatClass": "string",
            "seatGrade": "string"
        }
    ],
    "passengers": [
        {
            "passengerName": "string",
            "cardNum": "string",
            "cardType": "string"
        }
    ],
    "passengerBaggages": [
        {
            "passengerName": "XU/JIPENG",
            "payBaggages": [
                {
                    "productCode": "CHECKINBAGGAGE20KG",
                    "flightNumber": "CA123",
                    "depAirport": "PVG",
                    "arrAirport": "NRT",
                    "depTime": "201203100300",
                    "seatClass": "J",
                    "baggagePrices": [
                        {
                            "pkgNumber": 0,
                            "weight": 0,
                            "bookSalePrice": 0,
                            "ticketSalePrice": 0,
                            "airportSalePrice": 0,
                            "refundFee": 0
                        }
                    ]
                }
            ]
        }
    ]
}
Modified at 2025-12-03 04:24:53
Previous
Pay
Next
Notify
Built with