...
|
...
|
@@ -613,3 +613,293 @@ code为200即为成功,否则是失败。 |
|
|
"message": "offline submit order"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 线下店购物车结算接口 ##
|
|
|
#### 说明
|
|
|
线下店购物车结算(app.ShoppingForOffline.offlinePayment)
|
|
|
#### 请求参数
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:-------| -----:|-----:|-----:|-----:|----:|
|
|
|
|uid|int|否|3236556|0|用户id|
|
|
|
|cart_type|string|否|ordinary|ordinary|购物车类型|
|
|
|
|shopping_key|string|否|Y123456|Y123456|手环编号|
|
|
|
|offline_buy_type|int|否|1|购买方式,1店员购买,2用户自行购买|
|
|
|
|store_id|int|是|12|0|门店id|
|
|
|
|warehouse_id|int|是|66|0|仓库id|
|
|
|
|employee_uid|int|是|||店员uid
|
|
|
|
|
|
### 响应
|
|
|
code为200即为成功,否则是失败。
|
|
|
响应JSON格式如下所示:
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"coupon_pay": {
|
|
|
"coupon_amount": 28,
|
|
|
"coupon_code": "dp61grs1220kf1,dp61gtj1220kf2,dp61grk1220kez,dp61grh1220kex,dp61gri1220key,dp61grh1220kew",
|
|
|
"coupon_count": 6,
|
|
|
"coupon_title": "对应线上公众号/nike优惠券9号/nike店铺优惠券3号/微信卡券2/nike店铺优惠券2号/nike店铺优惠券1号",
|
|
|
"uid": 0
|
|
|
},
|
|
|
"delivery_time": [
|
|
|
{
|
|
|
"delivery_time_id": 1,
|
|
|
"default": "N",
|
|
|
"delivery_time_string": "只工作日送货"
|
|
|
},
|
|
|
{
|
|
|
"delivery_time_id": 2,
|
|
|
"default": "N",
|
|
|
"delivery_time_string": "工作日、双休日和节假日均送货"
|
|
|
},
|
|
|
{
|
|
|
"delivery_time_id": 3,
|
|
|
"default": "N",
|
|
|
"delivery_time_string": "只双休日、节假日送货(工作日不送货)"
|
|
|
}
|
|
|
],
|
|
|
"delivery_way": [
|
|
|
{
|
|
|
"delivery_way_cost": 0,
|
|
|
"default": "Y",
|
|
|
"delivery_way_id": 1,
|
|
|
"is_support": "Y",
|
|
|
"delivery_way_name": "普通快递",
|
|
|
"is_delivery": "Y"
|
|
|
},
|
|
|
{
|
|
|
"delivery_way_cost": 0,
|
|
|
"default": "N",
|
|
|
"delivery_way_id": 2,
|
|
|
"is_support": "Y",
|
|
|
"delivery_way_name": "顺丰速运",
|
|
|
"is_delivery": "Y"
|
|
|
},
|
|
|
{
|
|
|
"delivery_way_cost": 0,
|
|
|
"default": "N",
|
|
|
"delivery_way_id": 4,
|
|
|
"is_support": "Y",
|
|
|
"delivery_way_name": "其他方式",
|
|
|
"is_delivery": "Y"
|
|
|
}
|
|
|
],
|
|
|
"goods_list": [],
|
|
|
"invoices": {
|
|
|
"invoiceContentList": [
|
|
|
{
|
|
|
"invoices_type_id": 7,
|
|
|
"invoices_type_name": "服装"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 1,
|
|
|
"invoices_type_name": "图书"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 9,
|
|
|
"invoices_type_name": "配件"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 11,
|
|
|
"invoices_type_name": "日用品"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 6,
|
|
|
"invoices_type_name": "体育用品"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 10,
|
|
|
"invoices_type_name": "数码产品"
|
|
|
}
|
|
|
],
|
|
|
"invoices_title": "",
|
|
|
"invoices_type_id": 0,
|
|
|
"invoices_type_list": [
|
|
|
{
|
|
|
"invoices_type_id": 1,
|
|
|
"invoices_type_name": "图书"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 2,
|
|
|
"invoices_type_name": "资料"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 4,
|
|
|
"invoices_type_name": "洗涤用品"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 5,
|
|
|
"invoices_type_name": "化妆品"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 6,
|
|
|
"invoices_type_name": "体育用品"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 7,
|
|
|
"invoices_type_name": "服装"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 8,
|
|
|
"invoices_type_name": "饰品"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 9,
|
|
|
"invoices_type_name": "配件"
|
|
|
},
|
|
|
{
|
|
|
"invoices_type_id": 10,
|
|
|
"invoices_type_name": "数码产品"
|
|
|
}
|
|
|
],
|
|
|
"invoices_type_name": ""
|
|
|
},
|
|
|
"is_coupon_limit": 0,
|
|
|
"offline_goods_list": [
|
|
|
{
|
|
|
"attribute": "1",
|
|
|
"batch_no": 0,
|
|
|
"brand_domain": "TYAKASHA",
|
|
|
"brand_id": "141",
|
|
|
"brand_name": "sdf",
|
|
|
"bundle_activity_id": 0,
|
|
|
"buy_limit": 0,
|
|
|
"buy_number": "1",
|
|
|
"buy_type": 1,
|
|
|
"can_cod_pay": "N",
|
|
|
"cn_alphabet": "TYAKASHANanKuanZaSeShenHongSeCiXiuZiMuXiaBaiHuiXingZhenMaoXianZhenZhiWeiYiT14DN5096J",
|
|
|
"color_id": "11",
|
|
|
"color_name": "红色",
|
|
|
"delay_notice": "",
|
|
|
"discount_tag": "",
|
|
|
"expect_arrival_time": "",
|
|
|
"factory_goods_name": "深红色",
|
|
|
"fit_promotions": [],
|
|
|
"get_yoho_coin": "0",
|
|
|
"goods_id": "193047",
|
|
|
"goods_images": "http://img11.static.yhbimg.com/goodsimg/2014/12/16/07/01501400efa1aab2f44775dba0b6304d78.jpg?imageMogr2/thumbnail/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
|
|
|
"goods_type": "ordinary",
|
|
|
"is_advance": "N",
|
|
|
"is_coupon_limit": 0,
|
|
|
"is_deposit_advance": "N",
|
|
|
"is_jit": "N",
|
|
|
"is_limited": "Y",
|
|
|
"is_limittime_advance": "N",
|
|
|
"is_outlets": "B",
|
|
|
"is_special": "N",
|
|
|
"last_price": "62.4",
|
|
|
"last_vip_price": 78,
|
|
|
"local_buy_number": 0,
|
|
|
"market_price": 398,
|
|
|
"max_sort_id": "1",
|
|
|
"middle_sort_id": "16",
|
|
|
"min_buy_number": 1,
|
|
|
"off_shelves": 0,
|
|
|
"offline_goods_status": 1,
|
|
|
"offline_storage_number": 0,
|
|
|
"offline_storage_status": 1,
|
|
|
"online_storage_number": 0,
|
|
|
"product_id": 139115,
|
|
|
"product_name": "TYAKASHA 男款杂色深红色刺绣字母下摆回形针毛线针织卫衣",
|
|
|
"product_skc": "197118",
|
|
|
"product_skn": "51083701",
|
|
|
"product_sku": "648004",
|
|
|
"promotion_flag": "0",
|
|
|
"promotion_id": "0",
|
|
|
"real_price": 62.4,
|
|
|
"real_vip_price": 0,
|
|
|
"sale_price": 0,
|
|
|
"sales_price": 78,
|
|
|
"selected": "Y",
|
|
|
"shop_id": 966,
|
|
|
"shopping_cart_goods_id": "8808",
|
|
|
"shopping_key": "da169581edddf748a551145b45ee1fb7",
|
|
|
"size_id": "199",
|
|
|
"size_name": "F",
|
|
|
"small_sort_id": "119",
|
|
|
"storage_number": "1",
|
|
|
"store_id": 0,
|
|
|
"str_subtotal": "¥78.00",
|
|
|
"subtotal": 78,
|
|
|
"supplier_id": 0,
|
|
|
"tags": [],
|
|
|
"vip1_price": "74.10",
|
|
|
"vip2_price": "70.20",
|
|
|
"vip3_price": "68.64",
|
|
|
"vip_discount": 1,
|
|
|
"vip_discount_money": 0,
|
|
|
"vip_discount_type": "1",
|
|
|
"vip_price": 11,
|
|
|
"wareHouseId": 0,
|
|
|
"yoho_coin_num": "0"
|
|
|
}
|
|
|
],
|
|
|
"payment_way": [
|
|
|
{
|
|
|
"payment_type": 1,
|
|
|
"default": "Y",
|
|
|
"payment_type_name": "在线支付(推荐)",
|
|
|
"is_support": "Y",
|
|
|
"payment_id": 15,
|
|
|
"payment_name": "支付宝",
|
|
|
"is_support_message": ""
|
|
|
}
|
|
|
],
|
|
|
"promo_code_enabled": 1,
|
|
|
"shopping_cart_data": {
|
|
|
"discount_amount": 15.6,
|
|
|
"fast_shopping_cost": 0,
|
|
|
"gain_yoho_coin": 0,
|
|
|
"goods_count": 1,
|
|
|
"has_invalid_goods": 0,
|
|
|
"is_multi_package": "N",
|
|
|
"last_order_amount": 34.4,
|
|
|
"offline_goods_count": 0,
|
|
|
"online_goods_count": 0,
|
|
|
"order_amount": 78,
|
|
|
"package_list": [],
|
|
|
"promotion_formula": "总计¥34.40=商品金额¥78.00-活动金额¥15.60-优惠券¥28.00",
|
|
|
"promotion_formula_list": [
|
|
|
{
|
|
|
"promotion": "商品金额",
|
|
|
"promotion_amount": "¥78.00"
|
|
|
},
|
|
|
{
|
|
|
"promotion": "活动金额",
|
|
|
"promotion_amount": "-¥15.60"
|
|
|
},
|
|
|
{
|
|
|
"promotion": "优惠券",
|
|
|
"promotion_amount": "-¥28.00"
|
|
|
}
|
|
|
],
|
|
|
"promotion_info": [
|
|
|
{
|
|
|
"cutdown_amount": 15.6,
|
|
|
"promotion_id": 9078,
|
|
|
"promotion_title": "线下店促销打8折勿动",
|
|
|
"promotion_type": "Discount"
|
|
|
}
|
|
|
],
|
|
|
"remain_time": 0,
|
|
|
"selected_goods_count": 1,
|
|
|
"shipping_cost": 0,
|
|
|
"str_discount_amount": "¥15.60",
|
|
|
"str_order_amount": "¥78.00"
|
|
|
},
|
|
|
"total_yoho_coin_num": 0,
|
|
|
"uid": 500031176,
|
|
|
"use_yoho_coin": 0,
|
|
|
"yoho_coin": 0,
|
|
|
"yoho_coin_pay_rule": {
|
|
|
"amount_limit": 20,
|
|
|
"max_pay_rate_desc": "100%",
|
|
|
"num_limit": 100
|
|
|
}
|
|
|
},
|
|
|
"md5": "21373766c16be899be763237a9dc1e11",
|
|
|
"message": "offline payment data."
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|