Proxy-seller

更新软件包

Updated:

停用子套餐时,任何剩余流量都将保留在子套餐内。子套餐的有效期不得超过当前活动资费的有效期。指定以字节为单位分配给子套餐的总流量。

终点:

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

路径参数:

名称

价值

说明

授权

<Your_API_Key>

您的个人应用程序接口密钥

请求正文:

名称

类型

说明

is_link_date

布尔型

如果为 "true",更新日期将与主软件包相关联。

自转

数量

指定旋转类型:"-1"= 不旋转(Sticky),"0"= 按请求旋转,"1 "至 "3600"= 按时间(秒)旋转。

流量限制

字符串

指定分配给子包的字节数。

过期时间

字符串

子软件包的有效期。

is_active

布尔型

设置子包的状态:"true "表示激活,"false "表示不激活。

软件包密钥

字符串

活动软件包的密钥。

例如

https://proxy-seller.com/personal/api/v2/fj4948ffhg58gh843gh/residentsubuser/update

回应:

{
    "status": "success",
    "data": {
        "rotation": 60,
        "traffic_limit": "536870910",
        "expired_at": {
            "date": "2026-06-13 23:59:59.999000",
            "timezone_type": N,
            "timezone": "UTC"
        },
        "is_link_date": false,
        "is_active": true,
        "package_key": "c5ed800bc6b0fac55159",
        "traffic_usage": "0",
        "traffic_left": "536870910",
        "traffic_usage_sub": "0",
        "traffic_limit_sub": "536870910",
        "traffic_left_sub": "536870910"
    },
    "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
        }
    ]
}
{
    "status": "error",
    "data": null,
    "errors": [
        {
            "message": "Sub tarif not found",
            "code": 0,
            "customData": null
        }
    ]
}

On this page