净利润报表
接口地址:/shop/retainedprofits
get方式
参数及格式如下:
type:1,2,3对应月报,季报,年报,默认为1。下例为月报的返回样式。当是季报或年报时,返回值相关字段会有所变化
phone:用户登录时的手机号
shop_id:门店id
time:时间,如果是月报,则形式如2017-01格式;如果是季报,则如2017~1形式,代表2017年第一季度,中间用~分割。如果是年报,则如2017形式
返回格式:
若请求成功msg返回success;否则msg为相应报错信息
{
"code": 1,
"data": {
"retained_profits": 113494.62,
"gross_income": 225863.25,
"offline_cost": 112368.63,
"gross_profit_ratio":12.13%,
"is_entering" :1,
"tendency": [
{
"month": "3月",
"amount": 125264.75,
"link_relative_ratio": "12%"
},
{
"month": "4月",
"amount": 125264.75,
"link_relative_ratio": "12%"
},
{
"month": "5月",
"amount": 125264.75,
"link_relative_ratio": "12%"
},
{
"month": "6月",
"amount": 125264.75,
"link_relative_ratio": "12%"
},
{
"month": "7月",
"amount": 125264.75,
"link_relative_ratio": "12%"
},
{
"month": "8月",
"amount": 125264.75,
"link_relative_ratio": "12%"
}
],
"gross_profit_distribution": {
"course_num": 5564.75,
"cn_rate": "33.31%",
"private_teacher_num": 1234.11,
"ptn_rate": "11.22%",
"member_num": 1213.13,
"mn_rate": "12.98%",
"rent_num": 123.11,
"rn_rate": "12.98%",
"sale_num": 3111.11,
"sn_rate": "23.11%",
"other_num": 123.23,
"on_rate": "13.32%"
},
"gross_profit_rank": {
"first_name": "课程",
"first_num": 3780,
"second_name": "私教",
"second_num": 2960,
"third_name": "会员",
"third_num": 2563
},
"offline_cost_distribution": [
{
"name": "门店租金",
"amount": 5000,
"rate": "12%"
},
{
"name": "大厦物业费",
"amount": 164.75,
"rate": "12%"
},
{
"name": "清洁费",
"amount": 1264.75,
"rate": "12%"
},
{
"name": "员工薪水",
"amount": 125264.75,
"rate": "12%"
},
{
"name": "税",
"amount": 125264.75,
"rate": "12%"
},
{
"name": "水电费",
"amount": 164.75,
"rate": "12%"
}
],
"offline_cost_rank": {
"first_name": "员工薪水",
"first_num": 3780,
"second_name": "税",
"second_num": 2960,
"third_name": "门店租金",
"third_num": 2563
}
},
"msg": "success"
}Last updated
Was this helpful?