简要描述:
- 购买商品成为店主和立即续费和升级
请求URL:
POST/wapapi/goods/orderMicroShopInfo
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
sku_list | 是 | array | sku信息,立即购买传参 |
order_type | 是 | int | 2为成为店主3为续费4为升级 |
`` |
{
"sku_list":[
{
"sku_id":9,
"num":2
}
]
"address_id":"",
"order_type":2或3或者4
}
返回示例:
正确时返回:
{
"code": 1,
"message": "",
"data": {
"address": {
"address_id": 46,
"consigner": "3424",
"mobile": "18539772378",
"province_name": "海南省",
"city_name": "海口市",
"district_name": "龙华区",
"address_detail": "很干净规划局规划局",
"zip_code": "234234",
"alias": ""
},
"customform": [],//自定义表单
"order_type": 3,//微店续费升级商品
"shop": [
{
"shop_id": 0,
"shop_name": "tim",
"total_amount": 12.00,
"amount_for_coupon_discount": 12.00,
"goods_list": [
{
"goods_name": "123q",
"max_buy": 0,
"price": "12.00",
"stock": 13,
"member_price": 12.00,//不享受会员价
"discount_price": 12.00,// 最终结算单价与销售价一样
"min_buy": 1,
"sku_id": 290,
"num": "1",
"goods_id": 235,
"channel_id": 0,
"shop_id": 0,
"goods_pic": "http://pic.vslai.com.cn/upload/26/common/1539740117.jpg",
"discount_id": "",
"seckill_id": "",
"record_id": "",
"group_id": "",
"spec": [
{
"spec_value_name": "啊",
"spec_name": "11"
}
]
}
],
"full_cut": {},
"coupon_list": [],
"coupon_num": 0,
"shipping_fee": 0// 邮费
}
]
}
}
商品状态变化时(仍可进行购物)返回:
{
"code": 1,
"message": "对应状态变化提示的信息"
}
商品状态变化时(不可进行购物)返回:
{
"code": -2,
"message": "对应状态变化提示的信息"
}
错误时返回:
{
"code": 0,
"message": "暂无数据"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
shops | array | 店铺下的商品信息 |
stock | int | 库存 |
sku_id | int | 规格ID |
price | int | 价格 |
goods_id | int | 商品ID |
goods_name | int | 商品名 |
max_buy | int | 0则为不限制 |
num | int | 商品数量 |
picture_info | array | 图片信息 |
pic_id | int | 图片ID |
pic_cover | string | 图片路径 |
pic_size | string | 图片大小 |
pic_spec | string | 图片规格 |
total_goods | int | 商品总数 |
address_info | string | 地址信息 |
consigner | string | 收获姓名 |
mobile | string | 收货电话 |
free_money | int | 邮费 |