说明
交接班查询
请求地址
环境 | 请求地址 |
---|---|
测试环境 | https://pay.umxnt.com/api/basequery/order_query_b |
请求参数
参数 | 类型 | 是否必填 | 最大长度 | 描述 |
---|---|---|---|---|
token | string | 是 | 11 | 令牌 |
store_id | string | 否 | 255 | 门店id,为空代表所有门店 |
merchant_id | string | 否 | 10 | 收银员id |
time_start | string | 否 | 开始时间 2018-01-01 10:00:00 | |
time_end | string | 否 | 结束时间2018-11-01 10:00:00 | |
p | string | 否 | 第几页,默认第一页 | |
l | string | 返回条数,默认15条 |
- 成功返回有数据
{
"status": 1,
"message": "数据返回成功",
"data": [
{
"type": "all",
"desc": "总订单统计",
"total_amount": "12.00",
"get_amount": "10.00",
"refund_amount": "11.00",
"receipt_amount": "120.00",
"fee_amount": "142.00",
"mdiscount_amount": "129.90",
"total_count": "160",
"refund_count": "19"
},
{
"type": "alipay",
"desc": "支付宝订单统计",
"total_amount": "12.00",
"get_amount": "10.00",
"refund_amount": "11.00",
"receipt_amount": "120.00",
"fee_amount": "142.00",
"mdiscount_amount": "129.90",
"total_count": "160",
"refund_count": "19"
},
{
"type": "weixin",
"desc": "微信订单统计",
"total_amount": "12.00",
"get_amount": "10.00",
"refund_amount": "11.00",
"receipt_amount": "120.00",
"fee_amount": "142.00",
"mdiscount_amount": "129.90",
"total_count": "160",
"refund_count": "19"
}
]
}
- 返回参数说明
参数说明 | 说明 |
---|---|
total_amount | 交易金额 |
get_amount | 商家实收 |
receipt_amount | 实际净额 |
fee_amount | 结算服务费 |
refund_amount | 退款金额 |
mdiscount_amount | 商家优惠验劵金额 |
total_count | 总交易笔数 |
refund_count | 退款笔数 |
- 返回没有数据格式
{
"status": 1,
"message": "数据返回成功",
"data": [],
"l": 15,
"p": 1,
"t": 0
}
失败请求示例
{ "message":"无效参数", "status":2 }