/api/reseller/users/{userId}/bandwidth/add
GET
/api/reseller/users/{userId}/bandwidth/add
const url = 'https://dashboard.residential.rayobyte.com/api/reseller/users/9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8/bandwidth/add?megabytes=1000';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://dashboard.residential.rayobyte.com/api/reseller/users/9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8/bandwidth/add?megabytes=1000' \ --header 'Authorization: Bearer <token>'Add traffic to Sub-user account
Allows the Reseller to add traffic (in megabytes) to the Sub-user’s balance, which will increase his quota for using the proxy service. The Reseller can add traffic within the amount available to him.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”userId
required
string
Proxy User ID
Example
9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8Query Parameters
Section titled “Query Parameters”megabytes
required
number
Traffic amount in megabytes
Example
1000Responses
Section titled “Responses”Success
Media typeapplication/json
object
status
string
date
string
data
object
Examples
ExampleSuccess
Updated traffic balance
{ "status": "SUCCESS", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "data": { "trafficBalanceKb": 5337200, "trafficBalanceString": "5.1 GB" }}API call failed
Media typeapplication/json
object
status
string
date
string
error
string
Examples
ExampleNo traffic amount
Amount of traffic to add is not specified
{ "status": "FAIL", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "error": "Traffic amount is required"}Not authorized
Media typetext/html
string
Examples
ExampleNot authorized
Not authorized
Not authorized.API call failed
Media typeapplication/json
object
status
string
date
string
error
string
Examples
ExampleInternal error
The user does not exist or belongs to other reseller
{ "status": "FAIL", "date": "Mon, 1 Jan 2022 12:00:00 GMT", "error": "Can not find user info"}Was this page helpful?
Thanks — that helps us fix it.