Sale percentage ### Sale percentage #### What is the sale percentage? Sale percentage is a discount that is applied to the price of the order. The sale percentage is calculated based on the user's activity on the site, or referrals. The more active the user is, the higher the discount. #### Referral program It uses __sp-referral__ header as a referral code, more you can find on [wiki welcome page](/apidocs). #### How to apply the sale percentage? This is already calculated in the price of the orders, you don't need to do anything, just purchase the order. Cart
A list of all publicly available methods for interacting with the API.
- Main
- Cart (7 methods)
- Calculate ### Calculate order Calculate given order and return the result, this is used in plan selector to show the price of the order. Cart
- Order This is renew package for next period. You need __money__ to renew package.
- Available countries Cart
- Available geo services
- Config Get all config for calculator, like: rules for counts, traffic, paid period, etc. This is used in plan selector to show the rules for the order. Cart
- Sale percentage ### Sale percentage #### What is the sale percentage? Sale percentage is a discount that is applied to the price of the order. The sale percentage is calculated based on the user's activity on the site, or referrals. The more active the user is, the higher the discount. #### Referral program It uses __sp-referral__ header as a referral code, more you can find on [wiki welcome page](/apidocs). #### How to apply the sale percentage? This is already calculated in the price of the orders, you don't need to do anything, just purchase the order. Cart
- Bonuses Cart
- Get proxies in given package. (1 methods)
- User (30 methods)
- Info Cancel non active package (without proxies), also money receives back)
- Money & Balance Toggle subscription renew (Only for saved)) User(9 methods)
- Oauth Return list of allowed targets (which can be used in oauth).(3 methods)
- Sessions Get session by id. User(3 methods)
- Api tokens Create a new API token for the user. User(4 methods)
- Api tokens Create a new API token for the user. User(4 methods)
- Money & Balance Toggle subscription renew (Only for saved)) User(9 methods)
- Referral(10 methods)
- Referral(10 methods)
- Referral(10 methods)
- Referral(10 methods)
- Referral(10 methods)
- Referral(10 methods)
- Referral(10 methods)
- Referral(10 methods)
- Sessions Get session by id. User(3 methods)
- Phone status(2 methods)
- Money & Balance Toggle subscription renew (Only for saved)) User(9 methods)
- Abilities Check if token has ability to do something. User(2 methods)
- Money & Balance Toggle subscription renew (Only for saved)) User(9 methods)
- Money & Balance Toggle subscription renew (Only for saved)) User(9 methods)
- Phone(2 methods)
- Avatar User(3 methods)
- Other linked accounts(3 methods)
- Other linked accounts(3 methods)
- Promo Get available for activation promocodes. User(2 methods)
- Features(2 methods)
- Features(2 methods)
- Other linked accounts(3 methods)
- Referral(10 methods)
- Checker (4 methods)
- IP information Get IP information, such as country, city, timezone, etc. Checker(2 methods)
- IP information Get IP information, such as country, city, timezone, etc. Checker(2 methods)
- Proxy ### Check proxy This method allows connect through proxy and check if it's working. #### How it works? It will connect to `http://host.stableproxy.com/ip/` through proxy and get IP address, then it will connect to `https://ipinfo.io/widget/demo/ip` and get location information. Checker
- Blacklist ### Check website before order Check website in blacklist before order, some types of blacklist can be enabled or disabled. For example we allow pay sites on mobile proxies. Checker
- Get messages from given conversation. (1 methods)
- Get available city in residential country or regions (1 methods)
- Package Initiate a geo-location check for selected package proxies (by index, max 20).Connects through each selected proxy once to resolve its live egress IP, then returns the provider list (names + logos) and a per-provider result URL. The frontend renders a progress bar per provider and loads each URL (see proxyLocationService) to fill results in.The backend-only connect URLs and resolved egress IPs are stashed in cache under an opaque token — they never travel to the client. (17 methods)
- Proxies(14 methods)
- Info Cancel non active package (without proxies), also money receives back)(4 methods)
- Order This is renew package for next period. You need __money__ to renew package.(5 methods)
- Proxies(14 methods)
- Delete
- Features(2 methods)
- Features(2 methods)
- Proxies(14 methods)
- Order This is renew package for next period. You need __money__ to renew package.(5 methods)
- Order This is renew package for next period. You need __money__ to renew package.(5 methods)
- Proxies(14 methods)
- Proxies(14 methods)
- Proxies(14 methods)
- Proxies(14 methods)
- Settings Update user settings, for example: name, email, currency. Some settings need confirmation, for example: email.(2 methods)
- Proxies(14 methods)
- Info Cancel non active package (without proxies), also money receives back)(4 methods)
- Get proxy (1 methods)
- Other (19 methods)
- Retrieve user actual balance.
- v2/business/contact
- Captcha Issue a new slider challenge (background + ethernet piece + geometry).
- Captcha Issue a new slider challenge (background + ethernet piece + geometry).
- Captcha Issue a new slider challenge (background + ethernet piece + geometry).
- Captcha Issue a new slider challenge (background + ethernet piece + geometry).
- Package Initiate a geo-location check for selected package proxies (by index, max 20).Connects through each selected proxy once to resolve its live egress IP, then returns the provider list (names + logos) and a per-provider result URL. The frontend renders a progress bar per provider and loads each URL (see proxyLocationService) to fill results in.The backend-only connect URLs and resolved egress IPs are stashed in cache under an opaque token — they never travel to the client.
- Package Initiate a geo-location check for selected package proxies (by index, max 20).Connects through each selected proxy once to resolve its live egress IP, then returns the provider list (names + logos) and a per-provider result URL. The frontend renders a progress bar per provider and loads each URL (see proxyLocationService) to fill results in.The backend-only connect URLs and resolved egress IPs are stashed in cache under an opaque token — they never travel to the client.
- Tracking Get current tracking info by token (from cookie or query).
- Tracking Get current tracking info by token (from cookie or query).
- v2/user/2fa
- v2/user/2fa
- v2/user/2fa/confirm
- v2/user/2fa/enroll
- v2/user/2fa/verify
- v2/user/admin-legacy-session
- User
- User
- v2/user/login/2fa
- Send message to given conversation. (1 methods)
- Get app info (1 methods)
- Return list of allowed targets (which can be used in oauth). (1 methods)
- List of API tokens (1 methods)
- Create a new API token for the user. (1 methods)
- View referral token (1 methods)
- Get session by id. (1 methods)
- Get balance history entry. (1 methods)
- Unsubscribe from balance subscription. (1 methods)
- Toggle subscription renew (Only for saved)) (1 methods)
- Cancel non active package (without proxies), also money receives back) (1 methods)
- Retrieve download hash for package, for download package proxies. (1 methods)
- Reset Download Hash (1 methods)
- Download proxies in specific format, with specific connection type (1 methods)
- Get note (1 methods)
- Add personal note for proxy in package. (1 methods)
- This is renew package for next period. You need __money__ to renew package. (1 methods)
- Add/Set traffic (1 methods)
- Rotate proxy (1 methods)
- Change selected settings for given package. (1 methods)
- Get available connection servers (Some servers can give better speed). (1 methods)
- Package super proxy (1 methods)
- Same as list but fetch only one. (1 methods)
- Conversation (3 methods)
- Get and read all user notifications. (1 methods)
- Retrieve all user settings, for example: name, email, currency. (1 methods)
- Update user settings, for example: name, email, currency. Some settings need confirmation, for example: email. (1 methods)
- ### Purchase order This method is used to purchase the order, you need to send the _order_id_, _overall_ *(Is total_price, based on user currency)* from [v2/cart/order](/apidocs/cart/order) to this endpoint to purchase the order. (1 methods)
- Write ticket to support. (1 methods)
- View ticket (1 methods)
- Check if token has ability to do something. (1 methods)
- Make payment request, then redirect to payment page. (1 methods)
- Get available for activation promocodes. (1 methods)
GET
Get cart sale percentage Sale percentage ### Sale percentage #### What is the sale percentage? Sale percentage is a discount that is applied to the price of the order. The sale percentage is calculated based on the user's activity on the site, or referrals. The more active the user is, the higher the discount. #### Referral program It uses __sp-referral__ header as a referral code, more you can find on [wiki welcome page](/apidocs). #### How to apply the sale percentage? This is already calculated in the price of the orders, you don't need to do anything, just purchase the order. Cart -/cart/sale-percentage
Query method
GEThttps://api.stableproxy.com/v2/cart/sale-percentage
Code examples
JavaScript
async function getCartSalePercentage() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/cart/sale-percentage', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}