POST api/Car/AddActivityExchange
新增使用活动兑换
Request Information
URI Parameters
None.
Body Parameters
AddActivityExchange_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
會員帳號 |
string |
Required |
| MShopID |
购物车明细ID |
globally unique identifier |
Required |
| exchangeSN |
服務兌換序號 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"MShopID": "7d9a345d-82a6-4023-bd41-66e76064ba4e",
"exchangeSN": "sample string 4"
}
text/html
Sample:
{"Ticket":"sample string 1","userId":"sample string 2","MShopID":"7d9a345d-82a6-4023-bd41-66e76064ba4e","exchangeSN":"sample string 4"}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
新增使用活动兑换
AddActivityExchange_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| status |
状态 0 系统异常 1兌換成功 2 已經使用 3 序號不存在 4 不符合兌換規則 5 其他商品已使用此張券 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"ticketVerified": true,
"status": 2
}
text/html
Sample:
{"ticketVerified":true,"status":2}