## 下单
#### 必须是已经开通钱包成功以后的用户才可以使用改接口,此接口只有一个参数,需要用户将所有参数转换成json字符串统一提交,未支付订单可以重复提交,以最后一次下单为准
json_order结构如下
~~~
{
"from_uid": "guojief",//付款人平台用户号
"all_money": 0.6,//总金额
"order_no": "201710072004150001",//订单号
"redirect_url": "http://www.zv100.com",//支付完成跳转页面
"order_type": "4062",//支付类型(详情见附录)
"title": "测试下单",//订单名称
"sub_order": [//子订单
{
"to_uid": "guojieg",//收款人平台用户号
"money": 0.3,//子订单总金额
"bill_day": 0,//子订单账单时长
"order_no": "201710072004150001_0",//子订单号
"goods": [//子订单商品
{
"good_sn": "100000",//商品编号,同一子订单不可重复
"good_num": 3,//商品数量
"good_price": 0.05,//商品单价
"good_name": "测试商品00"//商品名称
},
{
"good_sn": "100001",
"good_num": 3,
"good_price": 0.05,
"good_name": "测试商品01"
}
]
},
{
"to_uid": "guojieh",
"money": 0.3,
"bill_day": 1,
"order_no": "201710072004150001_1",
"goods": [
{
"good_sn": "100010",
"good_num": 3,
"good_price": 0.05,
"good_name": "测试商品10"
},
{
"good_sn": "100011",
"good_num": 3,
"good_price": 0.05,
"good_name": "测试商品11"
}
]
}
]
}
~~~
#### 访问方式:post
~~~[api]
post:all_make_order
*json_order#将所有下单信息拼装成json字符串统一提交
<<<
success
{
"error":0,
"error_msg":"success"
"url_pay":"https://open.webank.com/s/web-wallet-wx/#/pay/pay/park_1_guojief/c022cf41a12658e227aeb252f734364d/391898fdc629ec1f89d1293943ad100c9e7adeb4/b2d42a38039ca133715d02e201061fbc/b2d42a38039ca133715d02e201061fbc/W2153242"
}
<<<
error
{
"error":"1",
"error_msg":"错误描述"
}