Get Distribution Team List Interface

API Call Address

{域名地址}/api/retailer/members

Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/retailer/members

Calling Method

GET

Request Parameters

Field Name Type Required Description
Current integer No Get specified page data, current page number
pageSize integer No Number of items to display, number of items per page

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 User ID
parent_id integer Parent User ID
user_name string Username
Real Name string True Name
avatar_url string User avatar address
email string Email address
phone string Phone number
group_id integer User group ID
is_retailer integer Is the retailer
balance integer User Balance
Total Reward integer Distributor Cumulative Earnings
Invite Code integer User invitation code
Last login integer Time of last login
Expire time integer Expiration time
created_time integer registration timestamp
updated_time integer update timestamp
status integer Show Status

Request Data Example

Parameters Value
Current 1

Return Data Example

{
  "code": 0,
  "data": [
    {
      "id": 2,
      "created_time": 0,
      "updated_time": 1665753923,
      "parent_id": 1000,
      "user_name": "wangxiaocong",
      "real_name": "",
      "avatar_url": "",
      "email": "",
      "phone": "",
      "group_id": 1,
      "status": 1,
      "is_retailer": 0,
      "balance": 0,
      "total_reward": 0,
      "invite_code": "",
      "last_login": 0,
      "expire_time": 0,
      "extra": null,
      "token": "",
      "group": null,
      "full_avatar_url": "",
      "link": ""
    },
    {
      "id": 1,
      "created_time": 0,
      "updated_time": 1665755545,
      "parent_id": 1000,
      "user_name": "wangdacong",
      "real_name": "王小强",
      "avatar_url": "",
      "email": "[email protected]",
      "phone": "13888888888",
      "group_id": 1,
      "status": 1,
      "is_retailer": 1,
      "balance": 0,
      "total_reward": 0,
      "invite_code": "123456",
      "last_login": 0,
      "expire_time": 1667404800,
      "extra": null,
      "token": "",
      "group": null,
      "full_avatar_url": "",
      "link": ""
    }
  ],
  "msg": "",
  "total": 2
}

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