Soxway Docs
Account

Get traffic balance

Get the reseller's current traffic balance in GB. Pricing is volume-based: `*_price_per_gb` is the entry rate (smallest volume), and `*_pricing_tiers` lists each `min_gb` threshold with its `price_per_gb`. The rate charged is that of the highest threshold less than or equal to the purchased volume.

GET
/reseller/balance

Authorization

bearerAuth
AuthorizationBearer <token>

Access token obtained via POST /reseller/access-token using your Reseller Key

In: header

Response Body

application/json

curl -X GET "https://api.soxway.io/reseller/balance"
{
  "data": {
    "traffic_balance_gb": 100.5,
    "reseller_residential_gb": 50,
    "reseller_mobile_gb": 30,
    "reseller_residential_premium_gb": 10,
    "residential_price_per_gb": 1.5,
    "mobile_price_per_gb": 2.5,
    "residential_premium_price_per_gb": 2.5,
    "residential_pricing_tiers": [
      {
        "min_gb": 0,
        "price_per_gb": 1.5
      },
      {
        "min_gb": 250,
        "price_per_gb": 1.4
      },
      {
        "min_gb": 500,
        "price_per_gb": 1.2
      },
      {
        "min_gb": 1000,
        "price_per_gb": 1.05
      },
      {
        "min_gb": 2000,
        "price_per_gb": 0.9
      },
      {
        "min_gb": 5000,
        "price_per_gb": 0.79
      }
    ],
    "mobile_pricing_tiers": [
      {
        "min_gb": 0,
        "price_per_gb": 2.5
      },
      {
        "min_gb": 250,
        "price_per_gb": 2.3
      },
      {
        "min_gb": 500,
        "price_per_gb": 2.05
      },
      {
        "min_gb": 1000,
        "price_per_gb": 2
      }
    ]
  }
}