Showing
1 changed file
with
89 additions
and
2 deletions
@@ -903,7 +903,7 @@ code为200即为成功,否则是失败。 | @@ -903,7 +903,7 @@ code为200即为成功,否则是失败。 | ||
903 | } | 903 | } |
904 | ``` | 904 | ``` |
905 | 905 | ||
906 | -## 线下店购物车提交接口 ## | 906 | +## 线下店购物优惠券列表接口 ## |
907 | #### 说明 | 907 | #### 说明 |
908 | 线下店购物车优惠券列表(app.ShoppingForOffline.offlineSelectCoupon) | 908 | 线下店购物车优惠券列表(app.ShoppingForOffline.offlineSelectCoupon) |
909 | #### 请求参数 | 909 | #### 请求参数 |
@@ -913,7 +913,94 @@ code为200即为成功,否则是失败。 | @@ -913,7 +913,94 @@ code为200即为成功,否则是失败。 | ||
913 | |cart_type|string|否|ordinary|ordinary|购物车类型| | 913 | |cart_type|string|否|ordinary|ordinary|购物车类型| |
914 | |shopping_key|string|否|Y123456|Y123456|手环编号| | 914 | |shopping_key|string|否|Y123456|Y123456|手环编号| |
915 | |coupon_code|string|是|dp61grh1220kew||选中的优惠券:可为null,也可以是多个,以,分隔| | 915 | |coupon_code|string|是|dp61grh1220kew||选中的优惠券:可为null,也可以是多个,以,分隔| |
916 | -|employee_uid|int|是|||店员uid | 916 | +|employee_uid|int|是|500027192||店员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 | +} | ||
987 | +``` | ||
988 | + | ||
989 | +## 线下店立即购买优惠券列表接口 ## | ||
990 | +#### 说明 | ||
991 | +线下店立即购买优惠券列表(app.ShoppingForOffline.offlineEasySelectCoupon) | ||
992 | +#### 请求参数 | ||
993 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
994 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
995 | +|uid|int|否|3236556|0|用户id| | ||
996 | +|cart_type|string|否|ordinary|ordinary|购物车类型| | ||
997 | +|shopping_key|string|否|Y123456||手环编号| | ||
998 | +|product_skn|int|否|51083701||skn | ||
999 | +|product_sku|int|否|648004||sku | ||
1000 | +|online_buy_number|int|是|0||线上数量 | ||
1001 | +|off_line_num|int|是|0||线下买数量 | ||
1002 | +|coupon_code|string|是|dp61grh1220kew||选中的优惠券:可为null,也可以是多个,以,分隔| | ||
1003 | +|employee_uid|int|是|500027192||店员uid | ||
917 | 1004 | ||
918 | ### 响应 | 1005 | ### 响应 |
919 | code为200即为成功,否则是失败。 | 1006 | code为200即为成功,否则是失败。 |
-
Please register or login to post a comment