文档
测试

统计代理与业务员

POST
http://localhost/merchant/index/statBranch

接口描述

统计下级代理的收入情况

请求头

参数名
类型
描述
必填
code
string
示例:识别码
必填

请求参数

参数名
类型
描述
必填
type
string
角色类型:agency meployee
必填
keyword
string
关键字
必填
start
string
开始时间
必填
end
string1
结束时间
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
array
数据列表
必填
total_amount
string
总金额 示例:50.00
必填
total_refund
string
总退款 示例:0.00
必填
total_pay_amount
string
实收金额 示例:50.00
必填
total_pay_refund
string
实收退款 示例:0.00
必填
agency_id
int
代理商id1 示例:50
必填
name
string
代理商名字 示例:测试代理1000
必填
avatar
string
代理商头像 示例:https://charge-1259349663.cos.ap-guangzhou.myqcloud.com/screen/202008/15972838749570.png
必填
msg
string
示例:代理统计
必填

说明 / 示例

{ "code": 1, "data": [{ "total_amount": "252.00", "total_refund": "50.00", "total_pay_amount": "252.00", "total_pay_refund": "50.00", "agency_id": 59, "total_num": "6", "name": "测试分成", "avatar": "https:\/\/charge-1259349663.cos.ap-guangzhou.myqcloud.com\/screen\/202008\/15972838749570.png" }], "msg": "代理统计" }