毛利润报表--明细列表

接口地址:/shop/gplist
get方式
参数及格式如下:
phone:用户登录时的手机号
shop_id:门店id
time:选择的时间范围。如2018/01/01~2018/03/16,中间用~分割
type:1-5分别对应‘课程’,‘私教’,‘会员’,‘商品售卖’,‘其他’。
返回格式:
Last updated
Was this helpful?

phone:用户登录时的手机号
shop_id:门店id
time:选择的时间范围。如2018/01/01~2018/03/16,中间用~分割
type:1-5分别对应‘课程’,‘私教’,‘会员’,‘商品售卖’,‘其他’。
Last updated
Was this helpful?
Was this helpful?
若请求成功msg返回success;否则msg为相应报错信息
{
"code": 1,
"data": {
"num": 27, (当‘其他’类型时无此字段)
"all_gross": 35786.12,
"category": 12, (仅‘商品售卖’类型时有此字段,即品类)
"refund_num": 12, (仅‘课程退款’类型时有此字段,即课程退款笔数)
"transfer_num": 7, (仅‘课程退款’类型时有此字段,即会员转让笔数)
"items": [
{
"item_id":1234,
"name": "设备教学课程",
"time": "2017.10.02(周五) 14:45-20:30",
"gross_profit": 3625
},
{
"item_id":1121,
"name": "设备教学课程",
"time": "2017.10.02(周五) 14:45-20:30",
"gross_profit": 3625
},
{
"item_id":34342,
"name": "设备教学课程",
"time": "2017.10.02(周五) 14:45-20:30",
"gross_profit": 3625
}
]
},
"msg": "success"
}