发起桌台,以及待支付订单支付
[TOC]
简要描述
- 发起桌台,以及待支付订单支付接口
请求URL
https://food.taihuyun.vip/api/foodcash.order/payBytable?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5
请求方式
- POST
参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
applet_id | 是 | string | 应用程序ID |
shop_id | 是 | string | 门店ID |
token | 是 | string | 用户身份验证的令牌 |
返回示例
- 一卡通实体卡支付
curl --location --request POST 'https://food.taihuyun.vip/api/foodcash.order/payBytable?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5' \
--data-raw '{
"pay_mode":9,
"order_ids":"1141",
"pay_price":90,
"card_id":"",
"card_no":"666666",
"card_open_id":"R4r316_WymxGqSuMU7Dgcw",
"password":"123456",
"card_pay_mode":"0",
"card_pay_wallet":"0",
"card_combo_wallets":"[]",
"card_combo_amounts":"[]"
}'
- 扫码支付
curl --location --request POST 'https://food.taihuyun.vip/api/foodcash.order/payBytable?applet_id=1&shop_id=1&token=8014374705939b271a346001006d8aa5' \
--data-raw '{
"pay_mode":8,
"order_ids":"1141",
"pay_price":90,
"card_id":"1673086349532169355",
"card_no":"666666",
"card_open_id":"R4r316_WymxGqSuMU7Dgcw",
"password":"123456",
"card_pay_mode":"0",
"card_pay_wallet":"0",
"card_combo_wallets":[],
"card_combo_amounts":[]
}'
返回参数
- 返回状态代码: 200
{
"code": 1,
"msg": "success",
"data": {
"transaction_id": "ceskbbm56qv8v5htthn0",
"need_code": false
}
}
参数名 | 类型 | 说明 |
---|---|---|
transaction_id | string | 交易编号 |
pay_mode | int | 支付途径 |
pay_price | int | 支付金额 |
card_id | string | 卡ID |
card_no | string | 卡号 |
password | string | 密码 |
备注
-
支付途径: 0:微信, 1:余额(目前不用) 2:后付 3:现金 小程序端:6:一卡通 小程序 pc端:8 一卡通扫码,9:一卡通实体卡 支付宝:11 银联: 21 单位挂单:50 房间挂单:51
- 更多返回错误代码请看基本参数中的参数说明