POST api/coupon/hotel/query/{couponCode}

酒店优惠券搜索

Request Information

URI Parameters

NameDescriptionTypeAdditional information
couponCode

优惠券编码

string

Required

Body Parameters

搜索协议

HotelCouponReqContract
NameDescriptionTypeAdditional information
plateform

平台

string

None.

country

国家城市

string

None.

hotelname

酒店名称

string

None.

checkindate

入住时间

date

None.

staydays

居住天数

integer

None.

roomCounts

房间数量

integer

None.

stars

星级

integer

None.

totalprice

总金额

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "plateform": "sample string 1",
  "country": "sample string 2",
  "hotelname": "sample string 3",
  "checkindate": "2025-04-24T17:30:48.3261191+08:00",
  "staydays": 5,
  "roomCounts": 6,
  "stars": 7,
  "totalprice": 8.0
}

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

Response Information

Resource Description

酒店优惠券搜索

ReturnResultOfCouponResContract
NameDescriptionTypeAdditional information
data

CouponResContract

None.

code

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

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "eventname": "sample string 1",
    "discountamount": 2.0,
    "discount": 3.0,
    "discountcalctype": 4,
    "discountcalcrule": 5
  },
  "code": 1,
  "message": "sample string 2"
}