Order

A list of all publicly available methods for interacting with the API.

GET

Get order -/package/order/{id}

Query method

GEThttp://apilocal.stableproxy.com/v2/package/order/{id}

Query parameters

IdentifierRegulationsExample
id1required79

Code examples

1async function getPackageOrder() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/order/{id}'
4      .replace("{id}", 79), {
5         method: 'GET',
6         headers: {
7            'Authorization': 'API-Token [YOUR TOKEN]',
8            'Content-Type': 'application/json'
9         }
10      }
11   );
12   
13   const res = await req.json();
14}

Examples of answers

PUT

Change order -/package/order/{id}

Query method

PUThttp://apilocal.stableproxy.com/v2/package/order/{id}

Query parameters

IdentifierRegulationsExample
traffic-unitNot necessarilynullablestringin:gb"gb"
period-unitNot necessarilynullablestringin:weeks, weeks, months, years"weeks"
traffic-amountrequiredintegerin:25, 100, 400, 800, 5000"25"
period-amountrequiredintegerin"1"
countNot necessarilynullableinteger30
countriesNot necessarilynullablearray{"UA": 10, "PL": 20}
additionalNot necessarilynullableex-booleanfalse
typerequiredstringin:shared, private, residential_gb, datacenter_gb, residential_city_gb, residential_static_gb, mobile_gb, mobile_static, mobile_static_gb"shared"
currencyNot necessarilynullablestringcurrency_code"USD"
has-unlimited-auth-ipsNot necessarilynullableex-booleanfalse
serviceNot necessarilynullablestringilluminate\_validation\_rules\_in55
ip-scoreNot necessarilynullablenumeric41
id1required79

Code examples

1async function putPackageOrder() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/order/{id}'
4      .replace("{id}", 79), {
5         method: 'PUT',
6         headers: {
7            'Authorization': 'API-Token [YOUR TOKEN]',
8            'Content-Type': 'application/json'
9         },
10         body: JSON.stringify({
11            "traffic-unit": "gb",
12            "period-unit": "weeks",
13            "traffic-amount": "25",
14            "period-amount": "1",
15            "count": 30,
16            "countries": {"UA": 10, "PL": 20},
17            "additional": false,
18            "type": "shared",
19            "currency": "USD",
20            "has-unlimited-auth-ips": false,
21            "service": 55,
22            "ip-score": 41
23         }),
24      }
25   );
26   
27   const res = await req.json();
28}

Examples of answers

PUT

Replace ips -/package/order/{id}/ips

Query method

PUThttp://apilocal.stableproxy.com/v2/package/order/{id}/ips

Query parameters

IdentifierRegulationsExample
remove-idsNot necessarilynullablearray[]
add-countriesNot necessarilynullablearraycountries_count:0, 5000{"UA": 10, "PL": 20}
remove-ids.*requiredinteger0
id1required75

Code examples

1async function putPackageOrderIps() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/order/{id}/ips'
4      .replace("{id}", 75), {
5         method: 'PUT',
6         headers: {
7            'Authorization': 'API-Token [YOUR TOKEN]',
8            'Content-Type': 'application/json'
9         },
10         body: JSON.stringify({
11            "remove-ids": [],
12            "add-countries": {"UA": 10, "PL": 20},
13            "remove-ids.*": 0
14         }),
15      }
16   );
17   
18   const res = await req.json();
19}

Examples of answers

PUT

Renew -/package/order/{id}/renew

Query method

PUThttp://apilocal.stableproxy.com/v2/package/order/{id}/renew

Query parameters

IdentifierRegulationsExample
id1required90

Code examples

1async function putPackageOrderRenew() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/order/{id}/renew'
4      .replace("{id}", 90), {
5         method: 'PUT',
6         headers: {
7            'Authorization': 'API-Token [YOUR TOKEN]',
8            'Content-Type': 'application/json'
9         }
10      }
11   );
12   
13   const res = await req.json();
14}

Examples of answers

PUT

Add/Set traffic -/package/order/{id}/traffic

Query method

PUThttp://apilocal.stableproxy.com/v2/package/order/{id}/traffic

Query parameters

IdentifierRegulationsExample
traffic-unitNot necessarilynullablestringin:gb"gb"
traffic-amountrequiredintegerin:25, 100, 400, 800, 5000"25"
is-permanentrequiredex-booleanfalse
id1required56

Code examples

1async function putPackageOrderTraffic() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/package/order/{id}/traffic'
4      .replace("{id}", 56), {
5         method: 'PUT',
6         headers: {
7            'Authorization': 'API-Token [YOUR TOKEN]',
8            'Content-Type': 'application/json'
9         },
10         body: JSON.stringify({
11            "traffic-unit": "gb",
12            "traffic-amount": "25",
13            "is-permanent": false
14         }),
15      }
16   );
17   
18   const res = await req.json();
19}

Examples of answers

StableProxy

StableProxy

© StableProxy – 2021 - 2025 – Ukraine

Payment methods