文档
测试

5.1日结查询

GET
getTodayReport

接口描述

查询当前登录收银员当日的营业额和支付汇总

请求参数

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

响应参数

参数名
类型
描述
必填
code
int
错误码,成功返回 200,失败返回其它
必填
message
String
错误描述
必填
data
Object
对象,业务数据
必填
total_count
int
交易笔数
必填
total_amount
Double
交易总金额
必填
total_card_amount
Double
消费卡支付总金额
必填
total_wx_amount
Double
微信支付交易金额
必填
total_alipay_amount
Double
支付宝交易金额,一般情况下:微信支付+支付宝+消费卡支付=交易总金额
必填
trans_date
String
交易日期
必填

说明 / 示例

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