Get the withdrawal application record list of distributors, supporting pagination query and status filtering.
Precautions
- This interface uses the GET method
- You need to log in as a user to call this interface
- Only returns withdrawal records for the currently logged-in user
- Supports pagination, with a default fixed number of records displayed per page
- Withdrawal records include different statuses: pending, approved, withdrawn, and withdrawal error
Request address
{ๅๅๅฐๅ}/api/retailer/withdraw
Description:{ๅๅๅฐๅ}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/withdraw
Request syntax
GET {ๅๅๅฐๅ}/api/retailer/withdraw
Request header
This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).
Request Parameters
| Field Name | Type | Required | Description |
|---|---|---|---|
| Current | integer | No | Get specified page data, current page number, default is 1 |
| pageSize | integer | No | Display quantity, number of items per page, default is 10 |
Response Headers
This interface only involves public response headers. More information, please refer toCommon Request Headers (Common Request Headers).
Return parameters
| Field Name | Type | Description |
|---|---|---|
| code | integer | Error code |
| message | string | Error Description |
| data | object | Result Content |
| total | integer | Total Count |
data Parameter
| Field Name | Type | Description |
|---|---|---|
| id | integer | Withdrawal record ID |
| user_id | integer | User ID |
| amount | integer | Withdrawal amount |
| success_time | integer | Successful time |
| withdraw_way | integer | English |
| status | integer | Withdrawal status, 0-waiting for processing, 1-agreed, 2-withdrawn, -1-withdrawal error |
| error_times | integer | number of processing errors |
| last_time | integer | Last processing time |
| remark | string | [en] Note |
| user_name | string | Username |
Example Usage
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 | Unauthorized |
| 200 | API request OK |