简要描述:

请求域名:

  • http://xx.com

请求URL:

GET/plugin.store-cashier.admin.store-commission.store-detail

参数:

参数名 是否必须 类型 说明
page int 页数
store_id int 门店id
store_name string 门店名称
member_id string 门店店长会员ID
boss_uid string 老板会员ID
category_id int 分类id
commission_status int 提成状态(传字符型),"0"未结算,"1"已结算,"2"已分账,"-1"已失效
settlement_object int 结算对象,1店长,2连锁店老板
pay_type int 支付方式,1微信支付,2支付宝支付,3余额支付,5现金支付
start_time string 起始时间
end_time string 终止时间
province_id int 省ID
city_id int 市ID
district_id int 区ID
street_id int 街道ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "count": {
            "price_all": "530.10",
            "settlement_all": 530.1,
            "commission_price": "530.10",
            "settled_price": "527.00",
            "split_price": 0,
            "unsettle_price": "3.00",
            "total": 9
        },
        "list": {
            "total": 9,
            "per_page": 2,
            "current_page": 1,
            "last_page": 5,
            "next_page_url": "http://cc.com/web/index.php?page=2",
            "prev_page_url": null,
            "from": 1,
            "to": 2,
            "data": [
                {
                    "id": 196,
                    "order_sn": "SN20191024145655Lc",
                    "day": "2019-10-24",
                    "time": "14:56:55",
                    "store_id": 2,
                    "storename": "cc",
                    "member_id": 37,
                    "member_avatar": "https://wx.qlogo.cn/mmopen/yFAViaTLylmsKMH5jQdDIEOVRTJCMNRzATFskRbCYdcibibdbzvyDCk5YhcwfNm0ic5JEZRHsEymy3ACP6fSB3QoZtgDMe3uOaMt/132",
                    "member_nickname": "芸众售后支持namely",
                    "settlement_object": "店长",
                    "pay_name": "余额",
                    "init_price": "3.00",
                    "real_price": "3.00",
                    "settlement_price": "3.00",
                    "settlement_type": "[1]",
                    "deduction_ratio": "0.00",
                    "settlement_time": 0,
                    "commission_price": "3.00",
                    "commission_status": 0,
                    "plugin_bonus": 0
                },
                {
                    "id": 191,
                    "order_sn": "SN20180117104913ke",
                    "day": "2018-01-17",
                    "time": "10:49:13",
                    "store_id": 2,
                    "storename": "cc",
                    "member_id": 37,
                    "member_avatar": "https://wx.qlogo.cn/mmopen/yFAViaTLylmsKMH5jQdDIEOVRTJCMNRzATFskRbCYdcibibdbzvyDCk5YhcwfNm0ic5JEZRHsEymy3ACP6fSB3QoZtgDMe3uOaMt/132",
                    "member_nickname": "芸众售后支持namely",
                    "settlement_object": "店长",
                    "pay_name": "余额",
                    "init_price": "2.00",
                    "real_price": "2.00",
                    "settlement_price": "2.00",
                    "settlement_type": "[1]",
                    "deduction_ratio": "0.00",
                    "settlement_time": 0,
                    "commission_price": "2.00",
                    "commission_status": 1,
                    "plugin_bonus": 0
                }
            ]
        }
    }
}

错误时返回:

  {
    "result": 0,
    "msg": "",
    "data": []
}

返回参数说明:

参数名 类型 说明
count array 统计数组
total int 总数
price_all int 订单总金额
settlement_all int 提成结算总金额
commission_price int 提成总金额
settled_price int 已结算金额
unsettle_price int 未结算金额
split_price int 已分账金额
参数名 类型 说明
list array 列表数组
id int 提成id
day string 提成时间--日期
time string 提成时间--时分秒
store_id string 门店ID
storename string 门店名称
settlement_object string 结算对象
order_sn string 订单号
pay_name string 支付方式
init_price string 订单初始金额
real_price string 订单实际支付金额
member_id int 结算会员ID
member_avatar string 结算会员头像
member_nickanme string 结算会员昵称
settlement_price string 提成结算金额
settlement_type string [结算方式]
plugin_bonus string 插件分红
deduction_ratio string 平台扣点比例
settlement_time string 结算期
commission_price string 提成金额
commission_status int 0未结算,1已结算,2已分账,-1已失效

备注:

  • 更多返回错误代码请看首页的错误代码描述