Retrieve withdrawal application records list for distributors, supporting pagination and status filtering.
Points to note
- This interface uses the GET method
- You need to log in as a user before you can call this interface
- Only return the withdrawal records of the currently logged-in user
- Supports pagination queries, default display a fixed number of records per page
- Withdrawal records include different statuses: pending processing, approved, withdrawn, withdrawal error
Request address
{域名地址}/api/retailer/withdraw
Description:{域名地址}Replace it with your domain name, such ashttps://en.anqicms.com/api/retailer/withdraw
Request Syntax
GET {域名地址}/api/retailer/withdraw
Request Headers
This interface also involves common request headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Request parameters
| Field name | Type | Required | Description |
|---|---|---|---|
| current | int | No | Get specified pagination data, current page number, default is 1 |
| pageSize | int | No | Display number, number per page, default is 10 |
Response header
This interface only involves public response headers. For more information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field name | Type | Description |
|---|---|---|
| code | int | Error code |
| msg | string | Error description |
| data | object | result content |
| Total | int | Total |
data parameter
| Field name | Type | Description |
|---|---|---|
| id | int | Withdrawal record ID |
| user_id | int | User ID |
| amount | int | Withdrawal amount |
| success_time | int | Success Time |
| Withdrawal Method | int | Withdrawal Destination, 1-WeChat Withdrawal, 2-Alipay Withdrawal, 3-Offline |
| status | int | Withdrawal status, 0-waiting for processing, 1-agreed, 2-withdrawn, -1-withdrawal error |
| error_times | int | Number of processing errors |
| last_time | int | Last processing time |
| remark | string | Note |
| user_name | string | Username |
Usage Example
Request example
GET /api/retailer/withdraw?current=1&pageSize=10 HTTP/1.1
Host: www.anqicms.com
Response Example
{
"code": 0,
"msg": "",
"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": "用户提现"
}
],
"total": 1
}
error code
| Error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in msg |
| 1001 | Not logged in |
| 1002 | Not authorized |
| 200 | API request OK |