Showing
1 changed file
with
44 additions
and
1 deletions
@@ -822,4 +822,47 @@ code为200即为成功,否则是失败。 | @@ -822,4 +822,47 @@ code为200即为成功,否则是失败。 | ||
822 | "md5": "3c89d2af5917a0f12070df8281b39fe8", | 822 | "md5": "3c89d2af5917a0f12070df8281b39fe8", |
823 | "message": "payment data." | 823 | "message": "payment data." |
824 | } | 824 | } |
825 | -``` | ||
825 | +``` | ||
826 | + | ||
827 | + | ||
828 | +## 8、购物车提交接口 ## | ||
829 | +#### 说明 | ||
830 | +购物车提交订单(app.Shopping.submit) | ||
831 | +#### 请求参数 | ||
832 | +| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 | | ||
833 | +|:-------| -----:|-----:|-----:|-----:|----:| | ||
834 | +|uid|int|否|3236556|0|用户id| | ||
835 | +|cart_type|string|是|ordinary|ordinary|购物车类型| | ||
836 | +|address_id|int|否|5816006||送货地址id| | ||
837 | +|delivery_time|int|否|2||寄送时间类型| | ||
838 | +|delivery_way|int|否|1||发货方式(1:普通,2顺丰)| | ||
839 | +|invoices_title|string|是|""|""|发票抬头| | ||
840 | +|invoices_type_id|int|是|""|""|发票类型| | ||
841 | +|payment_id|int|否|15||支付id| | ||
842 | +|payment_type|int|否|1||支付类型| | ||
843 | +|remark|string|是|""|""|备注| | ||
844 | +|coupon_code|string|是|""|""|优惠券码| | ||
845 | +|product_sku_list|string|否|""|""|立即购买,优先| | ||
846 | + | ||
847 | +### 响应 | ||
848 | +code为200即为成功,否则是失败。 | ||
849 | +响应JSON格式如下所示: | ||
850 | +```json | ||
851 | +{ | ||
852 | + "alg": "SALT_MD5", | ||
853 | + "code": 200, | ||
854 | + "data": { | ||
855 | + "create_time": "2016-07-14 15:57:48", | ||
856 | + "order_amount": 1965, | ||
857 | + "order_code": 1613291832, | ||
858 | + "pay_expire": "2016-07-14 17:57:48", | ||
859 | + "payment_status": 0 | ||
860 | + }, | ||
861 | + "md5": "62723a6f81151e880b04a8480df4d2f9", | ||
862 | + "message": "submit order ." | ||
863 | +} | ||
864 | +``` | ||
865 | + | ||
866 | + | ||
867 | + | ||
868 | + |
-
Please register or login to post a comment