Proxy-seller

创建子用户包

Updated:

此 API 允许您从当前有效的流量套餐中创建一个子套餐。子套餐的有效期不得超过当前有效套餐的有效期。流量额度以字节为单位,指定的流量额度将从您当前有效的套餐中预留,但不得超过可用流量额度。

最终目标:

POSThttps://proxy-seller.com/personal/api/v2/{YourApiKey}/residentsubuser/create

路径参数:

名称

价值

描述

授权

<Your_API_Key>

您的个人 API 密钥

请求正文:

名称

类型

描述

is_link_date

布尔型

“如果为‘true’,则到期日期将与主包建立关联。

技能循环

编号

指定旋转类型:'-1' = 不旋转(固定),'0' = 按请求旋转,'1' 至 '3600' = 按秒数旋转。

traffic_limit

字符串

为子用户包分配的字节数。

expired_at

字符串

子用户套餐的到期日期。

示例:

https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/residentsubuser/create
{
 "is_link_date": true,
 "rotation": -1,
 "traffic_limit": "104857600",
 "expired_at":"20.10.2026"
}

回复:

{
    "status": "success",
    "data": {
        "rotation": -1,
        "traffic_limit": "104857600",
        "expired_at": {
            "date": "2026-10-20 23:59:59.000000",
            "timezone_type": 3,
            "timezone": "UTC"
        },
        "is_link_date": true,
        "is_active": true,
        "package_key": "bbfc4a2df989b5db96e1",
        "traffic_usage": "0",
        "traffic_left": "104857600",
        "traffic_usage_sub": "0",
        "traffic_limit_sub": "209715200",
        "traffic_left_sub": "209715200"
    },
    "errors": []
}
{
    "status": "error",
    "data": null,
    "errors": [
        {
            "message": "Error api key",
            "code": 503,
            "customData": null
        },
        {
            "message": "IP not allowed",
            "code": 503,
            "customData": null
        },
        {
            "message": "Request limit reached",
            "code": 503,
            "customData": null
        }
    ]
}
{
    "status": "error",
    "data": null,
    "errors": [
        {
            "message": "IP not allowed",
            "code": 503,
            "customData": null
        }
    ]
}
{
    "status": "error",
    "data": null,
    "errors": [
        {
            "message": "Set [ traffic_limit ] less than [ traffic_left - 1 ] in main package: 27380416559",
            "code": 0,
            "customData": null
        }
    ]
}

On this page