文档
测试

5.充值日结

GET
getDayRechargeReport

接口描述

查询当前登录收银员当日的充值、退款的金额汇总,用于收银员换班钱款交接。

请求参数

参数名
类型
描述
必填
token
String
登录TOKEN
必填
appid
String
商户appid
必填
employee_id
Long
当前登录收银员 ID,登录成功返回的
必填

响应参数

参数名
类型
描述
必填
code
int
错误码,成功返回 200,失败返回其它
必填
message
String
错误描述
必填
data
Object
对象,业务数据
必填
total_count
int
充值订单(包括退款订单)笔数
必填
total_amount
Double
充值交易总金额
必填
total_cash_amount
Double
现金充值交易小计金额
必填
total_wx_amount
Double
微信充值交易小计金额
必填
total_alipay_amount
Double
支付宝充值交易小计金额,一般情况下:微信支付+支付宝+现金支付=交易总金额
必填
trans_date
String
交易日期:当班时间
必填

说明 / 示例

### 请求示例 ``` https://api2.XXX.cn/cm/getDayRechargeReport?token=TOKEN&appid=jb25112e65f20e7dfe&employee_id=1 ``` ### 返回示例 #### 业务成功返回 JSON ``` { "code": 200, "message": "success", "data": { "trans_date": "2021-05-24", "total_cash_amount": 90.0, "total_wx_amount": 0.0, "total_amount": 90.0, "total_count": 4, "total_alipay_amount": 0.0 } } ``` #### 请求失败返回 ``` "code": 1502, "message": "business.error.netShopId.isnotExist", "data": "" } ``` ==business.error.netShopId.isnotExist== 商户appid不存在