文档
测试

购物车编辑

POST
route=checkout/cart_info/updateHomePickCart

请求参数

参数名
类型
描述
必填
cart_id
int
购物车cart_id
必填
stock_type
int
采购类型 1-仓库随机 2-仓库指定
必填
type_id
int
交易类型 0-normal 1-rebate 2-margin 3-future 4-spot
必填
agreement_id
int|空
协议id 传id或者空
可选
quantity
int
加购数量
必填
stock_distribution
array
用户选择的库存分布,[{wh_id: "18", qty: 2}]
可选

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:Successfully.
必填
data
object
数据字典
必填
available
array
数据列表
必填
store_info
object
数据字典
必填
id
int
示例:77
必填
name
string
示例:RuiYaSi Store
必填
code
string
示例:W223
必填
is_available
boolean
示例:true
必填
is_connect
boolean
示例:true
必填
discounts
array
数据列表
必填
carts
array
数据列表
必填
cart_id
int
示例:1719811
必填
product_info
object
数据字典
必填
id
int
示例:3333776
必填
sku
string
示例:W22333737
必填
product_name
string
示例:TEST T22303 TEST HHA
必填
product_type
int
示例:0
必填
product_tags
array
数据列表
必填
icon
string
示例:/image/product/LTL.jpg
必填
description
string
示例:LTL products are more likely to experience higher-product return costs and experience longer shipping times
必填
product_image
string
示例:https://btbfile.oss-cn-hongkong.aliyuncs.com/image/wkseller/77/20211026_ceaa5cb2dc95c6f7017067b6e82c28ad.png
必填
product_thumb
string
示例:https://btbfile.oss-cn-hongkong.aliyuncs.com/image/wkseller/77/20211026_ceaa5cb2dc95c6f7017067b6e82c28ad.png?x-oss-process=image%2Fresize%2Cw_80%2Ch_80%2Cm_pad
必填
is_available
boolean
示例:true
必填
qty_exception
boolean
示例:false
必填
stock_exception
boolean
示例:false
必填
has_contact
boolean
示例:true
必填
transaction_type
int
示例:2
必填
transaction_type_name
string
示例:Margin:20220622429170
必填
procurement_method
string
示例:
必填
stock_distribution
string
示例:N/A
必填
qty
int
示例:1
必填
total_price
string
示例:68.40
必填
saleable_qty
int
示例:10
必填
price_info
object
数据字典
必填
default_price
float
示例:68.4
必填
price
float
示例:68.4
必填
is_custom
boolean
示例:false
必填
service_fee
float
示例:68.4
必填
product_value
int
示例:0
必填
use_tired_price_id
int
示例:0
必填
tiered_prices
array
数据列表
必填
is_use_discount
boolean
示例:false
必填
use_discount
object
示例:null
必填
stock_cloud_fee
int
示例:0
必填
campaigns
array
数据列表
必填
is_edit
boolean
示例:true
必填
seller_id
int
示例:77
必填
seller_info
object
数据字典
必填
id
int
示例:77
必填
name
string
示例:RuiYaSi Store
必填
code
string
示例:W223
必填
is_available
boolean
示例:true
必填
is_connect
boolean
示例:true
必填

说明 / 示例

响应参数当code=200时 返回这条购物车的单个列表数据 ```json { "code": 200, "msg": "Successfully.", "data": { "available": [ { "store_info": { "id": 77, "name": "RuiYaSi Store", "code": "W223", "is_available": true, "is_connect": true, "discounts": [] }, "carts": [ { "cart_id": 1719811, "product_info": { "id": 3333776, "sku": "W22333737", "product_name": "TEST T22303 TEST HHA", "product_type": 0, "product_tags": [ { "icon": "/image/product/LTL.jpg", "description": "LTL products are more likely to experience higher-product return costs and experience longer shipping times" } ], "product_image": "https://btbfile.oss-cn-hongkong.aliyuncs.com/image/wkseller/77/20211026_ceaa5cb2dc95c6f7017067b6e82c28ad.png", "product_thumb": "https://btbfile.oss-cn-hongkong.aliyuncs.com/image/wkseller/77/20211026_ceaa5cb2dc95c6f7017067b6e82c28ad.png?x-oss-process=image%2Fresize%2Cw_80%2Ch_80%2Cm_pad" }, "is_available": true, "qty_exception": false, "stock_exception": false, "has_contact": true, "transaction_type": 2, "transaction_type_name": "Margin:20220622429170", "procurement_method": "", "stock_distribution": "N/A", "qty": 1, "total_price": "68.40", "saleable_qty": 10, "price_info": { "default_price": 68.4, "price": 68.4, "is_custom": false, "service_fee": 68.4, "product_value": 0, "use_tired_price_id": 0, "tiered_prices": [], "is_use_discount": false, "use_discount": null }, "stock_cloud_fee": 0, "campaigns": [], "is_edit": true, "seller_id": 77, "seller_info": { "id": 77, "name": "RuiYaSi Store", "code": "W223", "is_available": true, "is_connect": true } } ] } ] } } ```

说明

**请求参数** cart_id:1719811 stock_type:2 type_id:2 agreement_id:15492 quantity:10 stock_distribution:{"33":1,"23":19} **说明** stock_distribution:暂未确实格式 暂时先传个空