API Call Address
{域名地址}/api/retailer/commissions
Description:{域名地址}
Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/commissions
Calling method
GET
Request parameters
Field name |
Type |
Required |
Description |
current |
int |
No |
Get specified pagination data, current page number |
Page size |
int |
No |
Display quantity, items per page |
Return parameters
Field name |
Type |
Description |
code |
int |
error code |
msg |
string |
error reason description |
data |
object |
result content |
Total |
int |
Total count |
data parameter
Field name |
Type |
Description |
id |
int |
ID |
user_id |
int |
User ID |
order_id |
string |
Order Number |
order_amount |
int |
Order Amount |
Amount |
string |
Commission Amount |
status |
int |
Status |
withdraw_id |
int |
withdraw ID |
remark |
string |
Note |
user_name |
string |
Username |
can_withdraw |
int |
whether withdrawable |
request data example
Parameter |
Value |
current |
1 |
Return Data Example
{
"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
}
Error Code
error code |
Description |
0 |
OK |
-1 |
Error, the reason is indicated in the msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |