POST api/Coupon/CouponList
折價券明細
Request Information
URI Parameters
None.
Body Parameters
CouponList_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
帳號 |
string |
Required |
| page |
頁數 |
integer |
None. |
| forIndex |
供首頁使用 |
boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"page": 3,
"forIndex": true
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","page":3,"forIndex":true}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
折價券明細
CouponList_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| pageCount |
總頁數 |
integer |
None. |
| page |
頁數 |
integer |
None. |
| couponList |
折價券列表 |
Collection of CouponList_Coupon |
None. |
| count |
折價券筆數 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"pageCount": 2,
"page": 3,
"couponList": [
{
"couponName": "sample string 1",
"couponDescription": "sample string 2",
"href": "sample string 3",
"couponAmount": "sample string 4",
"timeFrom": "sample string 5",
"timeTo": "sample string 6"
},
{
"couponName": "sample string 1",
"couponDescription": "sample string 2",
"href": "sample string 3",
"couponAmount": "sample string 4",
"timeFrom": "sample string 5",
"timeTo": "sample string 6"
}
],
"count": 4
}
text/html
Sample:
{"ticketVerified":true,"pageCount":2,"page":3,"couponList":[{"couponName":"sample string 1","couponDescription":"sample string 2","href":"sample string 3","couponAmount":"sample string 4","timeFrom":"sample string 5","timeTo":"sample string 6"},{"couponName":"sample string 1","couponDescription":"sample string 2","href":"sample string 3","couponAmount":"sample string 4","timeFrom":"sample string 5","timeTo":"sample string 6"}],"count":4}