Get the distribution channel's statistics, including withdrawable commission, withdrawn commission, unsettled commission, and team size.
Precautions
- This interface uses the GET method
- The user must be logged in for verification (the current user must be a distributor)
- No request parameters required
- Return comprehensive statistics of the current distributor
- Includes financial and team statistics information
Request address
{ๅๅๅฐๅ}/api/retailer/statistics
Description:{ๅๅๅฐๅ}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/statistics
Request syntax
GET {ๅๅๅฐๅ}/api/retailer/statistics
Request header
This interface also involves common request headers. For more information, please seeCommon Request Headers (Common Request Headers).
Request Parameters
None
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 | Distributor statistics information object |
Data result parameters
| Field Name | Type | Description |
|---|---|---|
| can_withdraw_amount | integer | Available Withdrawal Commission Amount (Unit: Cents) |
| Paid Withdrawal Amount | integer | Withdrawn Commission Amount (Unit: Cents) |
| Unfinished Withdrawal Amount | integer | Unsettled Commission Amount (Unit: Cents) |
| member_count | integer | team_size |
Example Usage
Request Example
GET /api/retailer/statistics HTTP/1.1
Host: www.anqicms.com
Response Example
{
"code": 0,
"msg": "",
"data": {
"can_withdraw_amount": 150000,
"paid_withdraw_amount": 50000,
"unfinished_withdraw_amount": 30000,
"member_count": 25
}
}
Error Code
| Error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in msg |
| 1001 | Not logged in |
| 1002 | Unauthorized (Current user is not a distributor) |
| 200 | API request OK |