简要描述:
- 招商分红记录列表接口
请求域名:
- http://test.yunzshop.com
请求URL:
POST: addons/yun_shop/api.php?i=6&route=plugin.merchant.frontend.merchant.get-merchant-list&merchant_type=1&status=
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 店铺ID |
merchant_type | 否 | int | 空或0:招商员 1:招商中心 |
status | 否 | int | 空 : 全部 0:未结算 1:已结算 |
返回示例:
正确时返回:
{
result: 1,
msg: "成功",
data: {
total: 60,
per_page: 20,
current_page: 1,
last_page: 3,
next_page_url: null,
prev_page_url: "https://dev3.yunzmall.com/addons/yun_shop/api.php?page=2",
from: 41,
to: 60,
data: [
{
create_month: "2017-09",
item: [
{
id: 28,
create_month: "2017-09",
order_sn: "SN20170913181705lf",
order_price: "0.01",
created_at: "2017-09-13 18:17:17",
bonus_status: 1,
status_name: "已结算",
level_name: null
},
{
id: 29,
create_month: "2017-09",
order_sn: "SN20170914180020JN",
order_price: "0.01",
created_at: "2017-09-14 18:00:31",
bonus_status: 1,
status_name: "已结算",
level_name: null
}
]
},
{
create_month: "2017-08",
item: [
{
id: 28,
create_month: "2017-08",
order_sn: "SN20170813181705lf",
order_price: "0.01",
created_at: "2017-08-13 18:17:17",
bonus_status: 1,
status_name: "已结算",
level_name: null
},
{
id: 29,
create_month: "2017-08",
order_sn: "SN20170814180020JN",
order_price: "0.01",
created_at: "2017-08-14 18:00:31",
bonus_status: 1,
status_name: "已结算",
level_name: null
}
]
}
]
}
错误时返回:
{
"result":0,
"msg":"未检测到数据!",
"data": {
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
create_month | string | 月份 |
item | array | 月份列表数据 |
参数名 | 类型 | 说明 |
---|---|---|
order_sn | string | 订单号 |
created_at | string | 时间 |
bonus_money | float | 分红佣金 |
status_name | string | 分红佣金状态 |
备注:
- 更多返回错误代码请看首页的错误代码描述