POST api/Car/UpCar
更新購物車商品
Request Information
URI Parameters
None.
Body Parameters
UpCar_Input| Name | Description | Type | Additional information |
|---|---|---|---|
| Ticket |
身份票據 |
string |
Required |
| userId |
會員帳號 |
string |
Required |
| productNumber |
商品編號 |
string |
Required |
| amount |
數量 |
integer |
Required |
| type |
更新模式 insert:新增 delete:刪除 update:更新 deleteparent 刪除子商品 coupon 新增購物車折價卷 insertcarpluspro 購物車加購 |
string |
Required |
| couponId |
折價卷編號 |
globally unique identifier |
None. |
| couponNumber |
折價券序號 |
string |
None. |
| UpType |
類型 |
UpCarTyp |
None. |
| ProParents |
子商品(1 贈品 2 替換品(配件) 3 選購品(加購)4 服務加購 ) |
Collection of UpCar_ProParent |
None. |
| MShopID |
購物車id |
globally unique identifier |
None. |
| ServiceShipmentsType |
服務方式 1 HoHo收送 0 專人到府 3 線上服務 5 定期到付 |
integer |
None. |
| ServiceCityNo |
服務縣市 |
integer |
None. |
| ServiceAreaNo |
服務鄉鎮市區 |
integer |
None. |
| ServiceSpecs |
服务规格 |
Collection of UpCar_ServiceSpec |
None. |
| DocIds |
上傳文檔ID |
Collection of globally unique identifier |
None. |
| IsToScrap |
是否回收廢四機 |
boolean |
None. |
| ServiceSalePros |
加購服务活动商品 |
Collection of UpCar_ServiceSalePro |
None. |
| PlusProCode |
購物車加購品編號(購物車頁面加購商品必填) |
string |
None. |
| gifts |
贈品 |
Collection of Car_Update_gifts |
None. |
| giftsConfirm |
贈品不足仍結帳 |
boolean |
None. |
| ServiceInterval |
服務定期购周期(定期购商品加入购物车必填) |
integer |
None. |
| cycle |
服務定期购循環次數(默認=12) |
integer |
None. |
Request Formats
application/json, text/json
{
"Ticket": "sample string 1",
"userId": "sample string 2",
"productNumber": "sample string 3",
"amount": 4,
"type": "sample string 5",
"couponId": "c2a14138-d3b2-45ca-af10-bc030e14ad7d",
"couponNumber": "sample string 6",
"UpType": 0,
"ProParents": [
{
"ProNo": "sample string 1",
"Qty": 2,
"ProType": 3,
"PlusProCode": "sample string 4",
"GiftID": "sample string 5",
"ServiceCityNo": 1,
"ServiceAreaNo": 1,
"ServiceSpecs": [
{
"ServiceSpec": "sample string 1",
"Qty": 2,
"Questions": "sample string 3"
},
{
"ServiceSpec": "sample string 1",
"Qty": 2,
"Questions": "sample string 3"
}
],
"DocIds": [
"65d20ad2-b632-4091-80cb-eb58ffda7e05",
"dcdeeb44-3367-4679-99db-fec14e9d6b81"
]
},
{
"ProNo": "sample string 1",
"Qty": 2,
"ProType": 3,
"PlusProCode": "sample string 4",
"GiftID": "sample string 5",
"ServiceCityNo": 1,
"ServiceAreaNo": 1,
"ServiceSpecs": [
{
"ServiceSpec": "sample string 1",
"Qty": 2,
"Questions": "sample string 3"
},
{
"ServiceSpec": "sample string 1",
"Qty": 2,
"Questions": "sample string 3"
}
],
"DocIds": [
"65d20ad2-b632-4091-80cb-eb58ffda7e05",
"dcdeeb44-3367-4679-99db-fec14e9d6b81"
]
}
],
"MShopID": "f777095e-2c52-4503-a43a-fb6b89a89655",
"ServiceShipmentsType": 1,
"ServiceCityNo": 1,
"ServiceAreaNo": 1,
"ServiceSpecs": [
{
"ServiceSpec": "sample string 1",
"Qty": 2,
"Questions": "sample string 3"
},
{
"ServiceSpec": "sample string 1",
"Qty": 2,
"Questions": "sample string 3"
}
],
"DocIds": [
"9ee68ea1-5790-4a4e-9f9c-cc9bba74bf78",
"07c7573a-def0-4136-b0ae-3eb10b48f42d"
],
"IsToScrap": true,
"ServiceSalePros": [
{
"SaleID": "56c980a9-2e13-4562-a724-85ac4af7271e",
"ServiceAreaNo": "sample string 2",
"ServiceShipmentsType": 3,
"ProType": 4,
"GroupNo": "sample string 5"
},
{
"SaleID": "56c980a9-2e13-4562-a724-85ac4af7271e",
"ServiceAreaNo": "sample string 2",
"ServiceShipmentsType": 3,
"ProType": 4,
"GroupNo": "sample string 5"
}
],
"PlusProCode": "sample string 8",
"gifts": [
{
"MShopID": "sample string 1",
"ProNo": "sample string 2",
"productName": "sample string 3",
"amount": 4
},
{
"MShopID": "sample string 1",
"ProNo": "sample string 2",
"productName": "sample string 3",
"amount": 4
}
],
"giftsConfirm": true,
"ServiceInterval": 1,
"cycle": 1
}
text/html
{"Ticket":"sample string 1","userId":"sample string 2","productNumber":"sample string 3","amount":4,"type":"sample string 5","couponId":"c2a14138-d3b2-45ca-af10-bc030e14ad7d","couponNumber":"sample string 6","UpType":0,"ProParents":[{"ProNo":"sample string 1","Qty":2,"ProType":3,"PlusProCode":"sample string 4","GiftID":"sample string 5","ServiceCityNo":1,"ServiceAreaNo":1,"ServiceSpecs":[{"ServiceSpec":"sample string 1","Qty":2,"Questions":"sample string 3"},{"ServiceSpec":"sample string 1","Qty":2,"Questions":"sample string 3"}],"DocIds":["65d20ad2-b632-4091-80cb-eb58ffda7e05","dcdeeb44-3367-4679-99db-fec14e9d6b81"]},{"ProNo":"sample string 1","Qty":2,"ProType":3,"PlusProCode":"sample string 4","GiftID":"sample string 5","ServiceCityNo":1,"ServiceAreaNo":1,"ServiceSpecs":[{"ServiceSpec":"sample string 1","Qty":2,"Questions":"sample string 3"},{"ServiceSpec":"sample string 1","Qty":2,"Questions":"sample string 3"}],"DocIds":["65d20ad2-b632-4091-80cb-eb58ffda7e05","dcdeeb44-3367-4679-99db-fec14e9d6b81"]}],"MShopID":"f777095e-2c52-4503-a43a-fb6b89a89655","ServiceShipmentsType":1,"ServiceCityNo":1,"ServiceAreaNo":1,"ServiceSpecs":[{"ServiceSpec":"sample string 1","Qty":2,"Questions":"sample string 3"},{"ServiceSpec":"sample string 1","Qty":2,"Questions":"sample string 3"}],"DocIds":["9ee68ea1-5790-4a4e-9f9c-cc9bba74bf78","07c7573a-def0-4136-b0ae-3eb10b48f42d"],"IsToScrap":true,"ServiceSalePros":[{"SaleID":"56c980a9-2e13-4562-a724-85ac4af7271e","ServiceAreaNo":"sample string 2","ServiceShipmentsType":3,"ProType":4,"GroupNo":"sample string 5"},{"SaleID":"56c980a9-2e13-4562-a724-85ac4af7271e","ServiceAreaNo":"sample string 2","ServiceShipmentsType":3,"ProType":4,"GroupNo":"sample string 5"}],"PlusProCode":"sample string 8","gifts":[{"MShopID":"sample string 1","ProNo":"sample string 2","productName":"sample string 3","amount":4},{"MShopID":"sample string 1","ProNo":"sample string 2","productName":"sample string 3","amount":4}],"giftsConfirm":true,"ServiceInterval":1,"cycle":1}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
更新購物車商品
UpCar_Output| Name | Description | Type | Additional information |
|---|---|---|---|
| status |
0:系統錯誤 1:更新成功 2 無效商品 3 商品無庫存 4 加購品已達限制購買的數量 5 無效數據 6已超過每人限購數量或剩餘數量! 7 未符合該折價券使用條件 8其他商品已使用此張折價券 9無效序號 10序號已領取, 11已領完畢(超過限制) 12 表示此服務商品規格組合無對應供應商。 13 服務商品金額未達到服務門檻 14 無服務商品必填選項,請稍後再試! 15 服務商品不允許上傳相片影片 |
integer |
None. |
| ticketVerified |
驗證是否通過 |
boolean |
None. |
| postResult |
FB API Post回傳值 |
TaskOfString |
None. |
Response Formats
application/json, text/json
{
"status": 1,
"ticketVerified": true
}
text/html
{"status":1,"ticketVerified":true}