POST api/Car/UpCar

更新購物車商品

Request Information

URI Parameters

None.

Body Parameters

UpCar_Input
NameDescriptionTypeAdditional 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

Sample:
{
  "Ticket": "sample string 1",
  "userId": "sample string 2",
  "productNumber": "sample string 3",
  "amount": 4,
  "type": "sample string 5",
  "couponId": "ea86f51d-d5de-4649-82a5-7da8ebeedcc1",
  "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": [
        "1439807c-8ce4-4966-899c-a8e823b7123b",
        "0be2b80f-1933-4dd9-8b5a-fe26cf79814d"
      ]
    },
    {
      "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": [
        "1439807c-8ce4-4966-899c-a8e823b7123b",
        "0be2b80f-1933-4dd9-8b5a-fe26cf79814d"
      ]
    }
  ],
  "MShopID": "41ad0de4-6a6e-4300-9aac-858899974133",
  "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": [
    "18b642bb-5736-4c83-8d47-39df6ec3e0a8",
    "0435a712-6ddd-41cb-af64-c06be67f2448"
  ],
  "IsToScrap": true,
  "ServiceSalePros": [
    {
      "SaleID": "f232c982-f8a2-45dd-91bc-6bf8c78e8288",
      "ServiceAreaNo": "sample string 2",
      "ServiceShipmentsType": 3,
      "ProType": 4,
      "GroupNo": "sample string 5"
    },
    {
      "SaleID": "f232c982-f8a2-45dd-91bc-6bf8c78e8288",
      "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

Sample:
{"Ticket":"sample string 1","userId":"sample string 2","productNumber":"sample string 3","amount":4,"type":"sample string 5","couponId":"ea86f51d-d5de-4649-82a5-7da8ebeedcc1","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":["1439807c-8ce4-4966-899c-a8e823b7123b","0be2b80f-1933-4dd9-8b5a-fe26cf79814d"]},{"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":["1439807c-8ce4-4966-899c-a8e823b7123b","0be2b80f-1933-4dd9-8b5a-fe26cf79814d"]}],"MShopID":"41ad0de4-6a6e-4300-9aac-858899974133","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":["18b642bb-5736-4c83-8d47-39df6ec3e0a8","0435a712-6ddd-41cb-af64-c06be67f2448"],"IsToScrap":true,"ServiceSalePros":[{"SaleID":"f232c982-f8a2-45dd-91bc-6bf8c78e8288","ServiceAreaNo":"sample string 2","ServiceShipmentsType":3,"ProType":4,"GroupNo":"sample string 5"},{"SaleID":"f232c982-f8a2-45dd-91bc-6bf8c78e8288","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:

Sample not available.

Response Information

Resource Description

更新購物車商品

UpCar_Output
NameDescriptionTypeAdditional 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

Sample:
{
  "status": 1,
  "ticketVerified": true
}

text/html

Sample:
{"status":1,"ticketVerified":true}