POST api/v2/coupon/daytour/query

當地享樂優惠券查詢

Request Information

URI Parameters

None.

Body Parameters

DaytourCouponQueryReqContract
NameDescriptionTypeAdditional information
couponcode

優惠券代碼

string

None.

memberguid

會員Guid

string

None.

querydatetime

查詢日期,當前日期

date

None.

price

總價格

decimal number

None.

items

主題

Collection of DaytourCouponQueryReqExtContract

None.

QueryType

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

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "couponcode": "sample string 1",
  "memberguid": "sample string 2",
  "querydatetime": "2024-12-23T19:47:00.1387898+08:00",
  "price": 16.0,
  "items": [
    {
      "departuredate": "2024-12-23T19:47:00.1387898+08:00",
      "id": "sample string 2",
      "citycode": "sample string 3",
      "countrycode": "sample string 4",
      "classid": "sample string 5",
      "tourid": "sample string 6",
      "personnumber": 7,
      "amount": 8.0
    },
    {
      "departuredate": "2024-12-23T19:47:00.1387898+08:00",
      "id": "sample string 2",
      "citycode": "sample string 3",
      "countrycode": "sample string 4",
      "classid": "sample string 5",
      "tourid": "sample string 6",
      "personnumber": 7,
      "amount": 8.0
    }
  ],
  "QueryType": 4
}

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

Response Information

Resource Description

當地享樂優惠券查詢

ReturnResultOfDaytourCouponQueryRspContract
NameDescriptionTypeAdditional information
data

DaytourCouponQueryRspContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "couponcode": "sample string 1",
    "isusable": true,
    "Discount": 12.0,
    "amount": -2.0,
    "orgamount": 10.0,
    "items": [
      {
        "id": "sample string 1",
        "schemename": "sample string 2",
        "schemedescript": "sample string 3",
        "isusable": true,
        "orgprice": 5.0,
        "discount": 6.0,
        "price": -1.0
      },
      {
        "id": "sample string 1",
        "schemename": "sample string 2",
        "schemedescript": "sample string 3",
        "isusable": true,
        "orgprice": 5.0,
        "discount": 6.0,
        "price": -1.0
      }
    ]
  },
  "code": 1,
  "message": "sample string 2"
}