ProxyLite OpenAPI
支持通过站点 OpenAPI 前缀管理个人账户、代理资源和团队账单。
认证方式以各操作的 security 定义为准:
- apiKeyAuth:通过查询参数 app_key 传入个人或团队 API Key;后端也兼容 key、appkey、openid 参数及 POST 请求体传参。
- bearerAuth:Authorization: Bearer <JWT>,用于网页登录令牌。请勿把 API Key 当作 JWT。
- 团队 API Key 绑定固定团队;支持团队空间的接口可省略 team_id,显式传入必须与 Key 绑定团队一致。
- 仅支持个人空间的接口会拒绝团队 API Key;团队操作仍遵循持有成员的资源权限。
JSON 响应包含 code、msg、data、request_id。code=200 表示业务成功;HTTP 200 也可能携带业务错误码。 msg 随请求语言变化,客户端应使用 code 判断结果。部分导出接口另支持文本、CSV 或 XML,详见操作定义。 金额、流量、日期和分页字段以各接口 Schema 为准。
基础 URL:
认证
- HTTP 认证,方案:bearer
- API Key(apiKeyAuth)
- 参数名称: app_key, in: query. 个人或团队 API Key。推荐查询参数 app_key;也兼容 key/appkey/openid 及 POST 请求体。团队 Key 只能访问绑定团队的受支持接口。
代理账户管理
代理账户列表 (GET /end-point/whitelist-account/list)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/whitelist-account/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/whitelist-account/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串;团队 Key 可省略,传入时必须与 Key 一致 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"username": "string",
"password": "string",
"created_at": "string",
"remark": "string",
"product_type": 9,
"usage_flow": 0,
"limit_flow": 102400,
"status": 0
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | responseCode | false | 无 | 状态码,200 成功、3 app_key 无效 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» id | integer | false | 无 | 账户编号 |
| »»» username | string | false | 无 | 代理账户名 |
| »»» password | string | false | 无 | 代理账户密码 |
| »»» created_at | string | false | 无 | 添加时间 |
| »»» remark | string | false | 无 | 备注 |
| »»» product_type | productTypes | false | 无 | 套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP |
| »»» usage_flow | integer | false | 无 | 已使用流量,单位:KB |
| »»» limit_flow | integer | false | 无 | 自定义流量上限:单位GB最大102400,0 不限制 |
| »»» status | integer | false | 无 | 启用状态:1启用,0停用 |
枚举值
| 属性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
检测代理账户可设置的流量限制
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/check \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/check
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"account": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » account | body | string | false | 编辑已有代理账户时传入账号名称 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"isAgent": 0,
"trendMax": 0,
"staticMax": 0,
"maxLimit": 0,
"minLimit": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| isAgent | 0 |
| isAgent | 1 |
获取动态代理子账号配额与已用数量
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/whitelist-account/child-account \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/whitelist-account/child-account
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"totalChildAccount": 0,
"usedChildAccount": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
添加代理账户。 (POST /end-point/whitelist-account/add)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01:pass,user02:pass,user03:pass",
"remark": "",
"product_type": 9
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 账户密码,请按格式 username:password 填写,账户和密码仅支持数字和字母,禁止输入任何特殊符号或空格,冒号隔开账户和密码。支持批量添加,英文逗号(,)分隔代理账户。 |
| » remark | body | string | false | 代理账户描述 |
| » product_type | body | productTypes | false | 套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP |
枚举值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 14 |
| » product_type | 25 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
删除代理账户 (POST /end-point/whitelist-account/delete)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/delete
请注意删除后无法恢复,已使用流量等无法查询。删除约有5分钟等待时间,在此期间仍可能产生费用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
禁用代理账户 (POST /end-point/whitelist-account/disable)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/disable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/disable
禁用约有5分钟等待时间,在此期间仍可能产生费用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
启用代理账户 (POST /end-point/whitelist-account/enable)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/enable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/enable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
修改代理账户密码
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/change-password \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/change-password
请注意修改后有5分钟等待时间,在此期间旧密码仍可能正常使用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"password": "pass"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » account | body | string | true | 代理账户,仅支持数字和字母。 |
| » password | body | string | true | 代理账户新密码,仅支持数字和字母。 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
修改代理账户备注
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/change-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/change-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"remark": ""
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » account | body | string | true | 代理账户,仅支持数字和字母。 |
| » remark | body | string | true | 代理账户新备注,32个中文或64个英文以内。 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
修改代理账户流量上限
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/change-limit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/change-limit
请注意流量统计可能有5分钟以内延迟,即实际消耗流量可能超过此限制。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"account": "user",
"limit": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » account | body | string | true | 代理账户,仅支持数字和字母。 |
| » limit | body | integer | false | 流量限制,单位:GB,0为不设上限 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
快速创建代理账户
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/quick-add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/quick-add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"product_type": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » product_type | body | integer | true | 无 |
响应示例
200 响应
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"username": "string",
"password": "string"
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 业务成功时返回新账户和密码 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | none |
| » msg | string | false | 无 | none |
| » request_id | string | false | 无 | none |
| » data | any | false | 无 | none |
oneOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| »» anonymous | object | false | 无 | none |
| »»» username | string | true | 无 | none |
| »»» password | string | true | 无 | none |
xor
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| »» anonymous | null | false | 无 | none |
修改代理账户每日流量上限
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/change-daily-limit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/change-daily-limit
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"account": "string",
"daily_limit": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » account | body | string | true | 无 |
| » daily_limit | body | integer | false | 单位 GB |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
修改代理账户信息 (POST /end-point/whitelist-account/change)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/change \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/change
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"account": "string",
"password": "string",
"remark": "string",
"limit": 0,
"daily_limit": 0,
"status": 0,
"udp": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » account | body | string | true | 无 |
| » password | body | string | false | 无 |
| » remark | body | string | false | 无 |
| » limit | body | integer | false | 总流量上限,单位 GB |
| » daily_limit | body | integer | false | 每日流量上限,单位 GB |
| » status | body | integer | false | 无 |
| » udp | body | integer | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » udp | 0 |
| » udp | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
刷新当前资源空间的代理账户认证缓存
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/whitelist-account/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/whitelist-account/refresh
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
指定产品类型的代理账户配额
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/whitelist-account/quota?product_type=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/whitelist-account/quota
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| product_type | query | integer | true | 无 |
响应示例
200 响应
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"usage": 0,
"limit": 0,
"expand": 0
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | none |
| » msg | string | false | 无 | none |
| » request_id | string | false | 无 | none |
| » data | object | false | 无 | none |
| »» usage | integer | true | 无 | none |
| »» limit | integer | true | 无 | none |
| »» expand | integer | true | 无 | none |
所有产品类型的代理账户配额
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/whitelist-account/quotas \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/whitelist-account/quotas
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
响应示例
200 响应
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"product_type": 0,
"limit": 0,
"usage": 0
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | none |
| » msg | string | false | 无 | none |
| » request_id | string | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» product_type | integer | false | 无 | none |
| »»» limit | integer | false | 无 | none |
| »»» usage | integer | false | 无 | none |
代理账户列表 (GET /end-point/proxy-account/list)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/proxy-account/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/proxy-account/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串;团队 Key 可省略,传入时必须与 Key 一致 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"username": "string",
"password": "string",
"created_at": "string",
"remark": "string",
"product_type": 9,
"usage_flow": 0,
"limit_flow": 102400,
"status": 0
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | responseCode | false | 无 | 状态码,200 成功、3 app_key 无效 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» id | integer | false | 无 | 账户编号 |
| »»» username | string | false | 无 | 代理账户名 |
| »»» password | string | false | 无 | 代理账户密码 |
| »»» created_at | string | false | 无 | 添加时间 |
| »»» remark | string | false | 无 | 备注 |
| »»» product_type | productTypes | false | 无 | 套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP |
| »»» usage_flow | integer | false | 无 | 已使用流量,单位:KB |
| »»» limit_flow | integer | false | 无 | 自定义流量上限:单位GB最大102400,0 不限制 |
| »»» status | integer | false | 无 | 启用状态:1启用,0停用 |
枚举值
| 属性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
添加代理账户。 (POST /end-point/proxy-account/add)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-account/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-account/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01:pass,user02:pass,user03:pass",
"remark": "",
"product_type": 9
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 账户密码,请按格式 username:password 填写,账户和密码仅支持数字和字母,禁止输入任何特殊符号或空格,冒号隔开账户和密码。支持批量添加,英文逗号(,)分隔代理账户。 |
| » remark | body | string | false | 代理账户描述 |
| » product_type | body | productTypes | false | 套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP |
枚举值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 14 |
| » product_type | 25 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
删除代理账户 (POST /end-point/proxy-account/delete)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-account/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-account/delete
请注意删除后无法恢复,已使用流量等无法查询。删除约有5分钟等待时间,在此期间仍可能产生费用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
启用代理账户 (POST /end-point/proxy-account/enable)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-account/enable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-account/enable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
禁用代理账户 (POST /end-point/proxy-account/disable)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-account/disable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-account/disable
禁用约有5分钟等待时间,在此期间仍可能产生费用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » accounts | body | string | true | 代理账户,仅支持数字和字母。支持批量操作,英文逗号(,)分隔代理账户 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
修改代理账户信息 (POST /end-point/proxy-account/change)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-account/change \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-account/change
修改代理账户密码、备注、流量限制、每日流量限制、启用状态或 UDP 开关。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"account": "string",
"password": "string",
"remark": "string",
"limit": 0,
"daily_limit": 0,
"status": 0,
"udp": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » account | body | string | true | 代理账户名 |
| » password | body | string | false | 新密码,6-16 位数字或字母;不传则不修改 |
| » remark | body | string | false | 新备注 |
| » limit | body | integer | false | 流量上限,单位 GB,0 表示不限制 |
| » daily_limit | body | integer | false | 每日流量上限,单位 GB,0 表示不限制 |
| » status | body | integer | false | 启用状态 |
| » udp | body | integer | false | UDP 支持开关,仅对套餐类型 14、16、21、25 生效 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » udp | 0 |
| » udp | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
生成代理连接信息
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/whitelist-account/format?ac=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/whitelist-account/format
支持个人和团队 API Key。仅返回当前资源空间内有权访问的代理账号,支持套餐类型 9、11、12。JSON/XML 返回结构化账密列表;txt/csv 返回按 f 格式拼接的连接串。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| ac | query | integer,string | true | 代理账号 ID 或用户名;兼容参数 account |
| ae | query | string | false | 无 |
| st | query | string | false | 无 |
| ct | query | string | false | 无 |
| lf | query | integer | false | 无 |
| n | query | integer | false | 无 |
| f | query | integer | false | 仅影响 txt/csv 的连接串格式 |
| type | query | string | false | 无 |
| lb | query | string | false | 无 |
| ep | query | string | false | 无 |
| team_id | query | ResourceSpaceId | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| f | 1 |
| f | 2 |
| f | 3 |
| f | 4 |
| f | 5 |
| type | json |
| type | xml |
| type | txt |
| type | csv |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"password": "string",
"server": "string",
"port": 0
}
]
},
"request_id": "string"
}
"string"
<?xml version="1.0" encoding="UTF-8" ?>
<WebV1SuccessResponse>
<code>200</code>
<msg>SUCCESS</msg>
<data/>
<request_id>string</request_id>
</WebV1SuccessResponse>
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | WebV1SuccessResponse |
订单管理
订单创建、查询、取消等
订单列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/order/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/order/list
团队空间订单额外返回 creator,表示实际下单成员;管理员和超级管理员可见完整联系方式,其他角色返回脱敏联系方式。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 订单资源空间标识;个人空间省略或传空字符串 |
| page_no | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
| trade_no | query | string | false | 订单编号 |
| start_time | query | string(date-time) | false | 开始时间(包含),如 2024-01-01 00:00:00 |
| end_time | query | string(date-time) | false | 结束时间(不包含) |
| status | query | integer | false | 订单状态 |
| product_type | query | integer | false | 产品类型 |
| invoice | query | integer | false | 发票状态:0不限制 1已开发票 -1未开发票(可补开) |
| pay_fee_status | query | integer | false | 长短款筛选:1超额支付 2短款支付 |
Detailed descriptions
status: 订单状态
| 状态 | 描述 |
|---|---|
| 0 | 待支付 |
| 1 | 已支付 |
| 2 | 超时未支付已取消 |
| 3 | 已退款 |
product_type: 产品类型
| 产品类型 | 描述 |
|---|---|
| 3 | 余额充值 |
| 9 | 动态流量套餐 |
| 11 | 动态全球包时套餐V2 |
| 12 | 长效IDC流量套餐 |
| 13 | 住宅静态IP流量套餐 |
| 14 | 数据中心静态IP套餐 |
| 15 | 长效ISP流量套餐 |
| 16 | 静态流量套餐 |
| 17 | 动态IP数量套餐 |
| 18 | web-scraper |
| 19 | 静态IP续费 |
| 20 | 静态IP更换配额 |
| 21 | 静态流量套餐v2 |
| 24 | 静态流量附加包套餐 |
| 25 | 住宅静态IP套餐 |
| 26 | 补单 - 部分支付渠道需要用户手动填写金额,如:虚拟币,若发生短款,需要联系客服通过此种产品进行补支付 |
| 27 | Serp |
| 28 | Video |
枚举值
| Parameter | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| product_type | 3 |
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 17 |
| product_type | 18 |
| product_type | 19 |
| product_type | 21 |
| product_type | 24 |
| product_type | 25 |
| product_type | 26 |
| product_type | 27 |
| product_type | 28 |
| invoice | -1 |
| invoice | 0 |
| invoice | 1 |
| pay_fee_status | 1 |
| pay_fee_status | 2 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
}
],
"pagination": {
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 成功 | Inline |
响应结构
创建订单
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/order/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/order/create
因套餐种类较多,且每种套餐存在不同的配置,请根据实际情况填写参数。不正当填写参数可能导致订单创建失败。
examples:
续费静态IP
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"upids": "1,2,3,4,5,6", // 从 /openapi/ip/get-static-ip 接口获取对应的 id 字段
"pm_id": 1 // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
}
静态住宅IP购买
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"pm_id": 支付方式ID, // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
"region_list": "JP,15,333|DE,10,444|US,5,555" // 格式:地区,数量,ASN|地区,数量,ASN(ASN编号可选)
}
静态数据中心IP购买
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"pm_id": 支付方式ID, // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
"region_list": "JP,15,333|DE,10,444|US,5,555" // 格式:地区,数量,ASN|地区,数量,ASN(ASN编号可选)
}
动态住宅流量购买
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"pm_id": 支付方式ID // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
}
静态轮换流量购买
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"pm_id": 支付方式ID // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
}
动态无限流量购买
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"pm_id": 支付方式ID, // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
"product_sku_bandwidth_id": 带宽规格ID,
"product_sku_concurrency_id": 并发规格ID
}
余额充值
{
"pid": 套餐ID, // 从 /openapi/product 接口获取
"pm_id": 支付方式ID, // 从 /openapi/payment/list 或 /openapi/payment/groups 接口获取
"recharge_amount": 充值金额
}
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"pid": 0,
"upids": "string",
"amount": 0,
"pm_id": 0,
"region_list": "string",
"coupon_sn": "string",
"use_invitation_registration_discount": true,
"renew_duration": 0,
"product_sku_bandwidth_id": 0,
"product_sku_concurrency_id": 0,
"product_sku_duration_id": 0,
"etd": 1,
"recharge_amount": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » pid | body | integer | true | 套餐ID,来自 /openapi/product 接口返回的 id 字段 |
| » upids | body | string | false | 续费套餐ID列表(逗号分隔),来自 /openapi/user-product/list 或 /openapi/ip/get-static-ip 接口返回的 id 字段 |
| » amount | body | number | false | 新购套餐数量 |
| » pm_id | body | integer | true | 支付方式ID,来自 /openapi/payment/list 或 /openapi/payment/groups 接口返回的 id 字段 |
| » region_list | body | string | false | 购买静态IP时指定区域+数量+ASN编号,格式:地区,数量,ASN |
| » coupon_sn | body | string | false | 优惠券编号 |
| » use_invitation_registration_discount | body | boolean | false | 是否使用邀请注册优惠 |
| » renew_duration | body | integer | false | 续费时长-静态IP可选 |
| » product_sku_bandwidth_id | body | integer | false | 套餐11:带宽套餐ID |
| » product_sku_concurrency_id | body | integer | false | 套餐11:并发套餐ID |
| » product_sku_duration_id | body | integer | false | 套餐type=11必填:时长规格ID |
| » etd | body | integer | false | 时长倍数,从套餐 extension_of_time_days 获取,2代表天数×2,价格上浮 |
| » recharge_amount | body | integer | false | 套餐3:充值金额 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 创建成功 | Inline |
响应结构
取消订单
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/order/close \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/order/close
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"trade_no": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » trade_no | body | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
订单详情
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/order/info?trade_no=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/order/info
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| trade_no | query | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
订单详情 V2
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/order/info-v2?order_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/order/info-v2
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| order_id | query | string | true | 客户端加密后的订单 ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;订单已支付或已取消时可能以业务错误 code 携带订单数据 | Inline |
响应结构
历史订单补开发票
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/order/reissue-invoice \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/order/reissue-invoice
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"trade_no_list": [
"string"
]
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » trade_no_list | body | [string] | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
订单预检
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/order/check \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/order/check
创建订单前调用,用于预览价格、折扣、IP续费明细等,不会实际创建订单。 参数与 /openapi/order/create 完全一致。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"pid": 0,
"upids": "string",
"amount": 1,
"pm_id": 0,
"region_list": "string",
"coupon_sn": "string",
"renew_duration": "1m",
"product_sku_bandwidth_id": 0,
"product_sku_concurrency_id": 0,
"product_sku_duration_id": 0,
"etd": 1,
"recharge_amount": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » pid | body | integer | true | 套餐ID |
| » upids | body | string | false | IP续费:用户套餐ID列表,逗号分隔 |
| » amount | body | integer | false | 购买数量 |
| » pm_id | body | integer | true | 支付方式ID |
| » region_list | body | string | false | 静态IP购买地区+数量,格式:地区ID,数量 |
| » coupon_sn | body | string | false | 优惠券编号 |
| » renew_duration | body | string | false | IP续费时长:1m=1个月,2m=2个月,em=下个月月底 |
| » product_sku_bandwidth_id | body | integer | false | 套餐type=11必填:带宽规格ID |
| » product_sku_concurrency_id | body | integer | false | 套餐type=11必填:并发规格ID |
| » product_sku_duration_id | body | integer | false | 套餐type=11必填:时长规格ID |
| » etd | body | integer | false | 时长倍数,从套餐 extension_of_time_days 获取 |
| » recharge_amount | body | number | false | 套餐type=3必填:充值金额 |
枚举值
| Parameter | Value |
|---|---|
| » renew_duration | 1m |
| » renew_duration | 2m |
| » renew_duration | em |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"product_id": 0,
"amount": 0,
"discount_fee": 0.1,
"total_fee": 0.1,
"pay_fee": 0.1,
"product_type": 0,
"title": "string",
"detail": "string",
"ip_result": [
{
"ip": "string",
"price": 0.1,
"country_code": "string",
"current_time": "2019-08-24T14:15:22Z",
"renewal_time": "2019-08-24T14:15:22Z",
"country": {
"name_zh_cn": "string",
"flag": "string",
"square_flag": "string"
}
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 预检成功 | Inline |
响应结构
API Key 管理
个人和团队资源空间的 API Key 管理
API Key 列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/api-keys \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/api-keys
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| page | query | integer | false | 无 |
| pageSize | query | integer | false | 无 |
响应示例
200 响应
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"pageSize": 1
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | none |
| » msg | string | true | 无 | none |
| » request_id | string | true | 无 | none |
| » data | object | true | 无 | none |
| »» list | [UserApiKeyMetadata] | true | 无 | none |
| »»» id | integer | true | 无 | API Key ID |
| »»» api_key | string | true | 无 | 创建响应为完整 Key;团队列表中为脱敏值 |
| »»» team_user_id | integer | true | 无 | 团队 Key 实际持有成员 ID,个人 Key 为 0 |
| »»» remark | string | true | 无 | 备注 |
| »»» status | integer | true | 无 | 0=停用,1=启用 |
| »»» created_at | string | true | 无 | 创建时间 |
| »»» updated_at | string,null | false | 无 | 更新时间 |
| »» total | integer | true | 无 | none |
| »» page | integer | true | 无 | none |
| »» pageSize | integer | true | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
创建 API Key
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/api-keys/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/api-keys/create
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"remark": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » remark | body | string | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 业务成功时返回完整 API Key,仅此一次 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
启用 API Key
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/api-keys/enable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/api-keys/enable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | API Key ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
停用 API Key
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/api-keys/disable \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/api-keys/disable
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | API Key ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
删除 API Key
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/api-keys/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/api-keys/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | API Key ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
修改 API Key 备注
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/api-keys/update-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/api-keys/update-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"remark": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | 无 |
| » remark | body | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
月度续费账单
月度汇总续费的实时账单、预检、下单和历史记录
当前月度汇总续费账单
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/monthly-renewal-bill \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/monthly-renewal-bill
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"batch": {
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
},
"currency": "string",
"total_fee": 0,
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| type | current |
| type | next |
检查月度汇总续费订单
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/monthly-renewal-bill/check \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/monthly-renewal-bill/check
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | MonthlyRenewalRequest | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"batch": {
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
},
"currency": "string",
"total_fee": 0,
"discount_fee": 0,
"pay_fee": 0,
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"user_coupon_id": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| type | current |
| type | next |
创建月度汇总续费订单
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/monthly-renewal-bill/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/monthly-renewal-bill/create
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | MonthlyRenewalRequest | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"trade_no": "string",
"total_fee": 0,
"discount_fee": 0,
"pay_fee": 0,
"currency": "string",
"user_coupon_id": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
月度汇总续费历史账单
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/monthly-renewal-bill/history \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/monthly-renewal-bill/history
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| trade_no | query | string | false | 无 |
| start_date | query | string(date) | false | 无 |
| end_date | query | string(date) | false | 无 |
| page | query | integer | false | 无 |
| size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"total": 0,
"page": 1,
"size": 1,
"list": [
{
"id": 1,
"trade_no": "string",
"status": 0,
"pay_fee": 0,
"currency": "string",
"pay_at": "string",
"created_at": "string",
"pay_method": 0,
"pm_id": 0,
"pay_channel": 0,
"pm_title": "string",
"pm_logo": "string",
"items": [
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
]
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
发票管理
发票抬头、开票申请和可开票订单
发票抬头详情
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-invoice/info \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-invoice/info
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| invoice_code | query | string | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
创建或修改发票抬头
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-invoice/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-invoice/create
Body parameter
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true,
"team_id": "A1b2C3d4E5f6",
"new_invoice_code": false
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | any | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功,data 为 null | Inline |
响应结构
发票抬头列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-invoice/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-invoice/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true,
"created_at": 0
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
删除发票抬头
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-invoice/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-invoice/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invoice_code": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » invoice_code | body | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功,data 为 null | Inline |
响应结构
开票记录列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-invoice/record-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-invoice/record-list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| status | query | integer | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"invoice_no": "string",
"invoice_amount": 0,
"invoice_download_url": "string",
"status": 0,
"remark": "string",
"order_ids": [
0
],
"created_at": 0,
"invoice_info": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"role_type": 1,
"invoice_type": 0
}
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
提交开票申请
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-invoice/submit \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-invoice/submit
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invoice_code": "string",
"order_ids": [
0
]
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » invoice_code | body | string | true | 无 |
| » order_ids | body | [integer] | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoice_id": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
取消开票申请
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-invoice/cancel \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-invoice/cancel
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invoice_id": 1,
"reason": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » invoice_id | body | integer | true | 无 |
| » reason | body | string | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功,data 为 null | Inline |
响应结构
开票金额统计
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-invoice/statistics \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-invoice/statistics
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invoiceable_amount": 0,
"invoiced_amount": 0,
"processing_amount": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
可开票订单列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-invoice/invoiceable-orders \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-invoice/invoiceable-orders
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"order_no": "string",
"pay_fee": 0,
"created_at": 0
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
团队管理
团队创建、查询、改名和解散
创建团队
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/create
Body parameter
{
"name": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » name | body | string | true | 团队名称 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
当前用户可访问的团队列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
团队详情
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/detail?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/detail
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
修改团队名称
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/update-name \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/update-name
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"name": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » name | body | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
解散团队
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/dissolve \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/dissolve
仅团队超级管理员可调用。请求中的 name 必须与团队当前名称完全一致。 该接口强制执行操作二次验证:未处于 15 分钟信任状态时返回 code=348, 调用方应根据响应 data 中的可用方式取得验证码后,携带 verify_type 和 verify_code 重试。 可重复调用以继续未完成的解散流程。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"name": "华东研发团队",
"verify_type": "email",
"verify_code": "123456"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » name | body | string | true | 团队名称确认,必须与团队当前名称完全一致 |
| » verify_type | body | string | false | 二次验证方式;需要验证时与 verify_code 一起提交 |
| » verify_code | body | string | false | 二次验证码;处于 15 分钟信任状态时可不传 |
枚举值
| Parameter | Value |
|---|---|
| » verify_type | phone |
| » verify_type | |
| » verify_type | |
| » verify_type | totp |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
查询团队解散状态
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/dissolve-status?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/dissolve-status
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
团队成员
团队成员列表、角色调整、移除和退出
团队成员列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/members?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/members
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
团队人员统一列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/people?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/people
返回有效成员;超级管理员和管理员还会看到待处理邀请。其他邀请状态仅保留在邀请历史列表中。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| record_type | member |
| record_type | invitation |
| invite_type | 0 |
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 0 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
调整成员角色
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/members/update-role \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/members/update-role
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"team_member_id": 1,
"role": 2
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » team_member_id | body | integer | true | 无 |
| » role | body | integer | true | 无 |
枚举值
| Parameter | Value |
|---|---|
| » role | 2 |
| » role | 3 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
移除团队成员
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/members/remove \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/members/remove
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"team_member_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » team_member_id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data.status=3 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
退出团队
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/members/leave \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/members/leave
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data.status=2 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
团队邀请
团队成员邀请的创建、查询和处理
创建团队邀请
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/invitations/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/invitations/create
按已注册用户、邮箱或手机号创建邀请。邮箱或手机号匹配到本站用户时,响应会规范化为 invite_type=1。 前端可提交本站邀请 URL 相对路径模板,服务端仅将其中的 替换为一次性邀请令牌。 未注册目标使用受邀手机号注册,或使用受邀邮箱完成验证后,服务端会将仍有效的邀请绑定到新用户、轮换 token,并只补发一条未读站内信;原邮件或短信中的旧 token 随即失效。若邮箱邀请尚未完成自动绑定,使用受邀邮箱注册的当前账号可直接接受,无需等待 email_verify。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invite_type": 1,
"role": 2,
"user_id": 1,
"email": "[email protected]",
"country_code": 1,
"phone": "string",
"invitation_url_template": "/team/invitation/{{token}}"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » invite_type | body | integer | true | 1=已注册用户,2=邮箱,3=手机号 |
| » role | body | integer | true | 2=管理员,3=普通成员 |
| » user_id | body | integer | false | invite_type=1 时必填 |
| body | string(email) | false | invite_type=2 时必填 | |
| » country_code | body | integer | false | invite_type=3 时必填 |
| » phone | body | string | false | invite_type=3 时必填 |
| » invitation_url_template | body | string | false | 本站前端定义的相对路径模板;必须以单个 / 开头、不得包含域名或换行,且必须且只能包含一个 占位符 |
| » anonymous | body | object | false | 无 |
| »» invite_type | body | any | false | 无 |
| » anonymous | body | object | false | 无 |
| »» invite_type | body | any | false | 无 |
| » anonymous | body | object | false | 无 |
| »» invite_type | body | any | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| » invite_type | 1 |
| » invite_type | 2 |
| » invite_type | 3 |
| » role | 2 |
| » role | 3 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_token": "string",
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code,200 为业务成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
团队邀请列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/invitations?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/invitations
仅团队超级管理员或管理员可访问;返回前会将已到期的待处理邀请更新为已过期。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 团队公开标识 |
| page | query | integer | false | 页码,从 1 开始 |
| page_size | query | integer | false | 每页数量 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
预览团队邀请
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/invitations/preview?invitation_token=string \
-H 'Accept: application/json'
GET /end-point/team/invitations/preview
使用一次性 invitation_token 匿名预览邀请;链接中不使用邀请数字 ID。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| invitation_token | query | string | true | 邀请链接携带的非空明文一次性令牌 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_name": "string",
"role": 2,
"status": 0,
"expired_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
重发团队邀请通知
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/invitations/resend \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/invitations/resend
重投原始发送渠道;已注册用户同时发送站内信。重发会轮换令牌,之前的所有邀请链接立即失效。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invitation_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » invitation_id | body | integer | true | 邀请 ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
接受团队邀请
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/invitations/accept \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/invitations/accept
当前登录用户使用一次性 invitation_token 接受邀请,必须与邀请目标匹配且属于邀请所属站点;不需要传 team_id。
Body parameter
{
"invitation_token": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » invitation_token | body | string | true | 明文一次性邀请令牌 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 为成员对象 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
拒绝团队邀请
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/invitations/reject \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/invitations/reject
当前登录用户使用一次性 invitation_token 拒绝与本人匹配的邀请;不需要传 team_id。
Body parameter
{
"invitation_token": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » invitation_token | body | string | true | 明文一次性邀请令牌 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data.status=2 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
取消团队邀请
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/invitations/cancel \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/invitations/cancel
取消指定团队内的待处理邀请,操作人必须有权邀请该目标角色。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"invitation_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » invitation_id | body | integer | true | 邀请 ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data.status=3 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
团队资产
团队资产查询和个人/团队空间划转
团队套餐信息
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/product-info?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/product-info
返回指定团队资源空间的套餐摘要,字段与 /web_v1/user/info 的套餐字段保持一致, 不返回团队超级管理员的个人资料、余额或内部数字团队 ID。积分套餐详细信息请使用 /web_v1/credit/info。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
团队资产列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/assets?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/assets
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
可划入团队的个人资产
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/assets/personal-candidates?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/assets/personal-candidates
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
个人资产划入团队
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/assets/move-in \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/assets/move-in
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » user_product_id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
团队资产移回个人
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/assets/move-out \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/assets/move-out
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » user_product_id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
积分管理
积分套餐信息、自动补充、消耗记录和统计
获取积分套餐信息 (GET /web_v1/credit/info)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/credit/info \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/info
查询当前资源空间的积分套餐摘要。团队空间要求 USE_ASSETS 权限;此接口同时支持登录态、个人 API Key 和团队 API Key。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串;团队 API Key 可省略,传入时必须与 Key 一致 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 为积分等级、总量、剩余量、重置时间和自动补充状态 | Inline |
响应结构
设置余额自动补充积分
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/web_v1/credit/update-auto-supplement \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /web_v1/credit/update-auto-supplement
登录态设置当前资源空间的自动补充开关。团队空间要求 USE_OWNER_PAYMENT_CAPABILITIES 权限,当前仅团队超级管理员可操作;团队空间默认关闭。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"status": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » status | body | integer | true | 0=关闭,1=开启 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data.status 为更新后的开关状态 | Inline |
响应结构
获取积分消耗记录 (GET /web_v1/credit/consumption-logs)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/credit/consumption-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/consumption-logs
登录态或 API Key 分页查询当前资源空间的积分消耗记录。团队空间要求 VIEW_BILLING 权限。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
| start_date | query | string(date) | false | 开始日期,按站点时区解释 |
| end_date | query | string(date) | false | 结束日期,按站点时区解释 |
| consumption_type | query | string | false | 消耗类型 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 list、page、page_size、total_count 和 total_page | Inline |
响应结构
获取积分重置记录 (GET /web_v1/credit/reset-logs)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/credit/reset-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/reset-logs
登录态或 API Key 分页查询当前资源空间的积分重置记录。团队空间要求 VIEW_BILLING 权限。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含积分重置记录及分页信息 | Inline |
响应结构
获取积分统计 (GET /web_v1/credit/stats)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/credit/stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/stats
登录态或 API Key 查询当前资源空间按消耗类型聚合的积分统计。团队空间要求 VIEW_BILLING 权限。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 开始日期,按站点时区解释 |
| end_date | query | string(date) | false | 结束日期,按站点时区解释 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 by_type 和 total | Inline |
响应结构
获取按天积分统计 (GET /web_v1/credit/daily-stats)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/credit/daily-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/daily-stats
登录态或 API Key 查询当前资源空间的按天积分消耗,默认最近 7 天。团队普通成员仅返回本人实际消费;具备 VIEW_BILLING 权限的管理员、超级管理员和财务成员返回团队全量数据。历史未记录消费成员的团队日志仅对全量视图可见。 API Key 查询最多包含 31 个自然日(含首尾),开始日期不得晚于结束日期。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 开始日期,默认 6 天前 |
| end_date | query | string(date) | false | 结束日期,默认今天 |
| consumption_type | query | string | false | 可选消耗类型 |
| fill_gaps | query | integer | false | 是否补齐缺失日期 |
枚举值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 daily_stats 和 summary | Inline |
响应结构
获取按小时积分统计 (GET /web_v1/credit/hourly-stats)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/credit/hourly-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/credit/hourly-stats
登录态或 API Key 查询当前资源空间的按小时积分消耗,默认最近 7 天。团队空间要求 VIEW_BILLING 权限。 API Key 查询最多包含 31 个自然日(含首尾),开始日期不得晚于结束日期。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 开始日期,默认 6 天前 |
| end_date | query | string(date) | false | 结束日期,默认今天 |
| consumption_type | query | string | false | 可选消耗类型 |
| fill_gaps | query | integer | false | 是否补齐缺失小时 |
枚举值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 hourly_stats 和 summary | Inline |
响应结构
获取积分套餐信息 (GET /end-point/credit/info)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/credit/info \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/credit/info
查询当前资源空间的积分套餐摘要。团队空间要求 USE_ASSETS 权限;此接口同时支持登录态、个人 API Key 和团队 API Key。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串;团队 API Key 可省略,传入时必须与 Key 一致 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 为积分等级、总量、剩余量、重置时间和自动补充状态 | Inline |
响应结构
获取积分消耗记录 (GET /end-point/credit/consumption-logs)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/credit/consumption-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/credit/consumption-logs
登录态或 API Key 分页查询当前资源空间的积分消耗记录。团队空间要求 VIEW_BILLING 权限。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
| start_date | query | string(date) | false | 开始日期,按站点时区解释 |
| end_date | query | string(date) | false | 结束日期,按站点时区解释 |
| consumption_type | query | string | false | 消耗类型 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 list、page、page_size、total_count 和 total_page | Inline |
响应结构
获取积分重置记录 (GET /end-point/credit/reset-logs)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/credit/reset-logs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/credit/reset-logs
登录态或 API Key 分页查询当前资源空间的积分重置记录。团队空间要求 VIEW_BILLING 权限。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含积分重置记录及分页信息 | Inline |
响应结构
获取积分统计 (GET /end-point/credit/stats)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/credit/stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/credit/stats
登录态或 API Key 查询当前资源空间按消耗类型聚合的积分统计。团队空间要求 VIEW_BILLING 权限。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 开始日期,按站点时区解释 |
| end_date | query | string(date) | false | 结束日期,按站点时区解释 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 by_type 和 total | Inline |
响应结构
获取按天积分统计 (GET /end-point/credit/daily-stats)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/credit/daily-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/credit/daily-stats
登录态或 API Key 查询当前资源空间的按天积分消耗,默认最近 7 天。团队普通成员仅返回本人实际消费;具备 VIEW_BILLING 权限的管理员、超级管理员和财务成员返回团队全量数据。历史未记录消费成员的团队日志仅对全量视图可见。 API Key 查询最多包含 31 个自然日(含首尾),开始日期不得晚于结束日期。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 开始日期,默认 6 天前 |
| end_date | query | string(date) | false | 结束日期,默认今天 |
| consumption_type | query | string | false | 可选消耗类型 |
| fill_gaps | query | integer | false | 是否补齐缺失日期 |
枚举值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 daily_stats 和 summary | Inline |
响应结构
获取按小时积分统计 (GET /end-point/credit/hourly-stats)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/credit/hourly-stats \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/credit/hourly-stats
登录态或 API Key 查询当前资源空间的按小时积分消耗,默认最近 7 天。团队空间要求 VIEW_BILLING 权限。 API Key 查询最多包含 31 个自然日(含首尾),开始日期不得晚于结束日期。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 开始日期,默认 6 天前 |
| end_date | query | string(date) | false | 结束日期,默认今天 |
| consumption_type | query | string | false | 可选消耗类型 |
| fill_gaps | query | integer | false | 是否补齐缺失小时 |
枚举值
| Parameter | Value |
|---|---|
| fill_gaps | 0 |
| fill_gaps | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 hourly_stats 和 summary | Inline |
响应结构
Xcrawl Activity Log
Xcrawl 单任务与批任务的记录、详情和汇总查询
获取 Xcrawl 近期任务列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/xcrawl-activity-log/recent-runs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/recent-runs
登录态查询当前资源空间的单任务列表和汇总。团队空间要求 USE_ASSETS;普通成员仅能查看自己创建凭据产生的任务,管理员和超级管理员可查看全团队任务。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
| endpoint | query | string | false | 端点类型 |
| status | query | string | false | 无 |
| start_time | query | string | false | 用户时区时间,格式 Y-m-d H:i:s |
| end_time | query | string | false | 用户时区时间,包含结束边界 |
| url | query | string | false | 目标 URL 或 Data scraper 标识 |
| job_id | query | string | false | 任务 ID 前缀 |
枚举值
| Parameter | Value |
|---|---|
| status | pending |
| status | crawling |
| status | completed |
| status | failed |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含分页 list 和 metadata | Inline |
响应结构
获取 Xcrawl Crawl Result
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/xcrawl-activity-log/crawl-result?job_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/crawl-result
登录态查询当前资源空间指定任务的 Crawl Result。团队空间要求 USE_ASSETS,并按成员可见凭据范围校验任务归属。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| job_id | query | string | true | 任务 ID |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 job_id 和 crawl_result | Inline |
响应结构
获取 Xcrawl 任务详情与日志
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/xcrawl-activity-log/activity-logs?job_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/activity-logs
登录态查询当前资源空间指定单任务及其结果详情。团队空间要求 USE_ASSETS,并按成员可见凭据范围校验任务归属。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| job_id | query | string | true | 任务 ID |
| page | query | integer | false | crawl/data 子结果页码 |
| page_size | query | integer | false | crawl/data 子结果分页数量 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 job 和按 endpoint 变化的 detail | Inline |
响应结构
获取 Data URL 聚合统计
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/xcrawl-activity-log/data-url-summary \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/data-url-summary
登录态聚合当前资源空间的 Data scraper 任务。团队空间要求 USE_ASSETS,结果遵循成员可见凭据范围。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| limit | query | integer | false | 返回数量;0 返回空列表 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data.list 为 scraper 聚合结果 | Inline |
响应结构
获取批量爬取近期任务列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/xcrawl-activity-log/batch-recent-runs \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/batch-recent-runs
登录态查询当前资源空间的批任务列表和汇总。团队空间要求 USE_ASSETS;普通成员仅能查看自己创建凭据产生的任务,管理员和超级管理员可查看全团队任务。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
| endpoint | query | string | false | 端点类型,通常为 batch_scrape |
| status | query | string | false | 无 |
| start_time | query | string | false | 用户时区时间,格式 Y-m-d H:i:s |
| end_time | query | string | false | 用户时区时间,包含结束边界 |
| batch_id | query | string | false | 批任务 ID 前缀 |
枚举值
| Parameter | Value |
|---|---|
| status | pending |
| status | crawling |
| status | completed |
| status | failed |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含分页 list 和 metadata | Inline |
响应结构
获取批量爬取任务详情与日志
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/web_v1/xcrawl-activity-log/batch-activity-logs?batch_id=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /web_v1/xcrawl-activity-log/batch-activity-logs
登录态查询当前资源空间指定批任务及其子项结果。团队空间要求 USE_ASSETS,并按成员可见凭据范围校验任务归属。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| batch_id | query | string | true | 批任务 ID |
| page | query | integer | false | 子项页码 |
| page_size | query | integer | false | 子项分页数量 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;业务成功时 data 包含 job 和批任务 detail | Inline |
响应结构
账户管理
获取个人账户概览
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/account/profile \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/account/profile
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"username": "string",
"nickname": "string",
"email": "string",
"balance": "string",
"gift_balance": "string",
"currency": "string",
"language": "string",
"timezone": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询个人余额流水
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/wallet/change-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/wallet/change-list
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| re_type | query | integer | false | 无 |
| transaction_type | query | integer | false | 无 |
| balance_type | query | integer | false | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| re_type | 0 |
| re_type | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"re_type": 0,
"transaction_type": 0,
"balance_type": 0,
"fee": "string"
}
],
"page": 0,
"page_size": 0,
"total_count": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
日志导出
创建代理日志导出任务
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-usage-flow-log-export/create \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-usage-flow-log-export/create
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。 开始时间必须早于结束时间,时间跨度不超过 31 天;同一用户只允许一个等待或处理中的导出任务,日志上限为 500 万条。
Body parameter
{
"start_time": 0,
"end_time": 0,
"type": "dynamic"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » start_time | body | integer | true | 开始 Unix 时间戳,秒 |
| » end_time | body | integer | true | 结束 Unix 时间戳,秒 |
| » type | body | string | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| » type | dynamic |
| » type | host_pool |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"task_id": 0,
"status": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询日志导出任务详情
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-usage-flow-log-export/detail?task_id=1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-usage-flow-log-export/detail
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| task_id | query | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"user_id": 0,
"start_time": "string",
"end_time": "string",
"status": "pending",
"file_size": 0,
"record_count": 0,
"created_at": "string",
"completed_at": "string",
"file_url": "string",
"download_url": "string",
"error_message": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | pending |
| status | processing |
| status | completed |
| status | failed |
| status | canceled |
| status | no_data |
查询日志导出任务列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-usage-flow-log-export/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-usage-flow-log-export/list
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| page | query | integer | false | 无 |
| size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"user_id": 0,
"start_time": "string",
"end_time": "string",
"status": "pending",
"file_size": 0,
"record_count": 0,
"created_at": "string",
"completed_at": "string",
"file_url": "string",
"download_url": "string",
"error_message": "string"
}
],
"total": 0,
"page": 0,
"size": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | pending |
| status | processing |
| status | completed |
| status | failed |
| status | canceled |
| status | no_data |
取消尚未执行的日志导出任务
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-usage-flow-log-export/cancel \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-usage-flow-log-export/cancel
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。 仅能取消队列中处于等待状态的任务,已经执行的任务无法取消。
Body parameter
{
"task_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » task_id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
优惠券
查询个人优惠券列表
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-coupon/list \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-coupon/list
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
Body parameter
{
"status": 0,
"page": 1,
"size": 20
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » status | body | integer | false | 无 |
| » page | body | integer | false | 无 |
| » size | body | integer | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
| » status | 2 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"coupon_id": 0,
"type": 0,
"status": 0,
"source": 0,
"title": "string",
"title_en": "string",
"description": "string",
"description_en": "string",
"start_amount": "string",
"start_amount_usd": "string",
"start_amount_hkd": "string",
"deduction_amount": "string",
"deduction_amount_usd": "string",
"deduction_amount_hkd": "string",
"discount_rate": "string",
"discount_ceiling_amount": "string",
"discount_ceiling_amount_usd": "string",
"discount_ceiling_amount_hkd": "string",
"created_at": "string",
"effect_at": "string",
"expired_at": "string",
"used_at": "string",
"product_types": "string",
"created_timestamp": 0,
"effect_timestamp": 0,
"expired_timestamp": 0,
"used_timestamp": 0,
"is_expired": true
}
],
"page": 0,
"page_size": 0,
"page_count": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询个人优惠券详情
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-coupon/info \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-coupon/info
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
Body parameter
{
"id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"coupon_id": 0,
"type": 0,
"status": 0,
"source": 0,
"title": "string",
"title_en": "string",
"description": "string",
"description_en": "string",
"start_amount": "string",
"start_amount_usd": "string",
"start_amount_hkd": "string",
"deduction_amount": "string",
"deduction_amount_usd": "string",
"deduction_amount_hkd": "string",
"discount_rate": "string",
"discount_ceiling_amount": "string",
"discount_ceiling_amount_usd": "string",
"discount_ceiling_amount_hkd": "string",
"created_at": "string",
"effect_at": "string",
"expired_at": "string",
"used_at": "string",
"product_types": "string",
"created_timestamp": 0,
"effect_timestamp": 0,
"expired_timestamp": 0,
"used_timestamp": 0,
"is_expired": true
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
通知管理
查询站内通知
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/notify/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/notify/list
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| page | query | integer | false | 无 |
| size | query | integer | false | 无 |
| read | query | integer | false | 无 |
| type | query | integer | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| read | 0 |
| read | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"title": "string",
"content": "string",
"type": 0,
"read_status": 0,
"created_at": "string",
"created_timestamp": 0
}
],
"page": 0,
"size": 0,
"total": 0,
"total_unread_count": 0,
"unread_count_by_type": {}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| read_status | 0 |
| read_status | 1 |
查询站内通知详情
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/notify/detail?id=1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/notify/detail
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| id | query | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 0,
"title": "string",
"content": "string",
"type": 0,
"read_status": 0,
"created_at": "string",
"created_timestamp": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| read_status | 0 |
| read_status | 1 |
将站内通知标记为已读
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/notify/read \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/notify/read
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
Body parameter
{
"id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
批量标记站内通知为已读
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/notify/batch-read \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/notify/batch-read
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
Body parameter
{
"ids": [
1
]
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » ids | body | [integer] | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询通知渠道配置
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-notify \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-notify
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"scene": 0,
"email_notify": true,
"phone_notify": true,
"browser_notify": true,
"site_inner_message_notify": true,
"webhook_notify": true,
"telegram_notify": true
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询通知邮箱
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-notification-email/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-notification-email/list
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"email": "string",
"created_at": 0
}
],
"max_count": 0,
"current_count": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询通知场景
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-notification-email/scenes \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-notification-email/scenes
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"name": "string",
"description": "string"
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询邮箱订阅场景
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-notification-email/email-scenes?id=1 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-notification-email/email-scenes
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| id | query | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"scenes": [
0
],
"subscribe_all": true
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
代理配置
查询个人代理缓存开关
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/proxy-cache/status \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/proxy-cache/status
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"status": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
设置个人代理缓存开关
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-cache/change \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-cache/change
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
Body parameter
{
"status": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » status | body | integer | true | 无 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
查询个人代理 UDP 开关
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-proxy-config/udp \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-proxy-config/udp
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"enabled": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| enabled | 0 |
| enabled | 1 |
设置个人代理 UDP 开关
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-proxy-config/udp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-proxy-config/udp
仅支持个人空间的登录态或个人 API Key;团队 API Key 不支持。
Body parameter
{
"udp": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » udp | body | integer | true | 无 |
枚举值
| Parameter | Value |
|---|---|
| » udp | 0 |
| » udp | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"enabled": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请检查业务 code,200 为成功。 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| enabled | 0 |
| enabled | 1 |
团队钱包
查询团队钱包
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/wallet/detail?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/wallet/detail
需要 VIEW_BILLING 权限。团队钱包独立于超级管理员和成员的个人余额。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
查询团队钱包流水
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/team/wallet/records?team_id=A1b2C3d4E5f6 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/team/wallet/records
需要 VIEW_BILLING 权限。流水金额始终为正数,资金增减由 direction 字段表示。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | TeamPublicId | true | 无 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| direction | 0 |
| direction | 1 |
| transaction_type | 1 |
| transaction_type | 2 |
| transaction_type | 3 |
| transaction_type | 4 |
| transaction_type | 5 |
个人余额转入团队钱包
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/wallet/transfer-in \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/wallet/transfer-in
仅团队超级管理员具有 TRANSFER_BALANCE 权限。原子扣减其个人充值余额后增加团队钱包;转入金额不计入 total_recharge_fee,且不支持转回个人余额。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"amount": 9999999999.9999
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » amount | body | number(double) | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
团队余额转回个人账户
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/team/wallet/transfer-out \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/team/wallet/transfer-out
仅超级管理员登录态可调用。原子扣减团队钱包并增加其个人充值余额;不改变团队或个人的累计充值金额。解散中的团队可用于回收余额,已解散团队不能调用。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"amount": 9999999999.9999
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | TeamPublicId | true | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » amount | body | number(double) | true | 不得超过团队当前可用余额 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTTP 成功;请继续判断响应体 code | Inline |
响应结构
IP提取
提取IP (GET /end-point/ip/get-ip)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/get-ip?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/get-ip
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 团队 Key 可省略;传入时必须与 Key 绑定团队一致 |
| app_key | query | string(password) | true | 访问密钥 |
| cc | query | string | false | 国家或地区 |
| state | query | string | false | 省或州 |
| city | query | string | false | 城市 |
| format | query | string | false | 获取格式 |
| lb | query | string | false | 间隔符,仅text格式有效 |
| num | query | number | false | 提取数量 |
| life | query | number | false | 保持周期-分钟 |
| ep | query | string | false | 代理网络 |
枚举值
| Parameter | Value |
|---|---|
| ep | us |
| ep | hk |
| ep | de |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
[
"150.109.114.72:1140",
"150.109.114.72:1141",
"150.109.114.72:1142",
"150.109.114.72:1143",
"150.109.114.72:1144",
"150.109.114.72:1145",
"150.109.114.72:1146",
"150.109.114.72:1147",
"150.109.114.72:1148",
"150.109.114.72:1149"
]
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [any] | false | 无 | none |
城市列表 (GET /end-point/ip/dynamic-area-city-list)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dynamic-area-city-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dynamic-area-city-list
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"city": "Arlington",
"state": "alabama",
"continent_code": "NA",
"country_code": "US"
}
]
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | 列表 |
| »»» name_zh_cn | string | false | 无 | 国家或地区名称 |
| »»» name_en | string | false | 无 | 国家或地区名称 |
| »»» continent_code | string | false | 无 | 大洲代码 |
| »»» country_code | string | false | 无 | 国家或地区代码 |
| »»» items | [any] | false | 无 | 省或州 |
| »»»» city | string | false | 无 | 城市名称 |
| »»»» state | string | false | 无 | 省或州名称代码 |
| »»»» continent_code | string | false | 无 | 大洲代码 |
| »»»» country_code | string | false | 无 | 国家或地区代码 |
IP 提取数量按天统计
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-extract-ip/days \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-extract-ip/days
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_date | query | string(date) | false | 默认 6 天前 |
| end_date | query | string(date) | false | 默认今天 |
| product_type | query | integer | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| product_type | 9 |
| product_type | 17 |
| product_type | 22 |
响应示例
200 响应
{
"code": 0,
"msg": "string",
"request_id": "string",
"data": {
"list": [
{
"count": 0,
"date": "2019-08-24"
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | none |
| » msg | string | false | 无 | none |
| » request_id | string | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» count | integer | true | 无 | none |
| »»» date | string(date) | true | 无 | none |
提取IP (GET /end-point/ip/v3)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/v3?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/v3
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 团队 Key 可省略;传入时必须与 Key 绑定团队一致 |
| app_key | query | string(password) | true | 访问密钥 |
| cc | query | string | false | 国家或地区 |
| state | query | string | false | 省或州 |
| city | query | string | false | 城市 |
| format | query | string | false | 获取格式 |
| lb | query | string | false | 间隔符,仅text格式有效 |
| num | query | number | false | 提取数量 |
| life | query | number | false | 保持周期-分钟 |
| ep | query | string | false | 代理网络 |
枚举值
| Parameter | Value |
|---|---|
| ep | us |
| ep | hk |
| ep | de |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
[
"150.109.114.72:1140",
"150.109.114.72:1141",
"150.109.114.72:1142",
"150.109.114.72:1143",
"150.109.114.72:1144",
"150.109.114.72:1145",
"150.109.114.72:1146",
"150.109.114.72:1147",
"150.109.114.72:1148",
"150.109.114.72:1149"
]
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [any] | false | 无 | none |
动态地区城市列表V4
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dcl4?username=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dcl4
按用户名获取城市列表,需要登录认证,且账户必须属于当前用户
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| username | query | string | true | 代理账户用户名 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"City": "Los Angeles",
"Area": "US",
"State": "California"
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» cache | boolean | false | 无 | 是否来自缓存 |
| »» list | [object] | false | 无 | none |
| »»» City | string | false | 无 | 城市 |
| »»» Area | string | false | 无 | 地区 |
| »»» State | string | false | 无 | 州/省 |
动态地区州/省列表V4
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dsl4?username=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dsl4
按用户名获取州/省列表,需要登录认证,且账户必须属于当前用户
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| username | query | string | true | 代理账户用户名 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"City": "Los Angeles",
"Area": "US",
"State": "California"
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» cache | boolean | false | 无 | 是否来自缓存 |
| »» list | [object] | false | 无 | none |
| »»» City | string | false | 无 | 城市 |
| »»» Area | string | false | 无 | 地区 |
| »»» State | string | false | 无 | 州/省 |
动态地区州/省城市融合列表V4
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dal4?username=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dal4
按用户名获取州/省和城市的融合列表,按地区分组。需要登录认证,且账户必须属于当前用户
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| username | query | string | true | 代理账户用户名 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"cache": true,
"list": [
{
"Area": "US",
"states": [
{
"State": "California",
"cities": [
"Los Angeles"
]
}
]
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» cache | boolean | false | 无 | 是否来自缓存 |
| »» list | [object] | false | 无 | 地区列表 |
| »»» Area | string | false | 无 | 地区代码 |
| »»» states | [object] | false | 无 | 州/省列表 |
| »»»» State | string | false | 无 | 州/省名称 |
| »»»» cities | [string] | false | 无 | 城市列表 |
城市列表 (GET /end-point/ip/dynamic-citys)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dynamic-citys \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dynamic-citys
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"city": "Arlington",
"state": "alabama",
"continent_code": "NA",
"country_code": "US"
}
]
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | 列表 |
| »»» name_zh_cn | string | false | 无 | 国家或地区名称 |
| »»» name_en | string | false | 无 | 国家或地区名称 |
| »»» continent_code | string | false | 无 | 大洲代码 |
| »»» country_code | string | false | 无 | 国家或地区代码 |
| »»» items | [any] | false | 无 | 省或州 |
| »»»» city | string | false | 无 | 城市名称 |
| »»»» state | string | false | 无 | 省或州名称代码 |
| »»»» continent_code | string | false | 无 | 大洲代码 |
| »»»» country_code | string | false | 无 | 国家或地区代码 |
城市搜索
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dynamic-citys/search?country_code=string&state=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dynamic-citys/search
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| country_code | query | string | true | 国家或地区代码 |
| state | query | string | true | 州或省代码 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
"string"
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [string] | false | 无 | 列表 |
州列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dynamic-states \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dynamic-states
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"state": "alabama",
"continent_code": "NA",
"country_code": "US"
}
]
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | 列表 |
| »»» name_zh_cn | string | false | 无 | 国家或地区名称 |
| »»» name_en | string | false | 无 | 国家或地区名称 |
| »»» continent_code | string | false | 无 | 大洲代码 |
| »»» country_code | string | false | 无 | 国家或地区代码 |
| »»» items | [any] | false | 无 | 省或州 |
| »»»» state | string | false | 无 | 省或州名称代码 |
| »»»» continent_code | string | false | 无 | 大洲代码 |
| »»»» country_code | string | false | 无 | 国家或地区代码 |
州/省搜索
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/dynamic-states/search?country_code=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/dynamic-states/search
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| country_code | query | string | true | 国家或地区代码 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
"string"
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [string] | false | 无 | 列表 |
获取已分配的数据中心静态 IP 列表
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/ip/get-datacenter-assign-ip-list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/ip/get-datacenter-assign-ip-list
已废弃,推荐使用 /openapi/user-product/datacenter-isp-ip-list。为兼容旧客户端,本接口使用 POST 方法,但筛选参数均从 query 读取。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串;团队 Key 可省略,传入时必须与 Key 一致 |
| area | query | string | false | 国家/地区代码 |
| status | query | integer | false | 0=所有,1=有效,2=过期 |
| trade_no | query | string | false | 订单号 |
| created_at | query | array[string] | false | 创建时间范围,必须同时传开始和结束时间 |
枚举值
| Parameter | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"total": 0,
"list": [
{
"id": 1,
"ip": "string",
"country_code": "string",
"up_id": 1,
"expired_at": "string",
"created_at": "string",
"country_name_zh_cn": "string",
"country_name_en": "string",
"country_continent_code": "string",
"port": 1
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
提取已购买静态IP列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/get-static-ip \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/get-static-ip
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| country_code | query | string | false | 国家或地区代码 |
| product_type | query | number | false | 产品类型, 25:静态住宅IP, 14: 数据中心IP |
| trade_no | query | string | false | 通过订单号筛选IP |
| page | query | number | false | 页码 |
| size | query | number | false | 每页数量 |
| status | query | number | false | 状态, 1:有效, 2:无效, 3:即将过期, 4:维护中 |
枚举值
| Parameter | Value |
|---|---|
| product_type | 14 |
| product_type | 25 |
| status | 1 - 2 - 3 - 4 |
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|
获取在售地区静态IP数量
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/ip/static-ip-region \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/ip/static-ip-region
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| isp | query | integer | false | ISP 筛选,不传则不筛选(站点 1/4/5 除外默认为 1) |
| asn | query | integer | false | 是否返回 ASN 分组数据 |
| exclusive | query | integer | false | 是否按独享库存统计 |
Detailed descriptions
isp: ISP 筛选,不传则不筛选(站点 1/4/5 除外默认为 1)
| 值 | 描述 |
|---|---|
| 0 | 数据中心静态IP(IDC) |
| 1 | 家庭住宅静态IP(ISP) |
asn: 是否返回 ASN 分组数据
| 值 | 描述 |
|---|---|
| 0 | 不返回 ASN 分组数据(默认) |
| 1 | 返回 ASN 分组数据 |
exclusive: 是否按独享库存统计
| 值 | 描述 |
|---|---|
| 0 | 按当前用户/共享组口径统计(默认) |
| 1 | 排除所有已分配IP,仅统计可用库存 |
枚举值
| Parameter | Value |
|---|---|
| isp | 0 |
| isp | 1 |
| asn | 0 |
| asn | 1 |
| exclusive | 0 |
| exclusive | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "请求成功",
"data": {
"list": [
{
"code": "US",
"number": 55
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [any] | false | 无 | none |
| »»» code | string | true | 无 | 国家或地区代码 |
| »»» number | integer | true | 无 | 数量 |
获取 host_pool 支持国家/地区
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/host-pool/regions \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/host-pool/regions
查询 host_pool 服务当前站点支持的国家/地区列表。
该接口面向数据中心 IP 按流量积分的随机提取场景,仅按当前站点可用数据中心 IP 库存统计国家/地区。
响应示例
200 响应
{
"code": 200,
"msg": "请求成功",
"data": {
"list": [
{
"code": "US",
"number": 55,
"name_zh_cn": "美国",
"name_en": "United States",
"square_flag": "https://example.com/static/flags/us.png"
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» code | string | true | 无 | 国家或地区代码,ISO 3166-1 alpha-2 |
| »»» number | integer | true | 无 | 当前站点可用数据中心 IP 数量 |
| »»» name_zh_cn | string | false | 无 | 国家或地区中文名称 |
| »»» name_en | string | false | 无 | 国家或地区英文名称 |
| »»» square_flag | string | false | 无 | 方形旗帜图片 URL |
IP白名单
IP 白名单列表 (GET /end-point/proxy-ip/list)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/proxy-ip/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/proxy-ip/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| product_type | query | integer | false | 套餐类型编号 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"ip": "1.1.1.1",
"remark": "string",
"product_type": 0,
"created_at": "string"
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» ip | string | false | 无 | 白名单 IP |
| »»» remark | string | false | 无 | 备注 |
| »»» product_type | integer | false | 无 | 套餐类型 |
| »»» created_at | string | false | 无 | 创建时间 |
添加 IP 白名单 (POST /end-point/proxy-ip/add)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-ip/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-ip/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"remark": "string",
"product_type": 0,
"user_product_id": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » ips | body | string | true | 需要添加的白名单 IP,多个用英文逗号或换行分隔 |
| » remark | body | string | false | 备注 |
| » product_type | body | integer | false | 套餐类型编号 |
| » user_product_id | body | integer | false | 用户套餐 ID,套餐类型为 11 时必填 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
删除 IP 白名单 (POST /end-point/proxy-ip/delete)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/proxy-ip/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/proxy-ip/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"verify_type": "string",
"verify_code": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » ips | body | string | true | 需要删除的白名单 IP,多个用英文逗号分隔 |
| » verify_type | body | string | false | 验证类型:phone、email、wechat、totp |
| » verify_code | body | string | false | 验证码 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
IP 白名单列表 (GET /end-point/white-ip/list)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/white-ip/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/white-ip/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| product_type | query | integer | false | 套餐类型编号 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"ip": "1.1.1.1",
"remark": "string",
"product_type": 0,
"created_at": "string"
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» ip | string | false | 无 | 白名单 IP |
| »»» remark | string | false | 无 | 备注 |
| »»» product_type | integer | false | 无 | 套餐类型 |
| »»» created_at | string | false | 无 | 创建时间 |
添加 IP 白名单 (POST /end-point/white-ip/add)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/white-ip/add \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/white-ip/add
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"remark": "string",
"product_type": 0,
"user_product_id": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » ips | body | string | true | 需要添加的白名单 IP,多个用英文逗号或换行分隔 |
| » remark | body | string | false | 备注 |
| » product_type | body | integer | false | 套餐类型编号 |
| » user_product_id | body | integer | false | 用户套餐 ID,套餐类型为 11 时必填 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
删除 IP 白名单 (POST /end-point/white-ip/delete)
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/white-ip/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/white-ip/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"app_key": "string",
"ips": "1.1.1.1,2.2.2.2",
"verify_type": "string",
"verify_code": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » app_key | body | string | false | 授权密钥 |
| » ips | body | string | true | 需要删除的白名单 IP,多个用英文逗号分隔 |
| » verify_type | body | string | false | 验证类型:phone、email、wechat、totp |
| » verify_code | body | string | false | 验证码 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": null
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功 |
| » msg | string | false | 无 | 状态消息 |
| » data | null | false | 无 | none |
修改 IP 白名单备注
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/white-ip/change-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/white-ip/change-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"ip": "192.168.0.1",
"remark": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » ip | body | string(ipv4) | true | 无 |
| » remark | body | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
刷新当前资源空间 IP 白名单认证缓存
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/white-ip/refresh \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/white-ip/refresh
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
指定产品类型的 IP 白名单配额
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/white-ip/quota?product_type=0 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/white-ip/quota
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| product_type | query | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
所有产品类型的 IP 白名单配额
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/white-ip/quotas \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/white-ip/quotas
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
流量日志查询
近期使用流量按天汇总
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-usage-flow/days \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-usage-flow/days
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"days": 7,
"product_type": 0,
"username": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » days | body | integer | false | 无 |
| » product_type | body | integer | false | 无 |
| » username | body | string | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"days": "2019-08-24",
"flow": 0
}
],
"days": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
代理账户历史使用流量
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-usage-flow/username-total \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-usage-flow/username-total
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"flow": 0
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
导出代理账户月度使用流量
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-usage-flow/export-csv \
-H 'Content-Type: application/json' \
-H 'Accept: text/csv' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-usage-flow/export-csv
Body parameter
{
"team_id": "A1b2C3d4E5f6"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
响应示例
200 响应
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | GBK 编码 CSV 文件 | string |
套餐流量总量与剩余量
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-usage-flow/flow-total \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-usage-flow/flow-total
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| unit | query | string | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| unit | KB |
| unit | MB |
| unit | GB |
| unit | TB |
| unit | PB |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"limit": 0,
"total": 0,
"remain": 0,
"unit": "KB",
"timestamp": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| unit | KB |
| unit | MB |
| unit | GB |
| unit | TB |
| unit | PB |
每日速率图
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-usage-flow/rate-graph \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-usage-flow/rate-graph
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start | query | string(date) | false | 无 |
| end | query | string(date) | false | 无 |
| username | query | string | false | 无 |
| user_product_id | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"date": "2019-08-24",
"rate": 0,
"corrent": 0
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
每日缓存流量统计
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-usage-flow/cache-total \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-usage-flow/cache-total
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_time | query | string | false | 无 |
| end_time | query | string | false | 无 |
| product_type | query | integer | false | 无 |
| username | query | string | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"day": "2019-08-24",
"cache_flow": 0,
"cache_reduce_flow": 0
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
使用流量按天汇总
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-usage-flow/total?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-usage-flow/total
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| app_key | query | string(password) | true | 认证密钥 |
| start_time | query | string(Y-m-d H:i:s) | false | 起始时间,可精确到秒。请注意,日志记录有5分钟以内延迟。默认7天以内。 |
| end_time | query | string(Y-m-d H:i:s) | false | 截止时间,可精确到秒。请注意,日志记录有5分钟以内延迟。默认当前时间。 |
| username | query | string | false | 子账户名称,默认查询所有账户,可指定子账户。请注意如果您添加了相同名称的子账户,此查询将返回同名代理账户的所有使用记录。 |
| product_type | query | number | false | 套餐类型 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"day": "2022-08-01",
"flow": 0
}
]
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» day | string | false | 无 | 日期 |
| »»» flow | integer | false | 无 | 消耗流量,单位KB |
代理日志
客户端 IP 代理访问统计
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/http-t-dom/list-v2 \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/http-t-dom/list-v2
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_time | query | string(date) | false | 无 |
| end_time | query | string(date) | false | 无 |
| export | query | string | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| export | csv |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"visit_count": 0,
"client_ip": "string",
"time": "2019-08-24",
"country_code": "string",
"country": "string"
}
],
"cache": true,
"ttl": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | JSON 统计结果;export=csv 时返回 CSV 文件 | string |
客户端 IP 访问占比
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/http-t-dom/client-ip-proportion \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/http-t-dom/client-ip-proportion
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| start_time | query | string(date) | false | 无 |
| end_time | query | string(date) | false | 无 |
| export | query | string | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| export | csv |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"username": "string",
"client_ip": "string",
"visit_count": 0,
"visit_percentage": "string",
"country": "string",
"country_code": "string"
}
],
"cache": true,
"ttl": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | JSON 占比结果;export=csv 时返回 CSV 文件 | string |
套餐查询
已购套餐列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-product/list?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-product/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| app_key | query | string(password) | true | 认证密钥 |
| trade_no | query | string | false | 订单号,请输入完整订单号。不支持模糊搜索。 |
| page | query | number | false | 分页,默认:1 |
| size | query | number | false | 分页显示数量,默认:20 |
| product_type | query | number | false | 套餐类型 |
响应示例
200 响应
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"created_at": "2022-05-13 12:14:15",
"expired_at": "2022-05-13 12:14:15",
"product_type": 9,
"trade_no": "2022051312134339861461465434",
"order": {
"created_at": "2022-05-13 12:13:43",
"pay_at": "2022-05-13 12:13:43",
"title": "入门级"
}
}
],
"page": 1,
"page_size": 20,
"total_count": 0,
"total_page": 0
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | true | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | true | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» list | [object] | false | 无 | none |
| »»» id | integer | false | 无 | 套餐编号 |
| »»» created_at | string | false | 无 | 套餐生效时间 |
| »»» expired_at | string | false | 无 | 套餐过期时间,过期后流量无法使用。 |
| »»» product_type | productTypes | false | 无 | 套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP |
| »»» trade_no | string | false | 无 | 订单交易号 |
| »»» order | object | false | 无 | none |
| »»»» created_at | string | false | 无 | 订单创建时间 |
| »»»» pay_at | string | false | 无 | 订单支付时间 |
| »»»» title | string | false | 无 | 订单描述 |
| »» page | integer | true | 无 | 当前分页 |
| »» page_size | integer | false | 无 | 分页大小 |
| »» total_count | integer | false | 无 | 总记录数量 |
| »» total_page | integer | false | 无 | 总分页数量 |
枚举值
| 属性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
用户套餐数据汇总
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-product/summary?app_key=pa%24%24word \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-product/summary
获取用户套餐的统计汇总信息,包括总量、有效量、临期量、过期量等
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| app_key | query | string(password) | true | 认证密钥 |
| product_type | query | integer | false | 产品类型,仅支持 9(动态流量套餐)、12(长效IDC流量套餐) |
枚举值
| Parameter | Value |
|---|---|
| product_type | 9 |
| product_type | 12 |
响应示例
200 响应
{
"code": 200,
"msg": "成功",
"data": {
"total": 1048576,
"total_count": 5,
"effective": 524288,
"effective_count": 3,
"effective_total": 786432,
"effective_used": 262144,
"temporary": 102400,
"temporary_count": 1,
"expired": 51200,
"expired_count": 1,
"used": 473088
}
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
Status Code 200
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » code | integer | false | 无 | 状态码,200 成功、3 app_key 无效、156 账户未实名认证 |
| » msg | string | false | 无 | 状态消息 |
| » data | object | false | 无 | none |
| »» total | integer | false | 无 | 流量/IP总量(单位:KB) |
| »» total_count | integer | false | 无 | 套餐总个数 |
| »» effective | integer | false | 无 | 有效剩余量(单位:KB) |
| »» effective_count | integer | false | 无 | 有效套餐个数 |
| »» effective_total | integer | false | 无 | 有效总量(单位:KB) |
| »» effective_used | integer | false | 无 | 有效已使用量(单位:KB) |
| »» temporary | integer | false | 无 | 临期总量(7天内到期,单位:KB) |
| »» temporary_count | integer | false | 无 | 临期套餐个数(7天内到期) |
| »» expired | integer | false | 无 | 过期剩余量(单位:KB) |
| »» expired_count | integer | false | 无 | 过期套餐个数 |
| »» used | integer | false | 无 | 已使用总量(单位:KB) |
静态 IP 列表
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/datacenter-isp-ip-list \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/datacenter-isp-ip-list
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"status": 0,
"page": 1,
"size": 20,
"user_product_id": 1,
"country_code": "string",
"product_type": 0,
"ip": "192.168.0.1",
"auto_renewal": 0,
"support_renewal": 0,
"remaining_days": 0,
"limit_days": 0,
"sort": "exp_asc",
"remark": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » status | body | integer | false | 无 |
| » page | body | integer | false | 无 |
| » size | body | integer | false | 无 |
| » user_product_id | body | integer | false | 无 |
| » country_code | body | string | false | 无 |
| » product_type | body | integer | false | 无 |
| » ip | body | string(ipv4) | false | 无 |
| » auto_renewal | body | integer | false | 无 |
| » support_renewal | body | integer | false | 无 |
| » remaining_days | body | integer | false | 无 |
| » limit_days | body | integer | false | 无 |
| » sort | body | string | false | 无 |
| » remark | body | string | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| » auto_renewal | 0 |
| » auto_renewal | 1 |
| » support_renewal | 0 |
| » support_renewal | 1 |
| » sort | exp_asc |
| » sort | exp_desc |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
删除已过期套餐
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
批量删除已过期套餐
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/batch-delete \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/batch-delete
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"ids": [
1
]
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » ids | body | [integer] | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
修改套餐备注
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/change-remark \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/change-remark
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"remark": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | 无 |
| » remark | body | string | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
批量设置静态 IP UDP 开关
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/set-ip-udp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/set-ip-udp
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"ids": [
1
],
"udp": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » ids | body | [integer] | true | 无 |
| » udp | body | integer | true | 无 |
枚举值
| Parameter | Value |
|---|---|
| » udp | 0 |
| » udp | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
套餐管理
更换数据中心 ISP 静态 IP
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/change-datacenter-isp-ip \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/change-datacenter-isp-ip
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"id": 1,
"country_code": "string",
"ip": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » id | body | integer | true | 用户套餐 ID |
| » country_code | body | string | false | 目标国家/地区代码;不传时优先沿用当前 IP 国家/地区 |
| » ip | body | string | false | 目标 IP 前缀筛选 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"ip_id": 1,
"ip": "string",
"country_code": "string"
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
获取静态 IP 更换记录
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/user-product/ip-change-log \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/user-product/ip-change-log
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 资源空间标识;个人空间省略或传空字符串 |
| page | query | integer | false | 无 |
| page_size | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"old": "string",
"new": "string",
"created_at": "string",
"created_timestamp": 0
}
],
"page": 1,
"page_size": 1,
"total_count": 0,
"page_count": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
设置单个套餐的自动续费开关
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/set-auto-renewal \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/set-auto-renewal
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1,
"status": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » user_product_id | body | integer | true | 无 |
| » status | body | integer | false | 0=停用,1=启用 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
批量设置套餐自动续费开关
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/batch-set-auto-renewal \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/batch-set-auto-renewal
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"status": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » user_product_ids | body | [integer] | true | 无 |
| » status | body | integer | false | 0=停用,1=启用 |
枚举值
| Parameter | Value |
|---|---|
| » status | 0 |
| » status | 1 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"results": [
{
"user_product_id": 1,
"success": true,
"id": 1
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功;每个套餐独立返回处理结果 | Inline |
响应结构
设置产品类型的默认自动续费参数
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/set-auto-renewal-default-config \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/set-auto-renewal-default-config
days_before_expire、traffic_threshold、renewal_cycle_days 至少传一个;值为 0 表示重置对应配置。
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"product_type": 9,
"days_before_expire": 30,
"traffic_threshold": 100,
"renewal_cycle_days": 0
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » product_type | body | integer | true | 无 |
| » days_before_expire | body | integer | false | 无 |
| » traffic_threshold | body | integer | false | 单位 GB,仅 9/12/24 支持 |
| » renewal_cycle_days | body | integer | false | 仅 11/14/16/25 支持,且必须是当前在售产品周期 |
| » anonymous | body | object | false | 无 |
| » anonymous | body | object | false | 无 |
| » anonymous | body | object | false | 无 |
枚举值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 12 |
| » product_type | 14 |
| » product_type | 16 |
| » product_type | 24 |
| » product_type | 25 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": null,
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功,data 为 null | Inline |
响应结构
获取产品类型的默认自动续费参数
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/get-auto-renewal-default-config \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/get-auto-renewal-default-config
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"product_type": 9
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » product_type | body | integer | false | 不传则返回全部支持类型 |
枚举值
| Parameter | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 12 |
| » product_type | 14 |
| » product_type | 16 |
| » product_type | 24 |
| » product_type | 25 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"configs": [
{
"product_type": 9,
"days_before_expire": 0,
"source": "user",
"renewal_cycle": {
"days": 1,
"unit": "day",
"source": "user"
},
"traffic_threshold": 0,
"traffic_source": "user"
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 24 |
| product_type | 25 |
| source | user |
| source | system |
| source | user |
| source | system |
| traffic_source | user |
| traffic_source | system |
获取单个套餐自动续费配置和续费预览
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/get-auto-renewal \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/get-auto-renewal
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » user_product_id | body | integer | true | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"expired_at": "string",
"time_days": 0,
"time_unit": "day",
"next_expired_at": "string",
"agreed_price": 0,
"currency": "string",
"config": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_type": 0,
"left_traffic": 0,
"left_days": 0,
"user_product_id": 1,
"product_id": 0,
"status": 0,
"currency": "string",
"agreed_price": 0,
"agreed_bandwidth_price": 0,
"agreed_concurrency_price": 0,
"bandwidth_id": 0,
"concurrency_id": 0,
"duration": 0,
"renew_product_id": 0,
"days_before_expire": 0,
"traffic_threshold": 0,
"parent_product_type": 0,
"created_at": "string",
"updated_at": "string"
},
"traffic_threshold": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| time_unit | day |
| time_unit | hour |
| status | 0 |
| status | 1 |
获取自动续费执行记录
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/user-product/auto-renewal-logs \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/user-product/auto-renewal-logs
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"user_product_id": 1,
"page": 1,
"size": 20
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | false | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » user_product_id | body | integer | false | 不传则查询当前空间全部记录 |
| » page | body | integer | false | 无 |
| » size | body | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"config_id": 0,
"user_product_id": 1,
"product_type": 0,
"renew_product_id": 0,
"order_id": 0,
"fee": 0,
"currency": "string",
"before_expired_at": "string",
"after_expired_at": "string",
"before_remain": 0,
"after_remain": 0,
"trigger_type": 0,
"status": 1,
"revoke_at": "string",
"revoke_remark": "string",
"created_at": "string",
"updated_at": "string"
}
],
"page": 1,
"page_size": 1,
"total_page": 0,
"total_count": 0
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
枚举值
| 属性 | 值 |
|---|---|
| trigger_type | 0 |
| trigger_type | 1 |
| status | 1 |
| status | 2 |
| status | 3 |
支付管理
拉起订单支付
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/pay?trade_no=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/pay
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| trade_no | query | string | true | 无 |
| pm_id | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
后台开单未支付订单拉起支付
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/pay/index-choose \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/pay/index-choose
Body parameter
{
"team_id": "A1b2C3d4E5f6",
"trade_no": "string",
"pay_method": 0,
"pm_id": 0,
"trade_type": "string"
}
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| body | body | object | true | 无 |
| » team_id | body | any | false | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| »» anonymous | body | string | false | 无 |
| »» anonymous | body | TeamPublicId | false | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| » trade_no | body | string | true | 无 |
| » pay_method | body | integer | false | 无 |
| » pm_id | body | integer | false | 无 |
| » trade_type | body | string | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 操作成功 | WebV1SuccessResponse |
支付校验和费用预览
代码示例
# 也可以使用 wget
curl -X POST https://api.proxylite.com/end-point/pay/pay-check?trade_no=string \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
POST /end-point/pay/pay-check
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| trade_no | query | string | true | 无 |
| pm_id | query | integer | false | 无 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"trade_no": "string",
"pm_id": 0,
"pay_method": 0,
"trade_type": "string",
"country_code": "string",
"currency": "string",
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0,
"pay_method_info": {
"id": 0,
"type": 0,
"title": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"handling_fee_currency": "usd",
"handling_fee_converted": 0
},
"origin": {
"pm_id": 0,
"pay_method": 0,
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0
}
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 请求成功 | Inline |
响应结构
直接渲染 Web 支付页
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/pay/web-direct-pay?trade_no=string \
-H 'Accept: text/html' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/pay/web-direct-pay
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| team_id | query | ResourceSpaceId | false | 无 |
| trade_no | query | string | true | 无 |
| pm_id | query | integer | false | 无 |
响应示例
200 响应
"string"
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | HTML 支付页 | string |
获取支付方式列表 (GET /end-point/payment/list)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/payment/list \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/payment/list
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| trade_no | query | string | false | 订单号 - 部分订单需要获取特定支付方式时可传入 |
| currency | query | string | false | 货币单位 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 0,
"title": "string",
"logo": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"disabled": false,
"min": 0,
"max": 0
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 获取成功 | Inline |
响应结构
获取支付方式列表 (GET /end-point/payment/groups)
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/payment/groups \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/payment/groups
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| trade_no | query | string | false | 订单号 - 部分订单需要获取特定支付方式时可传入 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"name": "string",
"logos": [
"string"
],
"items": [
{
"id": 0,
"title": "string",
"logo": "string",
"group": "string",
"disabled": false,
"min": 0,
"max": 0
}
]
}
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | 获取成功 | Inline |
响应结构
营销
充值赠金比例
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/activity/balance-recharge-gift-ratio \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/activity/balance-recharge-gift-ratio
充值赠金比例
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
null
]
},
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | OK | Inline |
响应结构
产品
产品列表
代码示例
# 也可以使用 wget
curl -X GET https://api.proxylite.com/end-point/product \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
GET /end-point/product
获取当前站点可购买的套餐列表,支持按类型、有效期等条件筛选。
参数
| 名称 | 位置 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| type | query | integer | false | 套餐类型,见 Product.type 枚举说明。不传则返回所有类型。 |
| parent_product_type | query | integer | false | 父套餐类型,仅 type=19(IP续费)时有效,用于筛选产品线:14=数据中心 25=住宅 |
| time_days | query | any | false | 有效期天数筛选,支持单值或数组,如 30 / [30,90,365] |
| show_type | query | any | false | 展示类型筛选,支持单值或数组 |
Detailed descriptions
type: 套餐类型,见 Product.type 枚举说明。不传则返回所有类型。
枚举值
| Parameter | Value |
|---|---|
| parent_product_type | 14 |
| parent_product_type | 25 |
响应示例
200 响应
{
"code": 200,
"msg": "SUCCESS",
"data": [
{
"id": 0,
"title": "string",
"type": 0,
"show_type": 0,
"status": 0,
"price": 0.1,
"usd_price": 0.1,
"price_hkd": 0.1,
"original_price": 0.1,
"original_usd_price": 0.1,
"original_price_hkd": 0.1,
"local_price": 0.1,
"local_original_price": 0.1,
"preferred_currency": "string",
"support_currencies": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"balance_value": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"time_days": 0,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
],
"region_list_id": 0,
"renew_product_list": "string",
"parent_product_type": 0,
"total_count": 0,
"remain_count": 0,
"extension_of_time_days": [
0
],
"time_days_price_rate": 0.1,
"desc": {
"subtitle": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
]
},
"sku": {
"bandwidth_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"duration_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"concurrency_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
]
}
}
],
"request_id": "string"
}
响应
| 状态码 | 含义 | 描述 | 数据模型 |
|---|---|---|---|
| 200 | OK | OK | Inline |
响应结构
数据结构
OpenApiAccountProfile
{
"id": 0,
"username": "string",
"nickname": "string",
"email": "string",
"balance": "string",
"gift_balance": "string",
"currency": "string",
"language": "string",
"timezone": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | 用户 ID |
| username | string | true | 无 | 用户名 |
| nickname | string | true | 无 | 昵称 |
| string | true | 无 | 绑定邮箱 | |
| balance | string | true | 无 | 充值余额,十进制字符串 |
| gift_balance | string | true | 无 | 当前赠送余额,十进制字符串 |
| currency | string | true | 无 | 站点币种 |
| language | string | true | 无 | 用户语言,未配置时使用站点语言 |
| timezone | string | true | 无 | 用户时区,未配置时使用站点时区 |
OpenApiBalanceRecord
{
"id": 0,
"re_type": 0,
"transaction_type": 0,
"balance_type": 0,
"fee": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| re_type | integer,string | false | 无 | 0 支出,1 收入 |
| transaction_type | integer,string | false | 无 | 交易类型 |
| balance_type | integer,string | false | 无 | 余额类型 |
| fee | string,number | false | 无 | 变动金额,站点币种 |
OpenApiLogExportTask
{
"id": 0,
"user_id": 0,
"start_time": "string",
"end_time": "string",
"status": "pending",
"file_size": 0,
"record_count": 0,
"created_at": "string",
"completed_at": "string",
"file_url": "string",
"download_url": "string",
"error_message": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| user_id | integer,string | false | 无 | 详情接口返回 |
| start_time | string | false | 无 | Y-m-d H:i:s;非 RFC 3339 日期 |
| end_time | string | false | 无 | Y-m-d H:i:s;非 RFC 3339 日期 |
| status | string | false | 无 | none |
| file_size | integer,string,null | false | 无 | none |
| record_count | integer,string,null | false | 无 | none |
| created_at | string | false | 无 | Y-m-d H:i:s;非 RFC 3339 日期 |
| completed_at | string | false | 无 | Y-m-d H:i:s;非 RFC 3339 日期 |
| file_url | string | false | 无 | 完成后详情接口返回 |
| download_url | string | false | 无 | 完成后返回,有效期 24 小时的签名下载地址 |
| error_message | string | false | 无 | 失败时详情接口可能返回 |
枚举值
| 属性 | 值 |
|---|---|
| status | pending |
| status | processing |
| status | completed |
| status | failed |
| status | canceled |
| status | no_data |
OpenApiCoupon
{
"id": 0,
"coupon_id": 0,
"type": 0,
"status": 0,
"source": 0,
"title": "string",
"title_en": "string",
"description": "string",
"description_en": "string",
"start_amount": "string",
"start_amount_usd": "string",
"start_amount_hkd": "string",
"deduction_amount": "string",
"deduction_amount_usd": "string",
"deduction_amount_hkd": "string",
"discount_rate": "string",
"discount_ceiling_amount": "string",
"discount_ceiling_amount_usd": "string",
"discount_ceiling_amount_hkd": "string",
"created_at": "string",
"effect_at": "string",
"expired_at": "string",
"used_at": "string",
"product_types": "string",
"created_timestamp": 0,
"effect_timestamp": 0,
"expired_timestamp": 0,
"used_timestamp": 0,
"is_expired": true
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| coupon_id | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| type | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| status | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| source | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| title | string | false | 无 | none |
| title_en | string | false | 无 | none |
| description | string | false | 无 | none |
| description_en | string | false | 无 | none |
| start_amount | string,number,null | false | 无 | none |
| start_amount_usd | string,number,null | false | 无 | none |
| start_amount_hkd | string,number,null | false | 无 | none |
| deduction_amount | string,number,null | false | 无 | none |
| deduction_amount_usd | string,number,null | false | 无 | none |
| deduction_amount_hkd | string,number,null | false | 无 | none |
| discount_rate | string,number,null | false | 无 | none |
| discount_ceiling_amount | string,number,null | false | 无 | none |
| discount_ceiling_amount_usd | string,number,null | false | 无 | none |
| discount_ceiling_amount_hkd | string,number,null | false | 无 | none |
| created_at | string,null | false | 无 | Y-m-d H:i:s |
| effect_at | string,null | false | 无 | Y-m-d H:i:s |
| expired_at | string,null | false | 无 | Y-m-d H:i:s |
| used_at | string,null | false | 无 | Y-m-d H:i:s |
| product_types | string,null | false | 无 | 适用套餐类型 |
| created_timestamp | integer,null | false | 无 | none |
| effect_timestamp | integer,null | false | 无 | none |
| expired_timestamp | integer,null | false | 无 | none |
| used_timestamp | integer,null | false | 无 | none |
| is_expired | boolean | false | 无 | 列表接口返回 |
OpenApiNotification
{
"id": 0,
"title": "string",
"content": "string",
"type": 0,
"read_status": 0,
"created_at": "string",
"created_timestamp": 0
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| title | string | false | 无 | none |
| content | string | false | 无 | 按请求语言渲染的内容 |
| type | integer,string | false | 无 | 数据库数值可能序列化为字符串 |
| read_status | integer | false | 无 | none |
| created_at | string | false | 无 | Y-m-d H:i:s;非 RFC 3339 日期 |
| created_timestamp | integer | false | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| read_status | 0 |
| read_status | 1 |
productTypes
9
套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | integer | false | 无 | 套餐类型,9 动态住宅流量套餐、11 动态住宅IP、14静态数据中心IP、25 静态住宅IP |
枚举值
| 属性 | 值 |
|---|---|
| anonymous | 9 |
| anonymous | 11 |
| anonymous | 14 |
| anonymous | 25 |
apiKey
"pa$$word"
API Key;使用 apiKeyAuth 或操作声明的请求参数传递
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | string(password) | false | 无 | API Key;使用 apiKeyAuth 或操作声明的请求参数传递 |
responseCode
200
状态码,200 成功、3 app_key 无效
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | integer | false | 无 | 状态码,200 成功、3 app_key 无效 |
responseMsg
"success"
response message
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | string | false | 无 | response message |
SuccessResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
属性
None
ErrorResponse
{
"code": 2,
"msg": "parameter error",
"data": {},
"request_id": "string"
}
属性
None
WebV1SuccessResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {},
"request_id": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| code | integer | true | 无 | none |
| msg | string | true | 无 | none |
| data | object,array,string,number,boolean,null | true | 无 | 业务数据,具体类型由接口定义 |
| request_id | string | true | 无 | 请求链路追踪 ID |
WebV1ErrorResponse
{
"code": 2,
"msg": "parameter error",
"data": {},
"request_id": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| code | integer | true | 无 | 业务错误码 |
not
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | any | false | 无 | none |
continued
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| msg | string | true | 无 | 错误描述 |
| data | object,array,null | true | 无 | 错误附加数据,无附加数据时为 null |
| request_id | string | true | 无 | 请求链路追踪 ID |
TeamPublicId
"A1b2C3d4E5f6"
团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | string | false | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
ResourceSpaceId
"A1b2C3d4E5f6"
公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识
属性
oneOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | string | false | 无 | none |
xor
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | TeamPublicId | false | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
Team
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| name | string | true | 无 | 团队名称 |
| super_admin_user_id | integer | true | 无 | 超级管理员用户 ID |
| status | integer | true | 无 | 团队状态:0=禁用,1=有效,2=解散中,3=已解散 |
| current_role | integer,null | true | 无 | 当前用户在团队中的角色;无法确定时为 null |
| dissolving_at | string,null | true | 无 | 开始解散时间 |
| dissolved_at | string,null | true | 无 | 解散完成时间 |
| created_at | string | true | 无 | 创建时间 |
| updated_at | string | true | 无 | 更新时间 |
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| current_role | 1 |
| current_role | 2 |
| current_role | 3 |
| current_role | 4 |
| current_role | null |
TeamAsset
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | 用户套餐 ID |
| user_id | integer | true | 无 | 资源所有人用户 ID |
| team_id | ResourceSpaceId | true | 无 | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| team_user_id | integer | true | 无 | 实际创建成员用户 ID |
| product_id | integer | true | 无 | 产品 ID |
| product_type | integer | true | 无 | 产品类型 |
| parent_product_type | integer | true | 无 | 父产品类型 |
| status | integer | true | 无 | 套餐状态 |
| total_amount | integer(int64) | true | 无 | 总量 |
| remain | integer(int64) | true | 无 | 剩余量 |
| bandwidth | integer | false | 无 | 带宽(Mbps);仅 product_type=19 或 11 返回 |
| concurrency | integer | false | 无 | 并发数;仅 product_type=11 返回 |
| expired_at | string,null | true | 无 | 过期时间 |
| created_at | string | true | 无 | 创建时间 |
| ip | string | false | 无 | 静态 IP 地址;仅 product_type=19 返回 |
| country_code | string | false | 无 | 静态 IP 国家代码;仅 product_type=19 返回 |
| country_name | string | false | 无 | 静态 IP 国家名称;仅 product_type=19 返回 |
| asn | string | false | 无 | 静态 IP ASN;仅 product_type=19 返回 |
| port | integer | false | 无 | 静态 IP 代理端口;仅 product_type=19 返回 |
TeamProductInfo
{
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
}
套餐统计字段与 /web_v1/user/info 保持一致;取消、退款或软删除记录不计入摘要;除 team_id、product_types 外,仅返回当前站点支持产品类型对应的字段
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| team_id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| product_types | [integer] | true | 无 | 团队资源空间未取消、未软删除且当前站点支持的套餐类型 |
| product_residence_remain_count | integer(int64) | false | 无 | 类型 9 剩余流量 |
| product_residence_total_count | integer(int64) | false | 无 | 类型 9 总流量 |
| pdrue2_timestamp | integer(int64) | false | 无 | 类型 11 最晚过期时间戳;无团队套餐时为 0 |
| remain | integer,string | false | 无 | 类型 17 剩余数量 |
| total_amount | integer,string | false | 无 | 类型 17 总数量 |
| scraping_remain | integer(int64) | false | 无 | 类型 18 剩余次数 |
| scraping_total_amount | integer(int64) | false | 无 | 类型 18 总次数 |
| scraping_timestamp | string | false | 无 | 类型 18 最晚过期时间;无套餐时为 "-" |
| scraping_timestamp2 | integer(int64) | false | 无 | 类型 18 最晚过期时间戳 |
| common_scraping_remain | integer(int64) | false | 无 | 类型 29 剩余次数 |
| common_scraping_total_amount | integer(int64) | false | 无 | 类型 29 总次数 |
| common_scraping_timestamp | string | false | 无 | 类型 29 最晚过期时间;无套餐时为 "-" |
| common_scraping_timestamp2 | integer(int64) | false | 无 | 类型 29 最晚过期时间戳 |
| pdidcr_count | integer | false | 无 | 类型 12 有效套餐数量 |
| pdidcr_total | integer | false | 无 | 类型 12 套餐总数 |
| pdidcr_traffic_remain | integer(int64) | false | 无 | 类型 12 剩余流量 |
| pdidcr_traffic_total | integer(int64) | false | 无 | 类型 12 总流量 |
| p_sitai_ip_count | integer | false | 无 | 类型 13 有效 IP 数量 |
| p_sitai_ip | integer | false | 无 | 类型 13 有效套餐数量 |
| p_sitai_ip_total | integer | false | 无 | 类型 13 套餐总数 |
| p_sitai_remain | integer(int64) | false | 无 | 类型 13/24 剩余流量 |
| p_sitai_total | integer(int64) | false | 无 | 类型 13/24 总流量 |
| pdidc_count | integer | false | 无 | 类型 14 有效套餐数量 |
| pdidc_total | integer | false | 无 | 类型 14 套餐总数 |
| pdidc_ip_count | integer | false | 无 | 类型 14 有效 IP 数量 |
| pdidc_ip_all_count | integer | false | 无 | 类型 14 IP 总数 |
| pdispr_count | integer | false | 无 | 类型 15 有效套餐数量 |
| pdispr_total | integer | false | 无 | 类型 15 套餐总数 |
| pdispr_traffic_remain | integer(int64) | false | 无 | 类型 15 剩余流量 |
| pdispr_traffic_total | integer(int64) | false | 无 | 类型 15 总流量 |
| product_datacenter_isp_traffic_ip_count | integer | false | 无 | 类型 16 有效 IP 数量 |
| product_datacenter_isp_traffc_ip | integer | false | 无 | 类型 16 有效套餐数量;历史兼容拼写 |
| product_datacenter_isp_traffc_ip_total | integer | false | 无 | 类型 16 套餐总数;历史兼容拼写 |
| product_datacenter_isp_traffic_ip | integer | false | 无 | 类型 16 有效套餐数量 |
| product_datacenter_isp_traffic_ip_total | integer | false | 无 | 类型 16 套餐总数 |
| product_datacenter_isp_traffc_remain | integer(int64) | false | 无 | 类型 16/24 剩余流量;历史兼容拼写 |
| product_datacenter_isp_traffc_total | integer(int64) | false | 无 | 类型 16/24 总流量;历史兼容拼写 |
| product_datacenter_isp_traffic_remain | integer(int64) | false | 无 | 类型 16/24 剩余流量 |
| product_datacenter_isp_traffic_total | integer(int64) | false | 无 | 类型 16/24 总流量 |
| product_datacenter_isp_ip | integer | false | 无 | 类型 21 或 25 有效套餐数量 |
| product_datacenter_isp_ip_total | integer | false | 无 | 类型 21 或 25 套餐总数 |
| product_datacenter_isp_ip_count | integer | false | 无 | 类型 21 或 25 有效 IP 数量 |
| product_datacenter_isp_ip_all_count | integer | false | 无 | 类型 21 或 25 IP 总数 |
| product_datacenter_isp_ip_traffic_remain | integer(int64) | false | 无 | 类型 21 对应类型 24 剩余流量 |
| product_datacenter_isp_ip_traffic_total | integer(int64) | false | 无 | 类型 21 对应类型 24 总流量 |
| product_agent_residence_remain_count | integer(int64) | false | 无 | 类型 22 剩余流量 |
| product_agent_residence_total_count | integer(int64) | false | 无 | 类型 22 总流量 |
| product_serp_remain | integer(int64) | false | 无 | 类型 27 剩余次数 |
| product_serp_total | integer(int64) | false | 无 | 类型 27 总次数 |
| product_serp_timestamp | string | false | 无 | 类型 27 最晚过期时间;无套餐时为 "-" |
| product_serp_timestamp2 | integer(int64) | false | 无 | 类型 27 最晚过期时间戳 |
| product_video_remain | integer(int64) | false | 无 | 类型 28 剩余流量 |
| product_video_total | integer(int64) | false | 无 | 类型 28 总流量 |
| product_video_timestamp | string | false | 无 | 类型 28 最晚过期时间;无套餐时为 "-" |
| product_video_timestamp2 | integer(int64) | false | 无 | 类型 28 最晚过期时间戳 |
TeamWallet
{
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
}
团队钱包,与超级管理员个人余额隔离;金额使用当前站点默认货币,最多 4 位小数。
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| team_id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| balance | number(double) | true | 无 | 当前可用团队余额 |
| total_recharge_fee | number(double) | true | 无 | 当前未消费的团队充值本金,不含个人余额转入金额 |
| updated_at | string | true | 无 | 钱包最近变更时间 |
TeamWalletRecord
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | none |
| team_id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| operator_user_id | integer | true | 无 | 操作人,系统退款为 0 |
| creator | TeamCreator | false | 无 | none |
| direction | integer | true | 无 | 0=支出,1=收入 |
| transaction_type | integer | true | 无 | 1=充值入账,2=个人余额转入,3=余额消费,4=退款或充值退款扣回,5=转回个人余额 |
| amount | number(double) | true | 无 | 本次变动金额,方向由 direction 表示 |
| after_balance | number(double) | true | 无 | 变动后的团队钱包余额 |
| link_id | integer | true | 无 | 关联订单 ID;个人余额转入时为操作用户 ID |
| request_id | string | true | 无 | none |
| remark | string | true | 无 | none |
| created_at | string | true | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| direction | 0 |
| direction | 1 |
| transaction_type | 1 |
| transaction_type | 2 |
| transaction_type | 3 |
| transaction_type | 4 |
| transaction_type | 5 |
TeamCreator
{
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| user_id | integer | true | 无 | 操作人用户 ID;系统操作为 0 |
| display_name | string | true | 无 | 展示名称,依次取昵称、用户名、邮箱、手机号 |
| nickname | string | true | 无 | none |
| username | string | true | 无 | none |
| string | true | 无 | 非管理员视角为脱敏值 | |
| phone | string | true | 无 | 非管理员视角为脱敏值 |
TeamResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | Team | false | 无 | none |
TeamListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": "A1b2C3d4E5f6",
"name": "string",
"super_admin_user_id": 1,
"status": 0,
"current_role": 1,
"dissolving_at": "string",
"dissolved_at": "string",
"created_at": "string",
"updated_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [Team] | true | 无 | none |
| »» total | integer | true | 无 | none |
| »» page | integer | true | 无 | none |
| »» page_size | integer | true | 无 | none |
TeamMemberListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [TeamMember] | true | 无 | none |
| »» total | integer | true | 无 | none |
| »» page | integer | true | 无 | none |
| »» page_size | integer | true | 无 | none |
TeamPersonListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [TeamPerson] | true | 无 | none |
| »» total | integer | true | 无 | none |
| »» page | integer | true | 无 | none |
| »» page_size | integer | true | 无 | none |
TeamAssetResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | TeamAsset | false | 无 | none |
TeamProductInfoResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"product_types": [
0
],
"product_residence_remain_count": 0,
"product_residence_total_count": 0,
"pdrue2_timestamp": 0,
"remain": 0,
"total_amount": 0,
"scraping_remain": 0,
"scraping_total_amount": 0,
"scraping_timestamp": "string",
"scraping_timestamp2": 0,
"common_scraping_remain": 0,
"common_scraping_total_amount": 0,
"common_scraping_timestamp": "string",
"common_scraping_timestamp2": 0,
"pdidcr_count": 0,
"pdidcr_total": 0,
"pdidcr_traffic_remain": 0,
"pdidcr_traffic_total": 0,
"p_sitai_ip_count": 0,
"p_sitai_ip": 0,
"p_sitai_ip_total": 0,
"p_sitai_remain": 0,
"p_sitai_total": 0,
"pdidc_count": 0,
"pdidc_total": 0,
"pdidc_ip_count": 0,
"pdidc_ip_all_count": 0,
"pdispr_count": 0,
"pdispr_total": 0,
"pdispr_traffic_remain": 0,
"pdispr_traffic_total": 0,
"product_datacenter_isp_traffic_ip_count": 0,
"product_datacenter_isp_traffc_ip": 0,
"product_datacenter_isp_traffc_ip_total": 0,
"product_datacenter_isp_traffic_ip": 0,
"product_datacenter_isp_traffic_ip_total": 0,
"product_datacenter_isp_traffc_remain": 0,
"product_datacenter_isp_traffc_total": 0,
"product_datacenter_isp_traffic_remain": 0,
"product_datacenter_isp_traffic_total": 0,
"product_datacenter_isp_ip": 0,
"product_datacenter_isp_ip_total": 0,
"product_datacenter_isp_ip_count": 0,
"product_datacenter_isp_ip_all_count": 0,
"product_datacenter_isp_ip_traffic_remain": 0,
"product_datacenter_isp_ip_traffic_total": 0,
"product_agent_residence_remain_count": 0,
"product_agent_residence_total_count": 0,
"product_serp_remain": 0,
"product_serp_total": 0,
"product_serp_timestamp": "string",
"product_serp_timestamp2": 0,
"product_video_remain": 0,
"product_video_total": 0,
"product_video_timestamp": "string",
"product_video_timestamp2": 0
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | TeamProductInfo | false | 无 | 套餐统计字段与 /web_v1/user/info 保持一致;取消、退款或软删除记录不计入摘要;除 team_id、product_types 外,仅返回当前站点支持产品类型对应的字段 |
TeamWalletResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_id": "A1b2C3d4E5f6",
"balance": 0.1,
"total_recharge_fee": 0.1,
"updated_at": "string"
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | TeamWallet | false | 无 | 团队钱包,与超级管理员个人余额隔离;金额使用当前站点默认货币,最多 4 位小数。 |
TeamWalletRecordListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"operator_user_id": 0,
"creator": {
"user_id": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string"
},
"direction": 0,
"transaction_type": 1,
"amount": 0.1,
"after_balance": 0.1,
"link_id": 0,
"request_id": "string",
"remark": "string",
"created_at": "string"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [TeamWalletRecord] | true | 无 | none |
| »» total | integer | true | 无 | none |
| »» page | integer | true | 无 | none |
| »» page_size | integer | true | 无 | none |
TeamAssetListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"status": 0,
"total_amount": 0,
"remain": 0,
"bandwidth": 0,
"concurrency": 0,
"expired_at": "string",
"created_at": "string",
"ip": "string",
"country_code": "string",
"country_name": "string",
"asn": "string",
"port": 0
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [TeamAsset] | true | 无 | none |
| »» total | integer | true | 无 | none |
| »» page | integer | true | 无 | none |
| »» page_size | integer | true | 无 | none |
UserApiKeyMetadata
{
"id": 1,
"api_key": "string",
"team_user_id": 0,
"remark": "string",
"status": 0,
"created_at": "string",
"updated_at": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | API Key ID |
| api_key | string | true | 无 | 创建响应为完整 Key;团队列表中为脱敏值 |
| team_user_id | integer | true | 无 | 团队 Key 实际持有成员 ID,个人 Key 为 0 |
| remark | string | true | 无 | 备注 |
| status | integer | true | 无 | 0=停用,1=启用 |
| created_at | string | true | 无 | 创建时间 |
| updated_at | string,null | false | 无 | 更新时间 |
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
InvoiceInfo
{
"invoice_code": "string",
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 1,
"invoice_type": 0,
"vat_id": "string",
"tax_no": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string",
"bank_name": "string",
"bank_account": "string",
"is_def": true
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| invoice_code | string | false | 无 | none |
| name | string | false | 无 | none |
| org_name | string | false | 无 | none |
| first_name | string | false | 无 | none |
| last_name | string | false | 无 | none |
| phone | string | false | 无 | none |
| string(email) | false | 无 | none | |
| role_type | integer | false | 无 | none |
| invoice_type | integer | false | 无 | none |
| vat_id | string | false | 无 | none |
| tax_no | string | false | 无 | none |
| address_country | string | false | 无 | none |
| address_city | string | false | 无 | none |
| address_line1 | string | false | 无 | none |
| address_line2 | string | false | 无 | none |
| address_postal_code | string | false | 无 | none |
| bank_name | string | false | 无 | none |
| bank_account | string | false | 无 | none |
| is_def | boolean | false | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
MonthlyRenewalRequest
{
"team_id": "A1b2C3d4E5f6",
"user_product_ids": [
1
],
"user_coupon_id": 1,
"coupon_sn": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| team_id | ResourceSpaceId | false | 无 | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| user_product_ids | any | true | 无 | 用户套餐 ID 数组,也兼容英文逗号分隔字符串 |
oneOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | [integer] | false | 无 | none |
xor
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | string | false | 无 | none |
continued
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| user_coupon_id | integer | false | 无 | none |
| coupon_sn | string | false | 无 | none |
TeamInvitation
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | 邀请 ID |
| team_id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| inviter_user_id | integer | true | 无 | 邀请人用户 ID |
| invitee_user_id | integer | true | 无 | 受邀用户 ID,尚未匹配注册用户时为 0 |
| invite_type | integer | true | 无 | 邀请类型:1=已注册用户,2=邮箱,3=手机号 |
| invite_country_code | integer | true | 无 | 手机号国家或地区码,非手机号邀请为 0 |
| invite_target | string | true | 无 | 标准化后的邀请目标;已注册用户为 user:{user_id} |
| delivery_type | integer | true | 无 | 原始投递渠道:1=已注册用户,2=邮箱,3=手机号;邮箱或手机号匹配到已注册用户时仍保留原渠道 |
| role | integer | true | 无 | 目标角色:2=管理员,3=普通成员 |
| status | integer | true | 无 | 邀请状态:0=待处理,1=已接受,2=已拒绝,3=已取消,4=已过期 |
| accepted_by_user_id | integer | true | 无 | 接受人用户 ID,未接受时为 0 |
| expired_at | string | true | 无 | 过期时间,格式 YYYY-MM-DD HH:mm:ss |
| accepted_at | string,null | true | 无 | 接受时间 |
| rejected_at | string,null | true | 无 | 拒绝时间 |
| cancelled_at | string,null | true | 无 | 取消时间 |
| created_at | string | true | 无 | 创建时间,格式 YYYY-MM-DD HH:mm:ss |
枚举值
| 属性 | 值 |
|---|---|
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
TeamMember
{
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| team_member_id | integer | true | 无 | 成员关系 ID |
| team_id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| user_id | integer | true | 无 | 成员用户 ID |
| role | integer | true | 无 | 角色:1=超级管理员,2=管理员,3=普通成员,4=财务成员 |
| status | integer | true | 无 | 成员状态:0=禁用,1=有效,2=已退出,3=已移除 |
| joined_at | string,null | true | 无 | 加入时间,格式 YYYY-MM-DD HH:mm:ss |
| nickname | string | true | 无 | 成员昵称 |
| username | string | true | 无 | 成员用户名 |
枚举值
| 属性 | 值 |
|---|---|
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
TeamPerson
{
"record_type": "member",
"record_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 0,
"inviter_user_id": 0,
"invite_type": 0,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 0,
"role": 1,
"status": 0,
"display_name": "string",
"nickname": "string",
"username": "string",
"email": "string",
"phone": "string",
"joined_at": "string",
"expired_at": "string",
"created_at": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| record_type | string | true | 无 | 记录类型;member 为有效成员,invitation 为待处理邀请 |
| record_id | integer | true | 无 | 成员关系 ID 或邀请 ID |
| team_id | TeamPublicId | true | 无 | 团队公开标识,首字符为 ASCII 字母,其余字符仅包含 ASCII 字母和数字;不下发数据库数字主键 |
| user_id | integer | true | 无 | 用户 ID,未注册受邀用户为 0 |
| inviter_user_id | integer | true | 无 | 邀请人用户 ID,成员记录为 0 |
| invite_type | integer | true | 无 | 邀请类型,成员记录为 0 |
| invite_country_code | integer | true | 无 | 手机号国家或地区码,成员记录为 0 |
| invite_target | string | true | 无 | 邀请目标,成员记录为空字符串 |
| delivery_type | integer | true | 无 | 原始投递渠道,成员记录为 0 |
| role | integer | true | 无 | 角色:1=超级管理员,2=管理员,3=普通成员,4=财务成员 |
| status | integer | true | 无 | member 固定为 1,invitation 固定为 0 |
| display_name | string | true | 无 | 统一展示名称,依次取昵称、用户名、邮箱、手机号;普通成员视角下联系方式使用脱敏值 |
| nickname | string | true | 无 | 成员或已注册受邀用户昵称 |
| username | string | true | 无 | 成员或已注册受邀用户名 |
| string | true | 无 | 邮箱;超级管理员和管理员返回完整值,普通成员返回带星号的脱敏值 | |
| phone | string | true | 无 | 手机号;超级管理员和管理员返回完整值,普通成员返回带星号的脱敏值 |
| joined_at | string,null | true | 无 | 成员加入时间,邀请记录为 null |
| expired_at | string,null | true | 无 | 邀请过期时间,成员记录为 null |
| created_at | string | true | 无 | 记录创建时间,格式 YYYY-MM-DD HH:mm:ss |
枚举值
| 属性 | 值 |
|---|---|
| record_type | member |
| record_type | invitation |
| invite_type | 0 |
| invite_type | 1 |
| invite_type | 2 |
| invite_type | 3 |
| delivery_type | 0 |
| delivery_type | 1 |
| delivery_type | 2 |
| delivery_type | 3 |
| role | 1 |
| role | 2 |
| role | 3 |
| role | 4 |
| status | 0 |
| status | 1 |
TeamInvitationResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | TeamInvitation | false | 无 | none |
TeamMemberResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_member_id": 1,
"team_id": "A1b2C3d4E5f6",
"user_id": 1,
"role": 1,
"status": 0,
"joined_at": "string",
"nickname": "string",
"username": "string"
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | TeamMember | false | 无 | none |
TeamInvitationCreateResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_token": "string",
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» invitation | TeamInvitation | true | 无 | none |
| »» invitation_token | string | true | 无 | 明文邀请令牌,仅为兼容既有客户端保留;新客户端直接使用 invitation_url |
| »» invitation_url | string(uri) | true | 无 | 包含邀请令牌的前端处理链接 |
| »» notification_channels | TeamInvitationNotificationChannels | true | 无 | none |
TeamInvitationNotificationChannels
{
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| string | false | 无 | 邮件渠道结果 | |
| sms | string | false | 无 | 短信渠道结果 |
| site_inner_message | string | false | 无 | 站内信渠道结果 |
枚举值
| 属性 | 值 |
|---|---|
| queued | |
| failed | |
| skipped | |
| sms | queued |
| sms | failed |
| sms | skipped |
| site_inner_message | created |
| site_inner_message | exists |
| site_inner_message | failed |
TeamInvitationPreviewResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"team_name": "string",
"role": 2,
"status": 0,
"expired_at": "string"
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» team_name | string | true | 无 | 团队名称 |
| »» role | integer | true | 无 | 目标角色 |
| »» status | integer | true | 无 | 邀请状态 |
| »» expired_at | string | true | 无 | 过期时间,格式 YYYY-MM-DD HH:mm:ss |
枚举值
| 属性 | 值 |
|---|---|
| role | 2 |
| role | 3 |
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
TeamInvitationResendResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"invitation": {
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
},
"invitation_url": "http://example.com",
"notification_channels": {
"email": "queued",
"sms": "queued",
"site_inner_message": "created"
}
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» invitation | TeamInvitation | true | 无 | none |
| »» invitation_url | string(uri) | true | 无 | 新的邀请处理链接;旧链接已失效 |
| »» notification_channels | TeamInvitationNotificationChannels | true | 无 | none |
TeamInvitationListResponse
{
"code": 200,
"msg": "SUCCESS",
"data": {
"list": [
{
"id": 1,
"team_id": "A1b2C3d4E5f6",
"inviter_user_id": 1,
"invitee_user_id": 0,
"invite_type": 1,
"invite_country_code": 999,
"invite_target": "string",
"delivery_type": 1,
"role": 2,
"status": 0,
"accepted_by_user_id": 0,
"expired_at": "2026-07-17 10:00:00",
"accepted_at": null,
"rejected_at": null,
"cancelled_at": null,
"created_at": "2026-07-10 10:00:00"
}
],
"total": 0,
"page": 1,
"page_size": 1
},
"request_id": "string"
}
属性
allOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | WebV1SuccessResponse | false | 无 | none |
and
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| anonymous | object | false | 无 | none |
| » data | object | false | 无 | none |
| »» list | [TeamInvitation] | true | 无 | none |
| »» total | integer | true | 无 | 邀请总数 |
| »» page | integer | true | 无 | 当前页码 |
| »» page_size | integer | true | 无 | 实际每页数量 |
User
{
"id": 0,
"email": "[email protected]",
"phone": "string",
"balance": 0.1,
"status": 0,
"is_real_name": true,
"created_at": "2019-08-24T14:15:22Z"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | none |
| string(email) | false | 无 | none | |
| phone | string | false | 无 | none |
| balance | number(float) | false | 无 | none |
| status | integer | false | 无 | none |
| is_real_name | boolean | false | 无 | none |
| created_at | string(date-time) | false | 无 | none |
Order
{
"id": 0,
"trade_no": "string",
"out_trade_no": "string",
"product_id": 0,
"product_type": 0,
"amount": 0,
"unit_price": 0.1,
"total_fee": 0.1,
"goods_fee": 0.1,
"pay_fee": 0.1,
"discount_fee": 0.1,
"handling_fee": 0.1,
"refund_fee": 0.1,
"pm_id": 0,
"pm_title": "string",
"pm_logo": "string",
"status": 0,
"title": "string",
"detail": "string",
"region_desc": "string",
"pay_at": "2019-08-24T14:15:22Z",
"pay_timestamp": 0,
"created_at": "2019-08-24T14:15:22Z",
"pay_fee_status": 0,
"invoice": {
"name": "string",
"org_name": "string",
"first_name": "string",
"last_name": "string",
"phone": "string",
"email": "[email protected]",
"role_type": 0,
"vat_id": "string",
"address_country": "string",
"address_city": "string",
"address_line1": "string",
"address_line2": "string",
"address_postal_code": "string"
}
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | 订单ID |
| trade_no | string | false | 无 | 内部订单编号 |
| out_trade_no | string | false | 无 | 外部订单编号 |
| product_id | integer | false | 无 | 套餐ID |
| product_type | integer | false | 无 | 套餐类型,见产品类型枚举 |
| amount | integer | false | 无 | 购买数量 |
| unit_price | number(float) | false | 无 | 单价 |
| total_fee | number(float) | false | 无 | 订单总价(不含折扣,含手续费) |
| goods_fee | number(float) | false | 无 | 商品价格(含折扣,不含手续费) |
| pay_fee | number(float) | false | 无 | 实付金额(含折扣,含手续费) |
| discount_fee | number(float) | false | 无 | 优惠金额 |
| handling_fee | number(float) | false | 无 | 手续费 |
| refund_fee | number(float) | false | 无 | 退款金额 |
| pm_id | integer | false | 无 | 支付方式ID(来自 /openapi/payment/list) |
| pm_title | string | false | 无 | 支付方式名称 |
| pm_logo | string | false | 无 | 支付方式Logo URL |
| status | integer | false | 无 | 订单状态 |
| title | string | false | 无 | 套餐标题 |
| detail | string | false | 无 | 套餐描述 |
| region_desc | string | false | 无 | 地区规格描述 |
| pay_at | string(date-time) | false | 无 | 支付时间 |
| pay_timestamp | integer | false | 无 | 支付时间戳 |
| created_at | string(date-time) | false | 无 | 创建时间 |
| pay_fee_status | integer | false | 无 | 长短款状态:0正常 1长款(超额支付) 2短款 |
| invoice | object | false | 无 | 发票信息(仅线上支付订单有值) |
| » name | string | false | 无 | 全名 |
| » org_name | string | false | 无 | 企业名称 |
| » first_name | string | false | 无 | none |
| » last_name | string | false | 无 | none |
| » phone | string | false | 无 | none |
| string(email) | false | 无 | none | |
| » role_type | integer | false | 无 | 1个人 2企业 |
| » vat_id | string | false | 无 | 税号 |
| » address_country | string | false | 无 | none |
| » address_city | string | false | 无 | none |
| » address_line1 | string | false | 无 | none |
| » address_line2 | string | false | 无 | none |
| » address_postal_code | string | false | 无 | none |
OrderCheckResult
{
"product_id": 0,
"amount": 0,
"discount_fee": 0.1,
"total_fee": 0.1,
"pay_fee": 0.1,
"product_type": 0,
"title": "string",
"detail": "string",
"ip_result": [
{
"ip": "string",
"price": 0.1,
"country_code": "string",
"current_time": "2019-08-24T14:15:22Z",
"renewal_time": "2019-08-24T14:15:22Z",
"country": {
"name_zh_cn": "string",
"flag": "string",
"square_flag": "string"
}
}
]
}
订单预检结果
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| product_id | integer | false | 无 | 套餐ID |
| amount | integer | false | 无 | 数量 |
| discount_fee | number(float) | false | 无 | 优惠金额 |
| total_fee | number(float) | false | 无 | 订单总额 |
| pay_fee | number(float) | false | 无 | 实付金额 |
| product_type | integer | false | 无 | 套餐类型 |
| title | string | false | 无 | 套餐标题 |
| detail | string | false | 无 | 套餐描述 |
| ip_result | [object] | false | 无 | IP批量续费结果(仅IP续费时返回) |
| » ip | string | false | 无 | none |
| » price | number(float) | false | 无 | none |
| » country_code | string | false | 无 | none |
| » current_time | string(date-time) | false | 无 | none |
| » renewal_time | string(date-time) | false | 无 | none |
| » country | object | false | 无 | none |
| »» name_zh_cn | string | false | 无 | none |
| »» flag | string | false | 无 | 圆形旗帜URL |
| »» square_flag | string | false | 无 | 方形旗帜URL |
Product
{
"id": 0,
"title": "string",
"type": 0,
"show_type": 0,
"status": 0,
"price": 0.1,
"usd_price": 0.1,
"price_hkd": 0.1,
"original_price": 0.1,
"original_usd_price": 0.1,
"original_price_hkd": 0.1,
"local_price": 0.1,
"local_original_price": 0.1,
"preferred_currency": "string",
"support_currencies": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"balance_value": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"time_days": 0,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
],
"region_list_id": 0,
"renew_product_list": "string",
"parent_product_type": 0,
"total_count": 0,
"remain_count": 0,
"extension_of_time_days": [
0
],
"time_days_price_rate": 0.1,
"desc": {
"subtitle": "string",
"flow_value": 0.1,
"flow_give": 0.1,
"balance_give": 0.1,
"time_validity": 0.1,
"time_price": 0.1,
"tip1": "string",
"tip2": "string",
"introduce": [
"string"
]
},
"sku": {
"bandwidth_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"duration_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
],
"concurrency_list": [
{
"id": 0,
"value": 0,
"price": 0.1,
"price_usd": 0.1,
"price_hkd": 0.1
}
]
}
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | 套餐ID |
| title | string | false | 无 | 套餐主标题 |
| type | integer | false | 无 | 套餐类型 |
| show_type | integer | false | 无 | 展示类型:1普通 2大额推荐 3不可购买(需定制) 4试用 |
| status | integer | false | 无 | 状态:1上架 0下架 |
| price | number(float) | false | 无 | 人民币价格 |
| usd_price | number(float) | false | 无 | 美元价格 |
| price_hkd | number(float) | false | 无 | 港币价格 |
| original_price | number(float) | false | 无 | 原价(CNY) |
| original_usd_price | number(float) | false | 无 | 原价(USD) |
| original_price_hkd | number(float) | false | 无 | 原价(HKD) |
| local_price | number(float) | false | 无 | 本地化价格(依赖 preferred_currency) |
| local_original_price | number(float) | false | 无 | 本地化原价(依赖 preferred_currency) |
| preferred_currency | string | false | 无 | 推荐显示货币,如 usd / cny / hkd |
| support_currencies | string | false | 无 | 支持的货币列表,逗号分隔,如 usd,cny |
| flow_value | number(float) | false | 无 | 流量套餐默认流量(GB) |
| flow_give | number(float) | false | 无 | 赠送流量(GB) |
| balance_give | number(float) | false | 无 | 余额充值赠送金额 |
| balance_value | number(float) | false | 无 | 充值金额 |
| time_validity | number(float) | false | 无 | 包量套餐默认有效时长 |
| time_price | number(float) | false | 无 | 包量套餐每IP价格 |
| time_days | integer | false | 无 | 有效期天数,如 30/90/180/365 |
| tip1 | string | false | 无 | 标签说明1 |
| tip2 | string | false | 无 | 标签说明2 |
| introduce | [string] | false | 无 | 文本介绍列表 |
| region_list_id | integer | false | 无 | 地区ID |
| renew_product_list | string | false | 无 | 可续订套餐ID列表(逗号分隔) |
| parent_product_type | integer | false | 无 | 父套餐类型(type=19时有效):14或25 |
| total_count | integer | false | 无 | 总库存,0表示不限制 |
| remain_count | integer | false | 无 | 剩余库存 |
| extension_of_time_days | [integer] | false | 无 | 时长倍数列表,为空或仅含1表示不支持 |
| time_days_price_rate | number(float) | false | 无 | 时长价格系数,价格 × (1 + (倍数-1) × rate) |
| desc | object | false | 无 | 套餐描述信息 |
| » subtitle | string | false | 无 | 副标题 |
| » flow_value | number(float) | false | 无 | none |
| » flow_give | number(float) | false | 无 | none |
| » balance_give | number(float) | false | 无 | none |
| » time_validity | number(float) | false | 无 | none |
| » time_price | number(float) | false | 无 | none |
| » tip1 | string | false | 无 | none |
| » tip2 | string | false | 无 | none |
| » introduce | [string] | false | 无 | none |
| sku | object | false | 无 | 规格参数(type=11时返回) |
| » bandwidth_list | [object] | false | 无 | 带宽规格列表 |
| »» id | integer | false | 无 | none |
| »» value | integer | false | 无 | 带宽值(Mbps) |
| »» price | number(float) | false | 无 | none |
| »» price_usd | number(float) | false | 无 | none |
| »» price_hkd | number(float) | false | 无 | none |
| » duration_list | [object] | false | 无 | 时长规格列表 |
| »» id | integer | false | 无 | none |
| »» value | integer | false | 无 | 时长(天) |
| »» price | number(float) | false | 无 | none |
| »» price_usd | number(float) | false | 无 | none |
| »» price_hkd | number(float) | false | 无 | none |
| » concurrency_list | [object] | false | 无 | 并发规格列表 |
| »» id | integer | false | 无 | none |
| »» value | integer | false | 无 | 并发数 |
| »» price | number(float) | false | 无 | none |
| »» price_usd | number(float) | false | 无 | none |
| »» price_hkd | number(float) | false | 无 | none |
WhiteIp
{
"id": 0,
"ip": "string",
"remark": "string",
"created_at": "2019-08-24T14:15:22Z"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | none |
| ip | string | false | 无 | none |
| remark | string | false | 无 | none |
| created_at | string(date-time) | false | 无 | none |
WhitelistAccount
{
"id": 0,
"username": "string",
"limit": 0,
"used": 0,
"status": 0
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | none |
| username | string | false | 无 | none |
| limit | integer | false | 无 | none |
| used | integer | false | 无 | none |
| status | integer | false | 无 | none |
Coupon
{
"id": 0,
"name": "string",
"code": "string",
"discount": 0.1,
"expire_time": "2019-08-24T14:15:22Z"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | none |
| name | string | false | 无 | none |
| code | string | false | 无 | none |
| discount | number(float) | false | 无 | none |
| expire_time | string(date-time) | false | 无 | none |
Article
{
"id": 0,
"title": "string",
"content": "string",
"created_at": "2019-08-24T14:15:22Z"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | none |
| title | string | false | 无 | none |
| content | string | false | 无 | none |
| created_at | string(date-time) | false | 无 | none |
Pagination
{
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| total | integer | false | 无 | none |
| page_no | integer | false | 无 | none |
| page_size | integer | false | 无 | none |
| total_pages | integer | false | 无 | none |
AutoRenewalConfig
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"product_type": 0,
"left_traffic": 0,
"left_days": 0,
"user_product_id": 1,
"product_id": 0,
"status": 0,
"currency": "string",
"agreed_price": 0,
"agreed_bandwidth_price": 0,
"agreed_concurrency_price": 0,
"bandwidth_id": 0,
"concurrency_id": 0,
"duration": 0,
"renew_product_id": 0,
"days_before_expire": 0,
"traffic_threshold": 0,
"parent_product_type": 0,
"created_at": "string",
"updated_at": "string"
}
单个套餐的自动续费配置快照
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | none |
| user_id | integer | false | 无 | none |
| team_id | ResourceSpaceId | false | 无 | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| team_user_id | integer | false | 无 | none |
| product_type | integer | false | 无 | none |
| left_traffic | integer | false | 无 | 已废弃字段 |
| left_days | integer | false | 无 | 已废弃字段 |
| user_product_id | integer | false | 无 | none |
| product_id | integer | false | 无 | 已废弃字段 |
| status | integer | false | 无 | 0=停用,1=启用 |
| currency | string | false | 无 | none |
| agreed_price | number | false | 无 | 约定总价 |
| agreed_bandwidth_price | number | false | 无 | 套餐 11 的约定带宽单价 |
| agreed_concurrency_price | number | false | 无 | 套餐 11 的约定并发单价 |
| bandwidth_id | integer | false | 无 | none |
| concurrency_id | integer | false | 无 | none |
| duration | integer | false | 无 | 续费时长,单位天 |
| renew_product_id | integer | false | 无 | none |
| days_before_expire | integer | false | 无 | none |
| traffic_threshold | integer | false | 无 | 流量阈值,数据库值单位 KB |
| parent_product_type | integer | false | 无 | none |
| created_at | string | false | 无 | none |
| updated_at | string | false | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| status | 0 |
| status | 1 |
AutoRenewalLog
{
"id": 1,
"user_id": 1,
"team_id": "A1b2C3d4E5f6",
"team_user_id": 0,
"config_id": 0,
"user_product_id": 1,
"product_type": 0,
"renew_product_id": 0,
"order_id": 0,
"fee": 0,
"currency": "string",
"before_expired_at": "string",
"after_expired_at": "string",
"before_remain": 0,
"after_remain": 0,
"trigger_type": 0,
"status": 1,
"revoke_at": "string",
"revoke_remark": "string",
"created_at": "string",
"updated_at": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | none |
| user_id | integer | true | 无 | none |
| team_id | ResourceSpaceId | true | 无 | 公开资源空间标识;请求个人空间时省略 team_id 或传空字符串,响应个人空间时为空字符串;数字 0 和字符串 "0" 均非法,团队空间使用 6-12 位团队公开标识 |
| team_user_id | integer | true | 无 | none |
| config_id | integer | true | 无 | none |
| user_product_id | integer | true | 无 | none |
| product_type | integer | true | 无 | none |
| renew_product_id | integer | true | 无 | none |
| order_id | integer | true | 无 | none |
| fee | number | true | 无 | none |
| currency | string | true | 无 | none |
| before_expired_at | string,null | false | 无 | none |
| after_expired_at | string,null | false | 无 | none |
| before_remain | integer(int64) | true | 无 | none |
| after_remain | integer(int64) | true | 无 | none |
| trigger_type | integer | true | 无 | 0=到期前,1=流量不足 |
| status | integer | true | 无 | 1=成功,2=已撤销,3=失败 |
| revoke_at | string,null | false | 无 | none |
| revoke_remark | string | true | 无 | none |
| created_at | string | true | 无 | none |
| updated_at | string | true | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| trigger_type | 0 |
| trigger_type | 1 |
| status | 1 |
| status | 2 |
| status | 3 |
MonthlyRenewalBatch
{
"type": "current",
"start_at": "string",
"end_at": "string",
"target_expired_at": "string",
"timezone": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| type | string | true | 无 | none |
| start_at | string | true | 无 | none |
| end_at | string | true | 无 | none |
| target_expired_at | string | true | 无 | none |
| timezone | string | true | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| type | current |
| type | next |
MonthlyRenewalItem
{
"id": 0,
"user_product_id": 1,
"product_id": 1,
"product_type": 0,
"parent_product_type": 0,
"title": "string",
"expired_at": "string",
"target_expired_at": "string",
"renew_days": 1,
"unit_month_price": 0,
"pay_fee": 0,
"currency": "string",
"bandwidth": 0,
"bandwidth_mbsp": 0,
"concurrency": 0,
"ip": "string",
"country_code": "string",
"paid_at": "string",
"refunded_at": "string",
"created_at": "string",
"updated_at": "string"
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | false | 无 | 历史账单明细 ID |
| user_product_id | integer | true | 无 | none |
| product_id | integer | true | 无 | none |
| product_type | integer | true | 无 | none |
| parent_product_type | integer | true | 无 | none |
| title | string | true | 无 | none |
| expired_at | string | true | 无 | none |
| target_expired_at | string | true | 无 | none |
| renew_days | integer | true | 无 | none |
| unit_month_price | number | false | 无 | none |
| pay_fee | number | true | 无 | none |
| currency | string | true | 无 | none |
| bandwidth | integer | false | 无 | none |
| bandwidth_mbsp | number | false | 无 | 带宽换算值 |
| concurrency | integer | false | 无 | none |
| ip | string | false | 无 | 静态 IP 套餐返回 |
| country_code | string | false | 无 | 静态 IP 套餐返回 |
| paid_at | string,null | false | 无 | none |
| refunded_at | string,null | false | 无 | none |
| created_at | string | false | 无 | none |
| updated_at | string | false | 无 | none |
InvoiceRecord
{
"id": 1,
"invoice_no": "string",
"invoice_amount": 0,
"invoice_download_url": "string",
"status": 0,
"remark": "string",
"order_ids": [
0
],
"created_at": 0,
"invoice_info": {
"invoice_code": "string",
"name": "string",
"org_name": "string",
"role_type": 1,
"invoice_type": 0
}
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| id | integer | true | 无 | none |
| invoice_no | string | true | 无 | none |
| invoice_amount | number | true | 无 | none |
| invoice_download_url | string | true | 无 | none |
| status | integer | true | 无 | none |
| remark | string | true | 无 | none |
| order_ids | [integer] | true | 无 | none |
| created_at | integer | true | 无 | Unix 时间戳 |
| invoice_info | any | true | 无 | none |
oneOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | object | false | 无 | none |
| »» invoice_code | string | true | 无 | none |
| »» name | string | true | 无 | none |
| »» org_name | string | true | 无 | none |
| »» role_type | integer | true | 无 | none |
| »» invoice_type | integer | true | 无 | none |
xor
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | null | false | 无 | none |
枚举值
| 属性 | 值 |
|---|---|
| role_type | 1 |
| role_type | 2 |
| invoice_type | 0 |
| invoice_type | 1 |
| invoice_type | 2 |
PayCheckData
{
"trade_no": "string",
"pm_id": 0,
"pay_method": 0,
"trade_type": "string",
"country_code": "string",
"currency": "string",
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0,
"pay_method_info": {
"id": 0,
"type": 0,
"title": "string",
"group": "string",
"handling_rate": 0,
"handling_fee": 0,
"handling_fee_currency": "usd",
"handling_fee_converted": 0
},
"origin": {
"pm_id": 0,
"pay_method": 0,
"goods_fee": 0,
"discount_fee": 0,
"handling_fee": 0,
"pay_fee": 0,
"total_fee": 0
}
}
属性
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| trade_no | string | true | 无 | none |
| pm_id | integer | true | 无 | none |
| pay_method | integer | true | 无 | none |
| trade_type | string | true | 无 | none |
| country_code | string | true | 无 | none |
| currency | string | true | 无 | none |
| goods_fee | number | true | 无 | none |
| discount_fee | number | true | 无 | none |
| handling_fee | number | true | 无 | none |
| pay_fee | number | true | 无 | none |
| total_fee | number | true | 无 | none |
| pay_method_info | any | true | 无 | none |
oneOf
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | object | false | 无 | none |
| »» id | integer | true | 无 | none |
| »» type | integer | true | 无 | none |
| »» title | string | true | 无 | none |
| »» group | string | true | 无 | none |
| »» handling_rate | number | true | 无 | none |
| »» handling_fee | number | true | 无 | none |
| »» handling_fee_currency | string | true | 无 | none |
| »» handling_fee_converted | number | true | 无 | none |
xor
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| » anonymous | null | false | 无 | none |
continued
| 名称 | 类型 | 必填 | 约束 | 描述 |
|---|---|---|---|---|
| origin | object | true | 无 | none |
| » pm_id | integer | true | 无 | none |
| » pay_method | integer | true | 无 | none |
| » goods_fee | number | true | 无 | none |
| » discount_fee | number | true | 无 | none |
| » handling_fee | number | true | 无 | none |
| » pay_fee | number | true | 无 | none |
| » total_fee | number | true | 无 | none |