Skip to main content

Agent Customers


1. List agent customers

GET /open/customer/list

Description: Returns agent customer records with pagination and optional filters.

Request parameters

NameTypeRequiredDescriptionDefault
pageNumIntegerNoPage number1
pageSizeIntegerNoPage size10
userNameStringNoCustomer accountnull

Response format

FieldTypeDescription
codeInteger200 = success
msgStringMessage
dataObjectPayload
data.totalLongTotal records
data.rowsArray<Object>Rows
data.rows[].trafficCountBigDecimalRecharged traffic (MB)
data.rows[].residualFlowBigDecimalRemaining traffic (MB)
data.rows[].customerIdLongCustomer ID
data.rows[].userNameStringLogin username

Request example

curl -X GET "http://user.ipweb.cc/prod-api/open/customer/list?pageNum=1&pageSize=10&userName=" -H "token: your-access-token"

Response example

Success:

{
"msg": "操作成功",
"code": 200,
"data": {
"total": 1,
"rows": [
{
"trafficCount": 512000000.0,
"residualFlow": 205587097.6,
"customerId": 39,
"userName": "bazhuayu@gmaill.com"
}
],
"code": 200,
"msg": "查询成功",
"other": null
}
}

Authentication failed:

{
"code": 200,
"msg": "无效的认证令牌",
"data": null
}

2. Create account

GET /api/agent/addUser?userName=lisi@q.com

Description: Create a user account.

Request parameters

NameRequiredTypeDescription
userNameYesStringAccount email

Response fields

NameTypeDescription
codeInteger200 success; 201 name exists (your channel); 202 exists (other channel); else failure
msgStringMessage
customerIdIntegerCustomer ID
TokenStringUser token
passwordStringRandom verification password

Response example

{
"msg": "注册失败,该用户名已存在,不是该渠道的客户",
"code": 202
}

{
"msg": "操作成功",
"password": "abcdefg",
"code": 200,
"customerId": 888,
"Token": "AAEYX6KEXMJUZ86NVZRASRZF50A"
}

3. Update proxy password

GET /api/agent/updatePwd?customerId=888&password=123456

Request parameters

NameRequiredTypeDescription
customerIdYesStringTarget customer ID
passwordYesStringNew password

Response fields

NameTypeDescription
codeInteger200 success; 201 name exists (your channel); else failure
msgStringMessage

Response example

{
"msg": "成功",
"code": 200
}

4. Enable or disable customer

GET /api/agent/changeStatus?customerId=888&customerState=1

Request parameters

NameRequiredTypeDescription
customerIdYesStringTarget customer ID
customerStateYesInteger0 = active; 1 = disabled

Response fields

NameTypeDescription
codeInteger200 success; 201 name exists (your channel); else failure
msgStringMessage

Response example

{
"msg": "成功",
"code": 200
}

© 2025 Agent Customer API — v1.0.0

Last updated: December 26, 2025