简要描述:
- 优惠券列表
请求URL:
POST/wapapi/goods/orderInfoOld
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
card_id_list | 否 | string | 购物车ID 如:11,12,13 |
order_tag | 必填 | string | 购物车则填写cart,立即够买buy_now |
返回示例:
正确时返回:
{
"data": {
"total_goods": 2,
"address_info": "广东省 广州市 天河区 车陂",
"province": 19,
"city": 197,
"district": 1751,
"address_id": 5,
"consigner": "",
"mobile": "15322132512",
"discount_money": 1235,
"all_total_money": 1300,
"goods_count": 2,
"shops": {
"0": {
"shop_name": "bbb",
"shop_id": "0",
"mansong_info": {},
"discount_info": {
"discount_id": 14,
"discount_name": "321",
"discount_num": "1",
"shop_id": 0,
"promotion_shop_id": 0
},
"coupon_list": [],
"shipping_free_total": 0,
"shop_total": 500,
"coupon_num": 0,
"goods_list": [
{
"cart_id": 18,
"buyer_id": 50,
"shop_id": 0,
"shop_name": "但洒洒",
"goods_id": 18,
"goods_name": "测试",
"sku_id": 18,
"sku_name": "",
"price": "100.00",
"num": 5,
"bl_id": 0,
"website_id": 9,
"goods_type": 0,
"goods": {
"goods_id": 18,
"goods_name": "测试",
"shop_id": 0,
"category_id": 4,
"category_id_1": 2,
"category_id_2": 3,
"category_id_3": 4,
"brand_id": 1,
"group_id_array": "1",
"promotion_type": 2,
"promote_id": 0,
"goods_type": 0,
"market_price": "0.00",
"price": "100.00",
"promotion_price": "100.00",
"cost_price": "0.00",
"point_exchange_type": 0,
"point_exchange": 0,
"give_point": 50,
"is_member_discount": 0,
"shipping_fee": "0.00",
"shipping_fee_id": 0,
"stock": 85,
"max_buy": 5,
"clicks": 20,
"min_stock_alarm": 10,
"sales": 35,
"collects": 0,
"star": 0,
"evaluates": 0,
"shares": 29,
"province_id": 19,
"city_id": 197,
"picture": 72,
"keywords": "测试",
"introduction": "sdfasdsdf",
"description": "<p>546456123465</p>",
"QRcode": "upload/9/goods_qrcode/goods_qrcode_18.png",
"code": "",
"is_stock_visible": 1,
"is_hot": 0,
"is_recommend": 0,
"is_new": 0,
"is_pre_sale": 0,
"is_bill": 0,
"state": 1,
"sort": 0,
"img_id_array": "72",
"sku_img_array": "",
"match_point": null,
"match_ratio": null,
"real_sales": 15,
"goods_attribute_id": 1,
"goods_spec_format": "[]",
"goods_weight": "0.00",
"goods_volume": "0.00",
"shipping_fee_type": 3,
"extend_category_id": "",
"extend_category_id_1": "",
"extend_category_id_2": "",
"extend_category_id_3": "",
"supplier_id": 0,
"sale_date": 1522374741,
"create_time": 1522374741,
"update_time": 1533521900,
"min_buy": 2,
"website_id": 9
},
"stock": 85,
"max_buy": 5,
"point_exchange_type": 0,
"point_exchange": 0,
"picture_info": "upload/9/goods/20180330/1522374675.jpg",
"subtotal": "500.00",
"member_discount": "0.95"
}
]
},
"43": {
"shop_name": "bbb直营店",
"shop_id": 43,
"mansong_info": {},
"discount_info": {
"discount_id": "",
"discount_name": "321",
"discount_num": "1",
"shop_id": 0,
"promotion_shop_id": 0
},
"coupon_list": [],
"shipping_free_total": 0,
"shop_total": 800,
"coupon_num": 0,
"goods_list": [
{
"cart_id": 19,
"buyer_id": 73,
"shop_id": 43,
"shop_name": "bbb直营店",
"goods_id": 17,
"goods_name": "hgfhfghfg",
"sku_id": 17,
"sku_name": "",
"price": "400.00",
"num": 2,
"bl_id": 0,
"website_id": 9,
"goods_type": 0,
"goods": {
"goods_id": 17,
"goods_name": "hgfhfghfg",
"shop_id": 43,
"category_id": 4,
"category_id_1": 2,
"category_id_2": 3,
"category_id_3": 4,
"brand_id": 0,
"group_id_array": "",
"promotion_type": 0,
"promote_id": 0,
"goods_type": 0,
"market_price": "0.00",
"price": "400.00",
"promotion_price": "400.00",
"cost_price": "0.00",
"point_exchange_type": 0,
"point_exchange": 0,
"give_point": 0,
"is_member_discount": 0,
"shipping_fee": "0.00",
"shipping_fee_id": 0,
"stock": 193,
"max_buy": 0,
"clicks": 0,
"min_stock_alarm": 10,
"sales": 7,
"collects": 0,
"star": 0,
"evaluates": 0,
"shares": 0,
"province_id": 0,
"city_id": 0,
"picture": 71,
"keywords": "",
"introduction": "",
"description": "<p>fghfghfgh</p>",
"QRcode": "upload/9/43/goods_qrcode/goods_qrcode_17.png",
"code": "",
"is_stock_visible": 1,
"is_hot": 1,
"is_recommend": 0,
"is_new": 0,
"is_pre_sale": 0,
"is_bill": 0,
"state": 1,
"sort": 0,
"img_id_array": "71",
"sku_img_array": "",
"match_point": null,
"match_ratio": null,
"real_sales": 7,
"goods_attribute_id": 1,
"goods_spec_format": "[]",
"goods_weight": "0.00",
"goods_volume": "0.00",
"shipping_fee_type": 3,
"extend_category_id": "",
"extend_category_id_1": "",
"extend_category_id_2": "",
"extend_category_id_3": "",
"supplier_id": 0,
"sale_date": 1522220567,
"create_time": 1522220567,
"update_time": 1531821922,
"min_buy": 0,
"website_id": 9
},
"stock": 193,
"max_buy": 0,
"point_exchange_type": 0,
"point_exchange": 0,
"picture_info": "upload/9/43/goods/20180328/1522220558.png",
"subtotal": "800.00",
"member_discount": "0.95"
}
]
}
}
},
"code": 1,
"message": "测试商品该sku规格购买量大于最大购买量,购买数量已更改\r\n测试商品该sku规格购买量大于库存,购买数量已更改\r\n",
"order_tag": "cart"
}
错误时返回:
{
"code": -1,
"message": "暂无数据"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
shops | object | 所有店铺信息 |
goods_list | 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 | 收货电话 |
discount_money | int | 优惠金额 |
all_total_money | int | 订单总金额 |
goods_count | int | 商品数量 |
active | array | 活动信息 |
mansong | array | 满减信息 |
discount | array | 折扣信息 |
shipping_free_total | int | 店铺最终邮费 |
all_total_money | int | 最终金额 |
shop_total | int | 店铺总金额 |
discount_name | string | 折扣信息名称 |
coupon_num | int | 店铺优惠券可用数量 |
coupon_list | array | 店铺优惠券列表信息优惠券信息 |
coupon_list['start_time'] | string | 店铺优惠券开始时间 |
coupon_list['end_time'] | string | 店铺优惠券结束时间 |
coupon_list['coupon_name'] | string | 店铺优惠券名称 |
coupon_list['at_least'] | int | 满多少才能用 |
coupon_list['end_time'] | string | 店铺优惠券结束时间 |
coupon_list['end_time'] | string | 店铺优惠券结束时间 |
coupon_list['end_time'] | string | 店铺优惠券结束时间 |