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.
Authorization
bearerAuth 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
}
]
}
}Get access token
Exchange your Reseller Key for a Bearer access token. The token expires after 30 days.
Top up traffic balance
Purchase traffic balance using your account USD balance. Traffic is allocated per proxy type. Pricing is volume-based — the larger the `amount_gb`, the lower the per-GB rate (see `*_pricing_tiers` in `GET /reseller/balance`). The `cost` in the response reflects the tier applied to your purchased volume.