POST api/Bonus/BonusList
取得使用者的紅利明細清單
Request Information
URI Parameters
None.
Body Parameters
BonusList_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
帳號 |
string |
Required |
| timeFrom |
查詢時間起 YYYY/MM/DD hh:mm |
string |
None. |
| timeTo |
查詢時間迄 YYYY/MM/DD hh:mm |
string |
None. |
| page |
頁數 |
integer |
None. |
| forIndex |
判斷是否供首頁使用,若為true僅需傳回紅利總計。 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"timeFrom": "sample string 3",
"timeTo": "sample string 4",
"page": 5,
"forIndex": true
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","timeFrom":"sample string 3","timeTo":"sample string 4","page":5,"forIndex":true}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
取得使用者的紅利明細清單
BonusList_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| total |
紅利總計 |
integer |
None. |
| notice |
注意文字 |
string |
None. |
| pageCount |
總頁數 |
integer |
None. |
| page |
頁數 |
integer |
None. |
| bonusList |
紅利列表 |
Collection of BonusList_bonus |
None. |
| count |
總筆數 |
integer |
None. |
| toExpired |
顯示使用者明年即將到期的紅利總合 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"total": 2,
"notice": "sample string 3",
"pageCount": 4,
"page": 5,
"bonusList": [
{
"bonusDate": "sample string 1",
"bonusName": "sample string 2",
"orderId": "sample string 3",
"bonus": 4,
"endDate": "sample string 5",
"used": 6
},
{
"bonusDate": "sample string 1",
"bonusName": "sample string 2",
"orderId": "sample string 3",
"bonus": 4,
"endDate": "sample string 5",
"used": 6
}
],
"count": 6,
"toExpired": 7
}
text/html
Sample:
{"ticketVerified":true,"total":2,"notice":"sample string 3","pageCount":4,"page":5,"bonusList":[{"bonusDate":"sample string 1","bonusName":"sample string 2","orderId":"sample string 3","bonus":4,"endDate":"sample string 5","used":6},{"bonusDate":"sample string 1","bonusName":"sample string 2","orderId":"sample string 3","bonus":4,"endDate":"sample string 5","used":6}],"count":6,"toExpired":7}