POST api/scoot/search

Scoot搜索

Request Information

URI Parameters

None.

Body Parameters

FlightSearchRqContract
NameDescriptionTypeAdditional information
filterinfo

篩選

FilterInfo

None.

orderinfo

排序

OrderInfo

None.

lang

语言(繁体:zh-hk,简体:zh-cn,英文:en-us)

string

None.

pagesize

每頁顯示記錄數

integer

None.

pagenumber

當前頁碼

integer

None.

resulttype

結果類型(0=相同航空公司+航班號+等級組合,1=相同航空公司+航班號,2=相同航班+價格)

integer

None.

guid

(add by leason 2016.08.01)

string

None.

isdisplayairlineshortname

boolean

None.

enablesummary

是否需要統計信息

boolean

None.

multistoptravel

多点旅行

Collection of MultiStopContract

None.

multicitytravel

MultiCity

MultiCity

None.

isorigin

是否返回原始數據(true=返回routing ,extend數據,不對統計、排序、分頁進行處理,false=返回處理后的結果)

boolean

None.

pricetype

價格類型(0=成人價,1=成人價+成人稅,2=總價格(價格*人數))

integer

None.

cid

string

None.

nationalcode

string

None.

cityCode

string

None.

adult

成人数量

integer

None.

bolprivatefareonly

僅出私有運價

boolean

None.

bolpublishfareonly

僅出公布運價

boolean

None.

cabinclass

艙位等级

TypeCabinClass

None.

child

兒童数量

integer

None.

clientcurrency

货币

string

None.

fromcity

出发地

string

None.

fromdate

出发时间

date

None.

fromdaysafter

提前出发天数

integer

None.

fromdaysbefore

延迟出发天数

integer

None.

FromHourWindow

提前/延迟出发小時

integer

None.

infant

婴儿数量

integer

None.

isdirectflightonly

是否直飞

boolean

None.

logTrackGuid

string

None.

lpermittedcarriers

选择航班

Collection of string

None.

lprohibitedcarriers

排除航班

Collection of string

None.

maxrecord

最大显示记录数

integer

None.

platformsource

平台来源(站点)

string

None.

retdate

返程时间

date

None.

retdaysafter

返程延迟天数

integer

None.

retdaysbefore

返程提前天数

integer

None.

RetHourWindow

提前/延迟出发小時

integer

None.

sourcemarkupby

R=Rate(百份比),A=Amount(金額)

string

None.

sourcemarkupamt

數值

decimal number

None.

chargeamt

數值

string

None.

chargeby

R=Rate(百份比),A=Amount(金額)

string

None.

source

接口来源(可選項uapi、own、amadeus...)

string

None.

overridepcc

string

None.

tocity

目的地

string

None.

triptype

行程类型(单程:1,双程:2,多程:3)

string

None.

connectionpoints

中转站数

integer

None.

ismultiroundtrip

兩點以雙程形式展示

boolean

None.

fromairportcityqualifier

AirportCityQualifier

None.

toairportcityqualifier

AirportCityQualifier

None.

labour

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "filterinfo": {
    "pricerange": [
      1.0,
      2.0
    ],
    "segmentcounts": [
      1,
      2
    ],
    "carriers": [
      "sample string 1",
      "sample string 2"
    ],
    "deptimes": [
      0,
      0
    ],
    "cabincodes": [
      0,
      0
    ],
    "departtimes": [
      "2025-04-24T16:33:24.5364925+08:00",
      "2025-04-24T16:33:24.5364925+08:00"
    ],
    "arrtimes": [
      "2025-04-24T16:33:24.5364925+08:00",
      "2025-04-24T16:33:24.5364925+08:00"
    ],
    "airtimes": [
      1,
      2
    ],
    "retdeparttimes": [
      "2025-04-24T16:33:24.5364925+08:00",
      "2025-04-24T16:33:24.5364925+08:00"
    ],
    "retarrtimes": [
      "2025-04-24T16:33:24.5364925+08:00",
      "2025-04-24T16:33:24.5364925+08:00"
    ],
    "retairtimes": [
      1,
      2
    ]
  },
  "orderinfo": {
    "order": 1,
    "ordertype": 0
  },
  "lang": "sample string 1",
  "pagesize": 2,
  "pagenumber": 3,
  "resulttype": 4,
  "guid": "sample string 5",
  "isdisplayairlineshortname": true,
  "enablesummary": true,
  "multistoptravel": [
    {
      "fromcity": "sample string 1",
      "tocity": "sample string 2",
      "fromdate": "2025-04-24T16:33:24.5364925+08:00",
      "fromairportcityqualifier": 0,
      "toairportcityqualifier": 0
    },
    {
      "fromcity": "sample string 1",
      "tocity": "sample string 2",
      "fromdate": "2025-04-24T16:33:24.5364925+08:00",
      "fromairportcityqualifier": 0,
      "toairportcityqualifier": 0
    }
  ],
  "multicitytravel": {
    "fromcities": [
      "sample string 1",
      "sample string 2"
    ],
    "tocities": [
      "sample string 1",
      "sample string 2"
    ]
  },
  "isorigin": true,
  "pricetype": 9,
  "cid": "sample string 10",
  "nationalcode": "sample string 11",
  "cityCode": "sample string 12",
  "adult": 13,
  "bolprivatefareonly": true,
  "bolpublishfareonly": true,
  "cabinclass": 0,
  "child": 16,
  "clientcurrency": "sample string 17",
  "fromcity": "sample string 18",
  "fromdate": "2025-04-24T16:33:24.5364925+08:00",
  "fromdaysafter": 20,
  "fromdaysbefore": 21,
  "FromHourWindow": 22,
  "infant": 23,
  "isdirectflightonly": true,
  "logTrackGuid": "sample string 25",
  "lpermittedcarriers": [
    "sample string 1",
    "sample string 2"
  ],
  "lprohibitedcarriers": [
    "sample string 1",
    "sample string 2"
  ],
  "maxrecord": 26,
  "platformsource": "sample string 27",
  "retdate": "2025-04-24T16:33:24.5364925+08:00",
  "retdaysafter": 28,
  "retdaysbefore": 29,
  "RetHourWindow": 30,
  "sourcemarkupby": "sample string 31",
  "sourcemarkupamt": 32.0,
  "chargeamt": "sample string 33",
  "chargeby": "sample string 34",
  "source": "sample string 35",
  "overridepcc": "sample string 36",
  "tocity": "sample string 37",
  "triptype": "sample string 38",
  "connectionpoints": 39,
  "ismultiroundtrip": true,
  "fromairportcityqualifier": 0,
  "toairportcityqualifier": 0,
  "labour": 41
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FlightSearchRqContract'.

Response Information

Resource Description

Scoot搜索

ReturnResultOfSC_SearchRSContact
NameDescriptionTypeAdditional information
data

SC_SearchRSContact

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "searchId": "sample string 1",
    "adult": 2,
    "child": 3,
    "infant": 4,
    "journeys": [
      {
        "journeySellKey": "sample string 1",
        "sessionId": 2,
        "segments": [
          {
            "carrier": "sample string 1",
            "flightNumber": "sample string 2",
            "depAirport": "sample string 3",
            "depTime": "sample string 4",
            "depTimeZone": "sample string 5",
            "arrAirport": "sample string 6",
            "arrTime": "sample string 7",
            "arrTimeZone": "sample string 8",
            "stopCities": "sample string 9",
            "codeShare": true,
            "aircraftCode": "sample string 11",
            "airTime": "sample string 12",
            "marketAirlines": "sample string 13",
            "operatorAirlines": "sample string 14",
            "depTerminal": "sample string 15",
            "arrTerminal": "sample string 16",
            "fares": [
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              },
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              }
            ]
          },
          {
            "carrier": "sample string 1",
            "flightNumber": "sample string 2",
            "depAirport": "sample string 3",
            "depTime": "sample string 4",
            "depTimeZone": "sample string 5",
            "arrAirport": "sample string 6",
            "arrTime": "sample string 7",
            "arrTimeZone": "sample string 8",
            "stopCities": "sample string 9",
            "codeShare": true,
            "aircraftCode": "sample string 11",
            "airTime": "sample string 12",
            "marketAirlines": "sample string 13",
            "operatorAirlines": "sample string 14",
            "depTerminal": "sample string 15",
            "arrTerminal": "sample string 16",
            "fares": [
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              },
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              }
            ]
          }
        ],
        "segmentGroup": 3
      },
      {
        "journeySellKey": "sample string 1",
        "sessionId": 2,
        "segments": [
          {
            "carrier": "sample string 1",
            "flightNumber": "sample string 2",
            "depAirport": "sample string 3",
            "depTime": "sample string 4",
            "depTimeZone": "sample string 5",
            "arrAirport": "sample string 6",
            "arrTime": "sample string 7",
            "arrTimeZone": "sample string 8",
            "stopCities": "sample string 9",
            "codeShare": true,
            "aircraftCode": "sample string 11",
            "airTime": "sample string 12",
            "marketAirlines": "sample string 13",
            "operatorAirlines": "sample string 14",
            "depTerminal": "sample string 15",
            "arrTerminal": "sample string 16",
            "fares": [
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              },
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              }
            ]
          },
          {
            "carrier": "sample string 1",
            "flightNumber": "sample string 2",
            "depAirport": "sample string 3",
            "depTime": "sample string 4",
            "depTimeZone": "sample string 5",
            "arrAirport": "sample string 6",
            "arrTime": "sample string 7",
            "arrTimeZone": "sample string 8",
            "stopCities": "sample string 9",
            "codeShare": true,
            "aircraftCode": "sample string 11",
            "airTime": "sample string 12",
            "marketAirlines": "sample string 13",
            "operatorAirlines": "sample string 14",
            "depTerminal": "sample string 15",
            "arrTerminal": "sample string 16",
            "fares": [
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              },
              {
                "cabin": "sample string 1",
                "cabinClass": 0,
                "seatCount": 2,
                "adultPrice": 3.0,
                "adultOrgPrice": 4.0,
                "adultTax": 5.0,
                "adultOrgTax": 6.0,
                "childPrice": 7.0,
                "childOrgPrice": 8.0,
                "childTax": 9.0,
                "childOrgTax": 10.0,
                "infantPrice": 11.0,
                "infantOrgPrice": 12.0,
                "infantTax": 13.0,
                "infantOrgTax": 14.0,
                "farePrice": 15.0,
                "fareSellKey": "sample string 16",
                "faresequence": "sample string 17"
              }
            ]
          }
        ],
        "segmentGroup": 3
      }
    ],
    "extendInfo": {
      "airportlist": [
        {
          "code": "sample string 1",
          "name": "sample string 2",
          "citycode": "sample string 3",
          "cityname": "sample string 4",
          "countrycode": "sample string 5",
          "countryname": "sample string 6"
        },
        {
          "code": "sample string 1",
          "name": "sample string 2",
          "citycode": "sample string 3",
          "cityname": "sample string 4",
          "countrycode": "sample string 5",
          "countryname": "sample string 6"
        }
      ],
      "carrierlist": [
        {
          "code": "sample string 1",
          "name": "sample string 2",
          "logo": "sample string 3"
        },
        {
          "code": "sample string 1",
          "name": "sample string 2",
          "logo": "sample string 3"
        }
      ],
      "cabinlist": [
        {
          "cabincode": 0,
          "cabinname": "sample string 1"
        },
        {
          "cabincode": 0,
          "cabinname": "sample string 1"
        }
      ],
      "providerlist": [
        {
          "providerCode": "sample string 1",
          "count": 2
        },
        {
          "providerCode": "sample string 1",
          "count": 2
        }
      ]
    }
  },
  "code": 1,
  "message": "sample string 2"
}