Bonusy

Lista wszystkich publicznie dostępnych metod interakcji z API.

GET

Zdobądź bonusy do koszyka -/cart/bonuses/{prefix?}

Metoda zapytania

GEThttp://apilocal.stableproxy.com/v2/cart/bonuses/{prefix?}

Przykłady kodu

1async function getCartBonuses{prefix?}() {
2   const baseUrl = 'http://apilocal.stableproxy.com/v2';
3   const req = await fetch(baseUrl + '/cart/bonuses/{prefix?}', {
4         method: 'GET',
5         headers: {
6            'Content-Type': 'application/json'
7         }
8      }
9   );
10   
11   const res = await req.json();
12}

Przykłady odpowiedzi