Skip to content

/api/reseller/users/{userId}/bandwidth/add

GET
/api/reseller/users/{userId}/bandwidth/add
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.

userId
required
string

Proxy User ID

Example
9ee3d294-6f1e-489c-9b9b-e25e9a4e37a8
megabytes
required
number
>= 1 <= 100000

Traffic amount in megabytes

Example
1000

Success

Media typeapplication/json
object
status
string
Allowed values: SUCCESS
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
Allowed values: FAIL
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
Allowed values: FAIL
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?