Proxy-seller

하위 사용자 패키지 만들기

이 API를 사용하면 트래픽이 있는 현재 활성 요금제에서 하위 패키지를 만들 수 있습니다. 하위 패키지의 유효 기간은 현재 활성 요금제의 유효 기간을 초과하지 않아야 합니다. 트래픽 양은 바이트 단위로 지정되며, 지정된 트래픽 양은 현재 활성 요금제에서 예약되지만 사용 가능한 양을 초과할 수 없습니다.

엔드포인트:

POSThttps://proxy-seller.com/personal/api/v1/{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/v1/fj4948ffhg58gh843gh/residentsubuser/create

응답:

{
  "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