API 调用地址
{域名地址}/api/retailer/commissions
说明:{域名地址}
需要替换成你的域名地址,如 /api/retailer/commissions
调用方法
GET
请求参数
字段名 |
类型 |
必填 |
说明 |
current |
int |
否 |
获取指定分页数据,当前页码 |
pageSize |
int |
否 |
显示数量,每页数量 |
返回参数
字段名 |
类型 |
说明 |
code |
int |
错误码 |
msg |
string |
错误原因说明 |
data |
object |
结果内容 |
total |
int |
总数 |
data参数
字段名 |
类型 |
说明 |
id |
int |
ID |
user_id |
int |
用户ID |
order_id |
string |
订单号 |
order_amount |
int |
订单金额 |
amount |
string |
获得佣金金额 |
status |
int |
状态 |
withdraw_id |
int |
提现ID |
remark |
string |
备注 |
user_name |
string |
用户名 |
can_withdraw |
int |
是否可提现 |
请求数据示例
返回数据示例
{
"code": 0,
"data": [
{
"id": 6,
"created_time": 1671504424,
"updated_time": 1671504424,
"user_id": 1000,
"order_id": "202212201046420050",
"order_amount": 19900,
"amount": 15920,
"status": 0,
"withdraw_id": 0,
"remark": "销售收入",
"order": null,
"user_name": "",
"can_withdraw": false
},
{
"id": 5,
"created_time": 1669618222,
"updated_time": 1669618222,
"user_id": 1000,
"order_id": "202211281446070047",
"order_amount": 19900,
"amount": 15920,
"status": 0,
"withdraw_id": 0,
"remark": "销售收入",
"order": null,
"user_name": "",
"can_withdraw": false
}
],
"msg": "",
"total": 2
}
错误代码
错误码 |
说明 |
0 |
OK |
-1 |
错误,错误原因在msg中指出 |
1001 |
未登录 |
1002 |
未授权 |
200 |
API请求OK |