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

酒店优惠券搜索

Request Information

URI Parameters

NameDescriptionTypeAdditional information
couponCode

优惠券编码

string

Required

Body Parameters

搜索协议

LocalTourCouponReqContract
NameDescriptionTypeAdditional information
plateform

平台

string

None.

themeid

主题编号

string

None.

PlanId

计划编号

string

None.

travelercount

人数

integer

None.

departdate

出发日期

date

None.

totalprice

总金额

decimal number

None.

lang

string

None.

Request Formats

application/json, text/json

Sample:
{
  "plateform": "sample string 1",
  "themeid": "sample string 2",
  "PlanId": "sample string 3",
  "travelercount": 4,
  "departdate": "2025-04-24T17:26:37.3694663+08:00",
  "totalprice": 6.0,
  "lang": "sample string 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 'LocalTourCouponReqContract'.

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