Bonuses 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. 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
- Package (17 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Info Cancel non active package (without proxies), also money receives back) Package(4 methods)
- Order This is renew package for next period. You need __money__ to renew package. Package(5 methods)
- Delete
- Features Package(2 methods)
- Features Package(2 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Order This is renew package for next period. You need __money__ to renew package. Package(5 methods)
- Order This is renew package for next period. You need __money__ to renew package. Package(5 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Settings Update user settings, for example: name, email, currency. Some settings need confirmation, for example: email.(2 methods)
- Settings Update user settings, for example: name, email, currency. Some settings need confirmation, for example: email.(2 methods)
- Info Cancel non active package (without proxies), also money receives back) Package(4 methods)
- Info Cancel non active package (without proxies), also money receives back) Package(4 methods)
- User (33 methods)
- Info Cancel non active package (without proxies), also money receives back) Package
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Oauth Return list of allowed targets (which can be used in oauth).(3 methods)
- Sessions Get session by id.(3 methods)
- Api tokens Create a new API token for the user.(4 methods)
- Api tokens Create a new API token for the user.(4 methods)
- Money & Balance Toggle subscription renew (Only for saved))(10 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)
- Referral(10 methods)
- Sessions Get session by id.(3 methods)
- Phone status(2 methods)
- Settings Update user settings, for example: name, email, currency. Some settings need confirmation, for example: email.(3 methods)
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Abilities Check if token has ability to do something.(2 methods)
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Phone(2 methods)
- Avatar(3 methods)
- Other linked accounts(3 methods)
- Other linked accounts(3 methods)
- Promo Get available for activation promocodes.(2 methods)
- Features Package(2 methods)
- Features Package(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
- Conversation (5 methods)
- Messages Send message to given conversation. Conversation(3 methods)
- Messages Send message to given conversation. Conversation(3 methods)
- Support Get all tickets. Conversation(3 methods)
- Messages Send message to given conversation. Conversation(3 methods)
- Support Get all tickets. Conversation(3 methods)
- Get available city in residential country or regions (1 methods)
- Get proxy bfrom list by index. (1 methods)
- Retrieve user actual balance. (1 methods)
- Return information oauth provider and API application (1 methods)
- Return list of allowed targets (which can be used in oauth). (1 methods)
- Obtain a list of the user's API tokens. (1 methods)
- Create a new API token for the user. (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 for package, old hash will not be valid anymore. (1 methods)
- Download proxies in specific format, with specific connection type (1 methods)
- You can read note for proxy. (1 methods)
- This is renew package for next period. You need __money__ to renew package. (1 methods)
- Change or add traffic to order. You need __money__ to change traffic. (1 methods)
- Rotate proxy, residential, mobile - change ip. (1 methods)
- Remove user proxy (only created by user). (1 methods)
- Get available connection servers (Some servers can give better speed). (1 methods)
- Change the connection bridge to other. (1 methods)
- Get and read all user notifications. (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)
- View ticket (1 methods)
- Check if token has ability to do something. (1 methods)
- Get available for activation promocodes. (1 methods)
- Other (2 methods)
GET
Get cart bonuses Bonuses Cart -/cart/bonuses/{prefix?}
Query method
GEThttps://api.stableproxy.com/v2/cart/bonuses/{prefix?}
Code examples
JavaScript
async function getCartBonuses{prefix?}() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/cart/bonuses/{prefix?}', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}