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

Verify

POST
/ndc/v1/verify
After selecting a suitable quote from the search results, it is necessary to call the secondary interface to verify whether the price is correct, whether there has been a price change, and whether there are no available positions.

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/verify' \
--header 'appKey: <api-key>' \
--header 'appSecret: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "tripType": 1,
    "adultNumber": 2,
    "childNumber": 1,
    "infantNumber": 1,
    "routing": {
        "data": "04:aadd233dsfad3dsfdsafesafetkgkfdlgfojgiojgslfdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddsssssssssssssssssssssssssssssssssssssssssssdddddddddddddddddddddddfffffffffffffffffffffffffff",
        "fromSegments": [
            {
                "marketingCarrier": "CA",
                "depAirport": "PVG",
                "depTime": "201203100300",
                "arrAirport": "NRT",
                "arrTime": "201203101305",
                "seatGrade": "Y",
                "seatClass": "J",
                "flightNumber": "CA123",
                "codeShare": false,
                "aircraftCode": "string",
                "operatingCarrier": "string",
                "operatingFlightNo": "string",
                "segmentNo": 1,
                "stopCities": "string"
            }
        ],
        "retSegments": [
            {
                "marketingCarrier": "CA",
                "depAirport": "PVG",
                "depTime": "201203100300",
                "arrAirport": "NRT",
                "arrTime": "201203101305",
                "seatGrade": "Y",
                "seatClass": "J",
                "flightNumber": "CA123",
                "codeShare": false,
                "aircraftCode": "string",
                "operatingCarrier": "string",
                "operatingFlightNo": "string",
                "segmentNo": 1,
                "stopCities": "string"
            }
        ]
    }
}'
Response Response Example
{
    "status": 0,
    "msg": "success",
    "cerrorCode": "string",
    "cerrorMsg": "string",
    "sessionId": "string",
    "maxSeats": 0,
    "routing": {
        "data": "string",
        "fromSegments": [
            {
                "marketingCarrier": "CA",
                "depAirport": "PVG",
                "depTime": "201203100300",
                "arrAirport": "NRT",
                "arrTime": "201203101305",
                "seatGrade": "Y",
                "seatClass": "J",
                "flightNumber": "CA123",
                "codeShare": false,
                "aircraftCode": "string",
                "operatingCarrier": "string",
                "operatingFlightNo": "string",
                "segmentNo": 1,
                "stopCities": "string"
            }
        ],
        "retSegments": [
            {
                "marketingCarrier": "CA",
                "depAirport": "PVG",
                "depTime": "201203100300",
                "arrAirport": "NRT",
                "arrTime": "201203101305",
                "seatGrade": "Y",
                "seatClass": "J",
                "flightNumber": "CA123",
                "codeShare": false,
                "aircraftCode": "string",
                "operatingCarrier": "string",
                "operatingFlightNo": "string",
                "segmentNo": 1,
                "stopCities": "string"
            }
        ],
        "priceList": [
            {
                "passengerType": 0,
                "publishPrice": 0,
                "price": 0,
                "taxFeeAmount": 0,
                "ruleId": 0
            }
        ],
        "eligibility": "string",
        "validatingCarrier": "string",
        "productType": "string",
        "fareBasis": "string",
        "isUseOtaRule": true,
        "tariffNo": "string",
        "minAge": 0,
        "maxAge": 0,
        "nationality": "string",
        "planCategory": 0,
        "invoiceType": "string",
        "minPassengerCount": 0,
        "maxPassengerCount": 0,
        "formatBaggageDetailList": [
            {
                "segmentNo": 0,
                "flightSeq": 0,
                "passengerType": 0,
                "baggageType": 0,
                "baggagePiece": 0,
                "baggageWeight": 0
            }
        ],
        "refundInfoList": [
            {
                "passengerType": 0,
                "refundType": 0,
                "refundStatus": "string",
                "refundFee": 0,
                "refNoshow": "string",
                "refNoShowCondition": 0,
                "refNoshowFee": 0,
                "conditionList": [
                    {
                        "status": "string",
                        "endMinute": 0,
                        "amount": 0
                    }
                ]
            }
        ],
        "changesInfoList": [
            {
                "passengerType": 0,
                "changesType": 0,
                "changesStatus": "string",
                "changesFee": 0,
                "revNoshow": "string",
                "revNoShowCondition": 0,
                "revNoshowFee": 0,
                "conditionList": [
                    {
                        "status": "string",
                        "endMinute": 0,
                        "amount": 0
                    }
                ]
            }
        ],
        "currency": "string",
        "endorsement": 0,
        "extraInfo": {
            "property1": "string",
            "property2": "string"
        },
        "nationalityType": 0,
        "auxiliaryElements": [
            {
                "productCode": "CHECKINBAGGAGE20KG",
                "auxSegment": {
                    "flightNumber": "string",
                    "depAirport": "string",
                    "depTime": "string",
                    "arrAirport": "string"
                },
                "productType": 0,
                "bookSalePrice": 0,
                "ticketSalePrice": 0,
                "currency": "string",
                "maxLimit": 0,
                "minLimit": 0,
                "auxBaggageElement": {
                    "piece": "string",
                    "weight": "string",
                    "isAllWeight": true
                }
            }
        ]
    }
}
Modified at 2025-12-03 04:24:53
Previous
Search
Next
Booking
Built with