Showing
1 changed file
with
84 additions
and
2 deletions
@@ -624,8 +624,7 @@ code为200即为成功,否则是失败。 | @@ -624,8 +624,7 @@ code为200即为成功,否则是失败。 | ||
624 | |cart_type|string|否|ordinary|ordinary|购物车类型| | 624 | |cart_type|string|否|ordinary|ordinary|购物车类型| |
625 | |shopping_key|string|否|Y123456|Y123456|手环编号| | 625 | |shopping_key|string|否|Y123456|Y123456|手环编号| |
626 | |offline_buy_type|int|否|1|购买方式,1店员购买,2用户自行购买| | 626 | |offline_buy_type|int|否|1|购买方式,1店员购买,2用户自行购买| |
627 | -|store_id|int|是|12|0|门店id| | ||
628 | -|warehouse_id|int|是|66|0|仓库id| | 627 | +|address_id|int|否|6258152||送货地址id| |
629 | |employee_uid|int|是|||店员uid | 628 | |employee_uid|int|是|||店员uid |
630 | 629 | ||
631 | ### 响应 | 630 | ### 响应 |
@@ -902,4 +901,87 @@ code为200即为成功,否则是失败。 | @@ -902,4 +901,87 @@ code为200即为成功,否则是失败。 | ||
902 | "md5": "21373766c16be899be763237a9dc1e11", | 901 | "md5": "21373766c16be899be763237a9dc1e11", |
903 | "message": "offline payment data." | 902 | "message": "offline payment data." |
904 | } | 903 | } |
904 | +``` | ||
905 | + | ||
906 | +## 线下店购物车提交接口 ## | ||
907 | +#### 说明 | ||
908 | +线下店购物车优惠券列表(app.ShoppingForOffline.offlineSelectCoupon) | ||
909 | +#### 请求参数 | ||
910 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
911 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
912 | +|uid|int|否|3236556|0|用户id| | ||
913 | +|cart_type|string|否|ordinary|ordinary|购物车类型| | ||
914 | +|shopping_key|string|否|Y123456|Y123456|手环编号| | ||
915 | +|coupon_code|string|是|dp61grh1220kew||选中的优惠券:可为null,也可以是多个,以,分隔| | ||
916 | +|employee_uid|int|是|||店员uid | ||
917 | + | ||
918 | +### 响应 | ||
919 | +code为200即为成功,否则是失败。 | ||
920 | +响应JSON格式如下所示: | ||
921 | +```json | ||
922 | +{ | ||
923 | + "alg": "SALT_MD5", | ||
924 | + "code": 200, | ||
925 | + "data": { | ||
926 | + "unusable_coupon_catalogs": { | ||
927 | + "list": [ | ||
928 | + { | ||
929 | + "coupons": [], | ||
930 | + "name": "凑单可用" | ||
931 | + }, | ||
932 | + { | ||
933 | + "coupons": [ | ||
934 | + { | ||
935 | + "catalog": 100, | ||
936 | + "catalog_name": "店铺券", | ||
937 | + "coupon_code": "dp61grp1220kf0", | ||
938 | + "coupon_name": "111", | ||
939 | + "coupon_type": "6", | ||
940 | + "coupon_validity": "2018.03.08-2018.03.31", | ||
941 | + "coupon_value": "111.0000", | ||
942 | + "desc": "加购商品不满足使用条件", | ||
943 | + "is_selected_support": "N", | ||
944 | + "selected": "N", | ||
945 | + "shopId": "792" | ||
946 | + } | ||
947 | + ], | ||
948 | + "name": "本订单商品不可用" | ||
949 | + } | ||
950 | + ] | ||
951 | + }, | ||
952 | + "usable_coupon_catalog": { | ||
953 | + "list": [ | ||
954 | + { | ||
955 | + "coupons": [ | ||
956 | + { | ||
957 | + "catalog": 100, | ||
958 | + "catalog_name": "店铺券", | ||
959 | + "coupon_code": "dp61grh1220kew", | ||
960 | + "coupon_name": "nike店铺优惠券1号", | ||
961 | + "coupon_type": "6", | ||
962 | + "coupon_validity": "2018.03.08-2018.03.31", | ||
963 | + "coupon_value": "1.0000", | ||
964 | + "is_selected_support": "Y", | ||
965 | + "selected": "Y" | ||
966 | + }, | ||
967 | + { | ||
968 | + "catalog": 100, | ||
969 | + "catalog_name": "店铺券", | ||
970 | + "coupon_code": "dp61grh1220kex", | ||
971 | + "coupon_name": "微信卡券2", | ||
972 | + "coupon_type": "6", | ||
973 | + "coupon_validity": "2018.03.08-2018.03.31", | ||
974 | + "coupon_value": "2.0000", | ||
975 | + "is_selected_support": "Y", | ||
976 | + "selected": "N" | ||
977 | + } | ||
978 | + ], | ||
979 | + "name": "可用" | ||
980 | + } | ||
981 | + ] | ||
982 | + } | ||
983 | + }, | ||
984 | + "md5": "74090c79e79fed13fab282f5ad4c8961", | ||
985 | + "message": "操作成功" | ||
986 | +} | ||
905 | ``` | 987 | ``` |
-
Please register or login to post a comment