Proxy-seller

Create subuser package

This API allows you to create a subpackage from your current active tariff with traffic. The validity period for the subpackage must not exceed the current active tariff’s validity period. The traffic amount is specified in bytes, and the specified traffic amount will be reserved from your current active tariff, but not more than what is available.

Endpoint:

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

Path parameters:

Name

Value

Description

Authorization

<Your_API_Key>

Your personal API key

Request body:

Name

Type

Description

is_link_date

boolean

"If 'true', the expiration date will be linked to the main package.

rotation

Number

Specifies the type of rotation: '-1' = No rotation (Sticky), '0' = Rotation per request, '1' to '3600' = Rotation by time in seconds.

traffic_limit

String

The amount of bytes allocated for the subuser package.

expired_at

String

The expiration date for the subuser package.

Example:

https://proxy-seller.com/personal/api/v1/fj4948ffhg58gh843gh/residentsubuser/create

Response:

{
  "status": "success",
  "data": {
    "rotation": 60,
    "traffic_limit": "7516192768",
    "expired_at": "d.m.Y",
    "is_link_date": true,
    "is_active": true,
    "package_key": "1234567890abcdefedcb",
    "traffic_usage": "10",
    "traffic_left": "10",
    "traffic_usage_sub": "10",
    "traffic_limit_sub": "10",
    "traffic_left_sub": "10"
  },
  "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