简要描述:
请求域名:
- http://xx.com
请求URL:
GET/plugin.store-cashier.admin.store-data.get-list
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
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": {
"total": 168,
"price": "12003.99",
"unsettle": 1532.41,
"settle": 8620.27,
"split": 0,
"amount": 10152.68
},
"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": 10,
"store_name": "肥仔的店铺",
"cashier_goods_price": 519,
"cashier_price": 519,
"cashier_unsettle": 1.6,
"cashier_settle": 402.40000000000003,
"cashier_split": 0,
"store_goods_price": 0,
"store_price": 0,
"store_unsettle": 145,
"store_settle": 190,
"store_split": 0,
"category_name": "分类二"
},
{
"id": 9,
"store_name": "肥仔的点",
"cashier_goods_price": 3,
"cashier_price": 3,
"cashier_unsettle": 0,
"cashier_settle": 3,
"cashier_split": 0,
"store_goods_price": 0,
"store_price": 0,
"store_unsettle": 0,
"store_settle": 0,
"store_split": 0,
"category_name": "分类一"
}
]
}
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
count | array | 统计数组 |
total | int | 总数 |
price | int | 订单总金额 |
amount | int | 提成总金额 |
settle | int | 已结算金额 |
unsettle | int | 未结算金额 |
split | int | 已分账金额 |
参数名 | 类型 | 说明 |
---|---|---|
list | array | 列表数组 |
id | int | 门店id |
storename | string | 门店名称 |
category_name | string | 门店分类 |
cashier_goods_price | string | 订单初始金额:收银台 |
cashier_price | string | 订单实际支付金额:收银台 |
cashier_unsettle | string | 未结算金额:收银台 |
cashier_settle | string | 已结算金额:收银台 |
cashier_split | string | 已分帐金额:收银台 |
store_goods_price | string | 订单初始金额:门店 |
store_price | string | 订单实际支付金额:门店 |
store_unsettle | string | 未结算金额:门店 |
store_settle | string | 已结算金额:门店 |
store_split | string | 已分帐金额:门店 |
备注:
- 更多返回错误代码请看首页的错误代码描述