API call address
{域名地址}/api/retailer/withdraw
illustrate:{域名地址}
You need to replace it with your domain address, such as/api/retailer/withdraw
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 |
amount |
int |
Cash withdrawal amount |
success_time |
int |
Time for success |
withdraw_way |
int |
Where to withdraw cash, 1 WeChat withdrawal, 2 Alipay withdrawal, 3 offline |
status |
int |
Withdrawal status, 0-Pending processing 1-Agreed 2- Withdrawal, -1 Withdrawal error |
error_times |
int |
Number of errors in processing |
last_time |
int |
Last processing time |
Remark |
int |
Remark |
user_name |
int |
username |
Request data example
parameter |
value |
Current |
1 |
Return to the data example
{
"code": 0,
"data": {
"id": 1,
"user_id": 1000,
"created_time": 1669012062,
"updated_time": 1679536756,
"amount": 10000,
"user_name": "admin",
"success_time": 1679536756,
"withdraw_way": 1,
"status": 1,
"error_times": 0,
"last_time": 1679536756,
"remark": "用户提现"
},
"msg": ""
}
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 |