## 下订单
~~~[api]
post:/un/Wq/placeAnOrder
*cardno=默认值#通卡卡号
*panterid#消费地点商户号
*storeid#档口号
*termno#pos设备号
*price=#订单总金额
*order_sn#订单编号
*num#菜品数量
*data#菜品数量
*key=md5($keySign.$post['cardno'].$post['panterid'].$post['storeid'].$post['termno'].$post['price'].$post['order_sn']);#密钥
<<<
success
{
"status": 1,
"codemsg": "消费成功",
"beforebalance": "1038",
"nowbalance": "1026.00",
"order_sn": "201910231126596324",
"order_amount": "12",
"pay_amount": "12"
}
<<<
error
{
"status": 1003,
"codemsg": "此订单已消费"
}
~~~
---
**data包参数说明**
`[{"goodsname":"牛肉","num":"1","goodsid":"12","type":"2","goodspanterid":"00008878","price":12}]`
| 参数 | 参数类型 | 必须 | 说明|
| ----------- | ------------------------------ | ------------ | --- |
| goodsname| string| yes |菜品名|
| num| string| yes |数量|
| goodsid| string| yes |商品id|
| type| string| yes |1按份2散装|
|goodspanterid|string|yes|商户id|
|price|string|yes|商品单价|
**返回信息**
| 参数 | 参数类型 | 必须 | 说明|
| ----------- | ------------------------------ | ------------ | --- |
| beforebalance| string| yes |消费前金额|
| nowbalance| String| yes | 现在金额|
| order_sn| String| yes | 订单编号|
| order_amount| String| yes | 订单金额|
| pay_amount| String| yes | 支付金额|