POST api/v2/coupon/hotel/query

酒店優惠券查詢

Request Information

URI Parameters

None.

Body Parameters

HotelCouponQueryReqContract
NameDescriptionTypeAdditional information
couponcode

優惠券代碼

string

None.

memberguid

會員Guid

string

None.

citycode

城市代碼

string

None.

hotelname

酒店名称

string

None.

checkindate

入住时间

date

None.

staydays

居住天数

integer

None.

roomCounts

房间数量

integer

None.

stars

星级

integer

None.

amount

總價格

decimal number

None.

QueryType

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

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "couponcode": "sample string 1",
  "memberguid": "sample string 2",
  "citycode": "sample string 3",
  "hotelname": "sample string 4",
  "checkindate": "2024-12-23T19:33:22.6862724+08:00",
  "staydays": 6,
  "roomCounts": 7,
  "stars": 8,
  "amount": 9.0,
  "QueryType": 10
}

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

Response Information

Resource Description

酒店優惠券查詢

ReturnResultOfHotelCouponQueryRspContract
NameDescriptionTypeAdditional information
data

HotelCouponQueryRspContract

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"
}