Create subuser package

In this request you will learn how to 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.

POST https://proxy-seller.com/api/v1/{YourApiKey}/resident/create

Example:

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

Path parameters:

NameValueDescription

Authorization

<Your_API_Key>

Your personal API key

Request body:

NameTypeDescription

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

Number

The amount of bytes allocated for the subuser package.

expired_at

String

The expiration date for the subuser package.

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": []
}

Last updated