POST api/flight/v2/reserve

创建PNR

Request Information

URI Parameters

None.

Body Parameters

TC_FlightReserveRQContract
NameDescriptionTypeAdditional information
tripType

類型(1=單程,2=雙程,3=多程)

string

None.

PricingKey

查價ID

string

None.

logTraceId

日志鍵

string

None.

platformSource

平臺來源

string

None.

clientCurrency

币种

string

None.

lang

语言

string

None.

routing

行程信息

ReserveRQRoute

None.

contact

聯系人信息

ContactContract

None.

passengers

旅客信息

Collection of PassengerContract

None.

bookingRemarks

備注

Collection of ReserveRemark

None.

Request Formats

application/json, text/json

Sample:
{
  "tripType": "sample string 1",
  "PricingKey": "sample string 2",
  "logTraceId": "sample string 3",
  "platformSource": "sample string 4",
  "clientCurrency": "sample string 5",
  "lang": "sample string 6",
  "routing": {
    "sessionid": 1,
    "adult": 2,
    "child": 3,
    "infant": 4,
    "labour": 5,
    "faretype": 0,
    "segments": [
      {
        "flightNumber": "sample string 1",
        "carrierCode": "sample string 2",
        "aircraftCode": "sample string 3",
        "codeShare": true,
        "fareBasis": "sample string 5",
        "depTime": "2024-12-23T19:43:40.0089559+08:00",
        "depAirportCode": "sample string 7",
        "depTerminal": "sample string 8",
        "arrTime": "2024-12-23T19:43:40.0089559+08:00",
        "arrAirportCode": "sample string 10",
        "arrTerminal": "sample string 11",
        "classCode": 0,
        "cabin": "sample string 12",
        "stopCities": [
          {
            "airportCode": "sample string 1",
            "airportName": "sample string 2"
          },
          {
            "airportCode": "sample string 1",
            "airportName": "sample string 2"
          }
        ],
        "operatorAirline": {
          "flightNumber": "sample string 1",
          "carrierCode": "sample string 2",
          "carrierName": "sample string 3"
        },
        "status": "sample string 13",
        "airReminder": "sample string 14",
        "airTime": 15.1,
        "waitTime": 16.1,
        "key": "sample string 17",
        "baggage": "sample string 18",
        "segmentOrder": 19,
        "segmentGroup": 20,
        "baggageallowance": {
          "unit": 1,
          "unitname": "sample string 1",
          "simplerule": true,
          "url": "sample string 3",
          "remark": "sample string 4",
          "baggages": [
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            },
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            }
          ]
        },
        "carryonallowance": {
          "unit": 1,
          "unitname": "sample string 1",
          "simplerule": true,
          "url": "sample string 3",
          "remark": "sample string 4",
          "baggages": [
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            },
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            }
          ]
        }
      },
      {
        "flightNumber": "sample string 1",
        "carrierCode": "sample string 2",
        "aircraftCode": "sample string 3",
        "codeShare": true,
        "fareBasis": "sample string 5",
        "depTime": "2024-12-23T19:43:40.0089559+08:00",
        "depAirportCode": "sample string 7",
        "depTerminal": "sample string 8",
        "arrTime": "2024-12-23T19:43:40.0089559+08:00",
        "arrAirportCode": "sample string 10",
        "arrTerminal": "sample string 11",
        "classCode": 0,
        "cabin": "sample string 12",
        "stopCities": [
          {
            "airportCode": "sample string 1",
            "airportName": "sample string 2"
          },
          {
            "airportCode": "sample string 1",
            "airportName": "sample string 2"
          }
        ],
        "operatorAirline": {
          "flightNumber": "sample string 1",
          "carrierCode": "sample string 2",
          "carrierName": "sample string 3"
        },
        "status": "sample string 13",
        "airReminder": "sample string 14",
        "airTime": 15.1,
        "waitTime": 16.1,
        "key": "sample string 17",
        "baggage": "sample string 18",
        "segmentOrder": 19,
        "segmentGroup": 20,
        "baggageallowance": {
          "unit": 1,
          "unitname": "sample string 1",
          "simplerule": true,
          "url": "sample string 3",
          "remark": "sample string 4",
          "baggages": [
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            },
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            }
          ]
        },
        "carryonallowance": {
          "unit": 1,
          "unitname": "sample string 1",
          "simplerule": true,
          "url": "sample string 3",
          "remark": "sample string 4",
          "baggages": [
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            },
            {
              "index": 1,
              "isfree": true,
              "remark": "sample string 3"
            }
          ]
        }
      }
    ],
    "searchQuoteInfo": {
      "adultPrice": 1.0,
      "adultTax": 2.0,
      "childPrice": 3.0,
      "childTax": 4.0,
      "infantPrice": 5.0,
      "infantTax": 6.0
    },
    "searchaccountid": 6,
    "bookingaccountid": 7,
    "platingCarrier": "sample string 8"
  },
  "contact": {
    "prefix": "sample string 1",
    "address": "sample string 2",
    "email": "sample string 3",
    "mobile": "sample string 4",
    "firstName": "sample string 5",
    "lastName": "sample string 6",
    "postCode": "sample string 7",
    "city": "sample string 8",
    "countryCode": "sample string 9",
    "otherPhone": "sample string 10",
    "provinceState": "sample string 11"
  },
  "passengers": [
    {
      "agetType": 0,
      "birthDay": "2024-12-23T19:43:40.0089559+08:00",
      "cardExpired": "sample string 1",
      "cardIssuePlace": "sample string 2",
      "cardNum": "sample string 3",
      "cardType": "sample string 4",
      "email": "sample string 5",
      "gender": "sample string 6",
      "firstName": "sample string 7",
      "lastName": "sample string 8",
      "nationality": "sample string 9",
      "phoneNO": "sample string 10",
      "ssrRequests": [
        {
          "type": "sample string 1",
          "freeText": "sample string 2"
        },
        {
          "type": "sample string 1",
          "freeText": "sample string 2"
        }
      ],
      "seatType": "sample string 11",
      "loyaltyCard": {
        "supplierCode": "sample string 1",
        "cardNumber": "sample string 2",
        "operatedBy": [
          "sample string 1",
          "sample string 2"
        ]
      },
      "prefix": "sample string 12",
      "cardIssued": "sample string 13"
    },
    {
      "agetType": 0,
      "birthDay": "2024-12-23T19:43:40.0089559+08:00",
      "cardExpired": "sample string 1",
      "cardIssuePlace": "sample string 2",
      "cardNum": "sample string 3",
      "cardType": "sample string 4",
      "email": "sample string 5",
      "gender": "sample string 6",
      "firstName": "sample string 7",
      "lastName": "sample string 8",
      "nationality": "sample string 9",
      "phoneNO": "sample string 10",
      "ssrRequests": [
        {
          "type": "sample string 1",
          "freeText": "sample string 2"
        },
        {
          "type": "sample string 1",
          "freeText": "sample string 2"
        }
      ],
      "seatType": "sample string 11",
      "loyaltyCard": {
        "supplierCode": "sample string 1",
        "cardNumber": "sample string 2",
        "operatedBy": [
          "sample string 1",
          "sample string 2"
        ]
      },
      "prefix": "sample string 12",
      "cardIssued": "sample string 13"
    }
  ],
  "bookingRemarks": [
    {
      "Type": 0,
      "Remark": "sample string 1"
    },
    {
      "Type": 0,
      "Remark": "sample string 1"
    }
  ]
}

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 'TC_FlightReserveRQContract'.

Response Information

Resource Description

创建PNR

ReturnResultOfTC_FlightReserveRSContract
NameDescriptionTypeAdditional information
data

TC_FlightReserveRSContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "reserveId": "sample string 1",
    "logTraceId": "sample string 2",
    "flightPNR": "sample string 3",
    "urCode": "sample string 4",
    "maxSeats": 5,
    "orderNO": "sample string 6",
    "lasttkdate": "sample string 7",
    "responseMessages": [
      "sample string 1",
      "sample string 2"
    ],
    "routing": {
      "adultOrgPrice": 1.0,
      "adultOrgTax": 2.0,
      "childOrgPrice": 3.0,
      "childOrgTax": 4.0,
      "infantOrgPrice": 5.0,
      "infantOrgTax": 6.0,
      "data": "sample string 7",
      "refund": "sample string 8",
      "endorse": "sample string 9",
      "other": "sample string 10",
      "fareRuleKey": "sample string 28",
      "priceCalculations": [
        {
          "itemtype": "sample string 1",
          "adultprice": 2.0,
          "adulttax": 3.0,
          "childprice": 4.0,
          "childtax": 5.0,
          "infantprice": 6.0,
          "infanttax": 7.0,
          "remark": "sample string 8",
          "displayorder": 9
        },
        {
          "itemtype": "sample string 1",
          "adultprice": 2.0,
          "adulttax": 3.0,
          "childprice": 4.0,
          "childtax": 5.0,
          "infantprice": 6.0,
          "infanttax": 7.0,
          "remark": "sample string 8",
          "displayorder": 9
        }
      ],
      "itinerary": [
        {
          "flightNumber": "sample string 1",
          "carrierCode": "sample string 2",
          "carrierName": "sample string 3",
          "platingCarrierCode": "sample string 4",
          "platingCarrierName": "sample string 5",
          "depTime": "2024-12-23T19:43:40.1339867+08:00",
          "depAirportCode": "sample string 7",
          "depAirportName": "sample string 8",
          "depCityCode": "sample string 9",
          "depCityName": "sample string 10",
          "arrTime": "2024-12-23T19:43:40.1339867+08:00",
          "arrAirportCode": "sample string 12",
          "arrAirportName": "sample string 13",
          "arrCityCode": "sample string 14",
          "arrCityName": "sample string 15",
          "classCode": 0,
          "className": "sample string 16",
          "seatCount": 17,
          "travelTime": 18.1,
          "stopCount": 19,
          "aircraftCode": "sample string 20",
          "overDay": "sample string 21",
          "segmentGroup": 22,
          "segments": [
            {
              "carrierName": "sample string 1",
              "seatCount": 2,
              "depTimeZone": 3.1,
              "depAirportName": "sample string 4",
              "depCityCode": "sample string 5",
              "depCityName": "sample string 6",
              "arrTimeZone": 7.1,
              "arrAirportName": "sample string 8",
              "arrCityCode": "sample string 9",
              "arrCityName": "sample string 10",
              "className": "sample string 11",
              "overDay": null,
              "flightNumber": "sample string 12",
              "carrierCode": "sample string 13",
              "aircraftCode": "sample string 14",
              "codeShare": true,
              "fareBasis": "sample string 16",
              "depTime": "2024-12-23T19:43:40.1339867+08:00",
              "depAirportCode": "sample string 18",
              "depTerminal": "sample string 19",
              "arrTime": "2024-12-23T19:43:40.1339867+08:00",
              "arrAirportCode": "sample string 21",
              "arrTerminal": "sample string 22",
              "classCode": 0,
              "cabin": "sample string 23",
              "stopCities": [
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                },
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                }
              ],
              "operatorAirline": {
                "flightNumber": "sample string 1",
                "carrierCode": "sample string 2",
                "carrierName": "sample string 3"
              },
              "status": "sample string 24",
              "airReminder": "sample string 25",
              "airTime": 26.1,
              "waitTime": 27.1,
              "key": "sample string 28",
              "baggage": "sample string 29",
              "segmentOrder": 30,
              "segmentGroup": 31,
              "baggageallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              },
              "carryonallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              }
            },
            {
              "carrierName": "sample string 1",
              "seatCount": 2,
              "depTimeZone": 3.1,
              "depAirportName": "sample string 4",
              "depCityCode": "sample string 5",
              "depCityName": "sample string 6",
              "arrTimeZone": 7.1,
              "arrAirportName": "sample string 8",
              "arrCityCode": "sample string 9",
              "arrCityName": "sample string 10",
              "className": "sample string 11",
              "overDay": null,
              "flightNumber": "sample string 12",
              "carrierCode": "sample string 13",
              "aircraftCode": "sample string 14",
              "codeShare": true,
              "fareBasis": "sample string 16",
              "depTime": "2024-12-23T19:43:40.1339867+08:00",
              "depAirportCode": "sample string 18",
              "depTerminal": "sample string 19",
              "arrTime": "2024-12-23T19:43:40.1339867+08:00",
              "arrAirportCode": "sample string 21",
              "arrTerminal": "sample string 22",
              "classCode": 0,
              "cabin": "sample string 23",
              "stopCities": [
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                },
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                }
              ],
              "operatorAirline": {
                "flightNumber": "sample string 1",
                "carrierCode": "sample string 2",
                "carrierName": "sample string 3"
              },
              "status": "sample string 24",
              "airReminder": "sample string 25",
              "airTime": 26.1,
              "waitTime": 27.1,
              "key": "sample string 28",
              "baggage": "sample string 29",
              "segmentOrder": 30,
              "segmentGroup": 31,
              "baggageallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              },
              "carryonallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              }
            }
          ]
        },
        {
          "flightNumber": "sample string 1",
          "carrierCode": "sample string 2",
          "carrierName": "sample string 3",
          "platingCarrierCode": "sample string 4",
          "platingCarrierName": "sample string 5",
          "depTime": "2024-12-23T19:43:40.1339867+08:00",
          "depAirportCode": "sample string 7",
          "depAirportName": "sample string 8",
          "depCityCode": "sample string 9",
          "depCityName": "sample string 10",
          "arrTime": "2024-12-23T19:43:40.1339867+08:00",
          "arrAirportCode": "sample string 12",
          "arrAirportName": "sample string 13",
          "arrCityCode": "sample string 14",
          "arrCityName": "sample string 15",
          "classCode": 0,
          "className": "sample string 16",
          "seatCount": 17,
          "travelTime": 18.1,
          "stopCount": 19,
          "aircraftCode": "sample string 20",
          "overDay": "sample string 21",
          "segmentGroup": 22,
          "segments": [
            {
              "carrierName": "sample string 1",
              "seatCount": 2,
              "depTimeZone": 3.1,
              "depAirportName": "sample string 4",
              "depCityCode": "sample string 5",
              "depCityName": "sample string 6",
              "arrTimeZone": 7.1,
              "arrAirportName": "sample string 8",
              "arrCityCode": "sample string 9",
              "arrCityName": "sample string 10",
              "className": "sample string 11",
              "overDay": null,
              "flightNumber": "sample string 12",
              "carrierCode": "sample string 13",
              "aircraftCode": "sample string 14",
              "codeShare": true,
              "fareBasis": "sample string 16",
              "depTime": "2024-12-23T19:43:40.1339867+08:00",
              "depAirportCode": "sample string 18",
              "depTerminal": "sample string 19",
              "arrTime": "2024-12-23T19:43:40.1339867+08:00",
              "arrAirportCode": "sample string 21",
              "arrTerminal": "sample string 22",
              "classCode": 0,
              "cabin": "sample string 23",
              "stopCities": [
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                },
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                }
              ],
              "operatorAirline": {
                "flightNumber": "sample string 1",
                "carrierCode": "sample string 2",
                "carrierName": "sample string 3"
              },
              "status": "sample string 24",
              "airReminder": "sample string 25",
              "airTime": 26.1,
              "waitTime": 27.1,
              "key": "sample string 28",
              "baggage": "sample string 29",
              "segmentOrder": 30,
              "segmentGroup": 31,
              "baggageallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              },
              "carryonallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              }
            },
            {
              "carrierName": "sample string 1",
              "seatCount": 2,
              "depTimeZone": 3.1,
              "depAirportName": "sample string 4",
              "depCityCode": "sample string 5",
              "depCityName": "sample string 6",
              "arrTimeZone": 7.1,
              "arrAirportName": "sample string 8",
              "arrCityCode": "sample string 9",
              "arrCityName": "sample string 10",
              "className": "sample string 11",
              "overDay": null,
              "flightNumber": "sample string 12",
              "carrierCode": "sample string 13",
              "aircraftCode": "sample string 14",
              "codeShare": true,
              "fareBasis": "sample string 16",
              "depTime": "2024-12-23T19:43:40.1339867+08:00",
              "depAirportCode": "sample string 18",
              "depTerminal": "sample string 19",
              "arrTime": "2024-12-23T19:43:40.1339867+08:00",
              "arrAirportCode": "sample string 21",
              "arrTerminal": "sample string 22",
              "classCode": 0,
              "cabin": "sample string 23",
              "stopCities": [
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                },
                {
                  "airportCode": "sample string 1",
                  "airportName": "sample string 2"
                }
              ],
              "operatorAirline": {
                "flightNumber": "sample string 1",
                "carrierCode": "sample string 2",
                "carrierName": "sample string 3"
              },
              "status": "sample string 24",
              "airReminder": "sample string 25",
              "airTime": 26.1,
              "waitTime": 27.1,
              "key": "sample string 28",
              "baggage": "sample string 29",
              "segmentOrder": 30,
              "segmentGroup": 31,
              "baggageallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              },
              "carryonallowance": {
                "unit": 1,
                "unitname": "sample string 1",
                "simplerule": true,
                "url": "sample string 3",
                "remark": "sample string 4",
                "baggages": [
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  },
                  {
                    "index": 1,
                    "isfree": true,
                    "remark": "sample string 3"
                  }
                ]
              }
            }
          ]
        }
      ],
      "searchQuoteInfo": {
        "adultPrice": 1.0,
        "adultTax": 2.0,
        "childPrice": 3.0,
        "childTax": 4.0,
        "infantPrice": 5.0,
        "infantTax": 6.0
      },
      "source": "sample string 11",
      "sessionId": 12,
      "adult": 13,
      "child": 14,
      "infant": 15,
      "labour": 16,
      "adultPrice": 17.0,
      "adultTax": 18.0,
      "childPrice": 19.0,
      "childTax": 20.0,
      "infantPrice": 21.0,
      "infantTax": 22.0,
      "fareType": 0,
      "farePrice": 2206.0,
      "searchAccountId": 23,
      "bookingAccountId": 24,
      "isCacheData": true,
      "platingCarrier": "sample string 26"
    }
  },
  "code": 1,
  "message": "sample string 2"
}