## 通卡退菜
~~~[api]
post:/un/Wq/returnOrder
*cardno=默認值#通卡卡號
*panterid#消費地點商戶號
*storeid#檔口號
*termno#pos設備號
*amount=#訂單總金額
*order_sn#訂單編號
*data#菜品信息
*key=md5($keySign.$post['cardno'].$post['order_sn'].$post['amount'])#密鑰
<<<
success
{
"status": 1,
"codemsg": "退菜成功",
"order_sn": "201908270948174803",
"beforebalance": "1026",
"nowbalance": "1038.00"
}
<<<
error
~~~
---
**data包參數說明**
`[{
"type": "2",
"goodsid": "12",
"goodspanterid": "00008878",
"num": "1",
"price": "12",
"discount": "0",
"goodsname": "牛肉",
"order_sn":"201910231126596323"
}]`
| 參數 | 參數類型 | 必須 | 說明|
| ----------- | ------------------------------ | ------------ | --- |
| goodsname| string| yes |菜品名|
| num| string| yes |數量|
| goodsid| string| yes |商品id|
| type| string| yes |1按份2散裝|
|goodspanterid|string|yes|商戶id|
|price|string|yes|商品單價|
|order_sn|string|yes|商品訂單編號|
**返回信息**
| 參數 | 參數類型 | 必須 | 說明|
| ----------- | ------------------------------ | ------------ | --- |
| beforebalance| string| yes |消費前金額|
| nowbalance| String| yes | 現在金額|
| order_sn| String| yes | 訂單編號|