~~~[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}]