POST api/v2/coupon/flight/query

機票優惠券查詢

Request Information

URI Parameters

None.

Body Parameters

FlightCouponQueryReqContract
NameDescriptionTypeAdditional information
segments

行程

Collection of FlightCouponQueryItineraryReqContract

None.

triptype

類型 1:單程 2:往返 3:多點

string

None.

personnumber

總人數

integer

None.

memberguid

會員標識

string

None.

totalamount

總價

decimal number

None.

querydatetime

查詢時間

date

None.

couponcode

優惠券代碼

string

None.

QueryType

查询类型(1.推广码查询)

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "segments": [
    {
      "itinerarygroup": 1,
      "segments": [
        {
          "depairportcode": "sample string 1",
          "depdatetime": "2024-12-23T19:25:22.7498127+08:00",
          "depcountrycode": "sample string 3",
          "arrairportcode": "sample string 4",
          "arrcountrycode": "sample string 5",
          "airline": "sample string 6",
          "farebasis": "sample string 7",
          "cabinclasscode": "sample string 8",
          "cabincode": "sample string 9",
          "segmentgroup": 10
        },
        {
          "depairportcode": "sample string 1",
          "depdatetime": "2024-12-23T19:25:22.7498127+08:00",
          "depcountrycode": "sample string 3",
          "arrairportcode": "sample string 4",
          "arrcountrycode": "sample string 5",
          "airline": "sample string 6",
          "farebasis": "sample string 7",
          "cabinclasscode": "sample string 8",
          "cabincode": "sample string 9",
          "segmentgroup": 10
        }
      ]
    },
    {
      "itinerarygroup": 1,
      "segments": [
        {
          "depairportcode": "sample string 1",
          "depdatetime": "2024-12-23T19:25:22.7498127+08:00",
          "depcountrycode": "sample string 3",
          "arrairportcode": "sample string 4",
          "arrcountrycode": "sample string 5",
          "airline": "sample string 6",
          "farebasis": "sample string 7",
          "cabinclasscode": "sample string 8",
          "cabincode": "sample string 9",
          "segmentgroup": 10
        },
        {
          "depairportcode": "sample string 1",
          "depdatetime": "2024-12-23T19:25:22.7498127+08:00",
          "depcountrycode": "sample string 3",
          "arrairportcode": "sample string 4",
          "arrcountrycode": "sample string 5",
          "airline": "sample string 6",
          "farebasis": "sample string 7",
          "cabinclasscode": "sample string 8",
          "cabincode": "sample string 9",
          "segmentgroup": 10
        }
      ]
    }
  ],
  "triptype": "sample string 1",
  "personnumber": 2,
  "memberguid": "sample string 3",
  "totalamount": 4.0,
  "querydatetime": "2024-12-23T19:25:22.7498127+08:00",
  "couponcode": "sample string 6",
  "QueryType": 7
}

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

Response Information

Resource Description

機票優惠券查詢

ReturnResultOfFlightCouponQueryRspContract
NameDescriptionTypeAdditional information
data

FlightCouponQueryRspContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "isusable": true,
    "couponcode": "sample string 2",
    "schemename": "sample string 3",
    "schemedescript": "sample string 4",
    "orgprice": 5.0,
    "discount": 6.0,
    "price": -1.0
  },
  "code": 1,
  "message": "sample string 2"
}