~~~[api]
post:http://smg.hxpos.com/api/third/postOrder
*string:access_token#令牌
*integer:mchid#门店id
*string:order_no#订单编号
*string:pay_type#支付方式,默认WXPAY
*decimal:total#订单金额,支持2两位小数
*string:order_detail#订单明细,json格式的字符串,例如 [{商品1对象},{商品2对象}]
decimal:coupon_total#优惠金额,当优惠需商家自行承担时必填,支付平台承担时则认为没有优惠
string:uname#买家昵称
string:uid#买家唯一标识
<<<
success
{
"code": "0",
"msg": "操作成功",
"data": {
"id": "5a2fad278eba9d5eb0330baf"
}
}
<<<
error
{
"code": "900X",
"msg": "错误信息",
"data": {}
}
~~~
#### 成功后返回值data为扫码购平台订单id
参数pay_type值可选项
|值|说明|
|-|-|
|WXPAY|微信支付|
|ALIPAY|支付宝支付|
|UNIONPAY|银联支付|
参数order_detail对象说明
|属性|说明|
|-|-|
|id|商品唯一标识|
|miscode|店内码|
|barcode|商品条形码|
|caption|商品名称|
|unit|商品单位|
|spec|商品规格|
|price|商品价格|
|quantity|数量|
|total|金额|
例如:[{"id":"5a20f0698eba9d05c07b8eb9","barcode":"6901028001618","miscode":"01000001","caption":"双喜","unit":"\u5305","spec":"","price":0.01,"quantity":1,"total":0.01}]