Bonuses Cart
A list of all publicly available methods for interacting with the API.
- Main
- Cart (8 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
- Purchase ### 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. 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 (30 methods)
- Proxies Remove user proxy (only created by user). Package(11 methods)
- Proxies Remove user proxy (only created by user). Package(11 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)
- Info Cancel non active package (without proxies), also money receives back) Package(4 methods)
- Delete
- Download hash Retrieve download hash for package, for download package proxies.(3 methods)
- Download hash Retrieve download hash for package, for download package proxies.(3 methods)
- Download Download proxies in specific format, with specific connection type(3 methods)
- 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)
- 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)
- 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)
- 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)
- Connection bridges Get available connection servers (Some servers can give better speed). Package(2 methods)
- Connection bridges Get available connection servers (Some servers can give better speed). Package(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 (46 methods)
- Info Cancel non active package (without proxies), also money receives back) Package
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Money & Balance Toggle subscription renew (Only for saved))(10 methods)
- Oauth Return list of allowed targets (which can be used in oauth).(3 methods)
- Oauth Return list of allowed targets (which can be used in oauth).(3 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)
- 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)
- 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)
- Sessions Get session by id.(3 methods)
- Notifications Get and read all user notifications.
- Phone status(2 methods)
- Settings Update user settings, for example: name, email, currency. Some settings need confirmation, for example: email.(3 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)
- 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)
- 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 (6 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)
- Support Get all tickets. Conversation(3 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();
}