POST api/v2/coupon/tour/query
旅行團優惠券查詢
Request Information
URI Parameters
None.
Body Parameters
TourCouponQueryReqContractName | Description | Type | Additional information |
---|---|---|---|
couponcode |
優惠券代碼 |
string |
None. |
memberguid |
會員Guid |
string |
None. |
citycode |
城市代碼 |
string |
None. |
countrycode |
國家代碼 |
string |
None. |
attrid |
屬性ID |
Collection of string |
None. |
tourid |
團編號 |
string |
None. |
departuredate |
出發日期 |
date |
None. |
querydatetime |
查詢日期,當前日期 |
date |
None. |
personnumber |
人數 |
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", "countrycode": "sample string 4", "attrid": [ "sample string 1", "sample string 2" ], "tourid": "sample string 5", "departuredate": "2024-12-23T19:56:44.2056885+08:00", "querydatetime": "2024-12-23T19:56:44.2056885+08:00", "personnumber": 8, "amount": 9.0, "QueryType": 10 }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
旅行團優惠券查詢
ReturnResultOfTourCouponQueryRspContractName | Description | Type | Additional information |
---|---|---|---|
data | TourCouponQueryRspContract |
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" }