API call address
{域名地址}/api/retailer/commissions
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/retailer/commissions
Calling methods
GET
Request parameters
Field name |
type |
Required |
illustrate |
Current |
int |
no |
Get the specified page data, current page number |
pageSize |
int |
no |
Display quantity, quantity per page |
Return parameters
Field name |
type |
illustrate |
code |
int |
Error code |
msg |
string |
Error Cause Description |
data |
object |
Results content |
Total |
int |
total |
Data parameters
Field name |
type |
illustrate |
id |
int |
ID |
user_id |
int |
User ID |
order_id |
string |
Order number |
order_amount |
int |
Order amount |
amount |
string |
Receive commission amount |
status |
int |
state |
withdraw_id |
int |
Withdrawal ID |
Remark |
string |
Remark |
user_name |
string |
username |
can_withdraw |
int |
Is cash withdrawable? |
Request data example
parameter |
value |
Current |
1 |
Return to the 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 |
illustrate |
0 |
OK |
-1 |
Error, the cause of the error is pointed out in msg |
1001 |
Not logged in |
1002 |
Unauthorized |
200 |
API request OK |