Promo

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

GET

Get available promocodes -/promo/available

Query method

GEThttp://apilocal.stableproxy.com/v2/promo/available

Code examples

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

Examples of answers

GET

Get active promocodes -/promo/list

Query method

GEThttp://apilocal.stableproxy.com/v2/promo/list

Code examples

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

Examples of answers

StableProxy

StableProxy

© StableProxy – 2021 - 2025 – Ukraine

Payment methods