Add GB to a sub-user
curl --request POST \
--url https://proxies.vision/api/reseller/sub-users/{sub_user_id}/add-gb \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"gb": 5
}'import requests
url = "https://proxies.vision/api/reseller/sub-users/{sub_user_id}/add-gb"
payload = { "gb": 5 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({gb: 5})
};
fetch('https://proxies.vision/api/reseller/sub-users/{sub_user_id}/add-gb', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 42,
"label": "Shop A",
"gb_allocated": "15",
"gb_remaining": "10.8"
}Reseller
Add GB to a sub-user
Requires reseller access. Unlock the Reseller Portal in the dashboard, then use a key with the subusers permission. Other accounts get 403.
Moves more GB from your pool to a sub-user. The login stays the same.
Permission: subusers
POST
/
api
/
reseller
/
sub-users
/
{sub_user_id}
/
add-gb
Add GB to a sub-user
curl --request POST \
--url https://proxies.vision/api/reseller/sub-users/{sub_user_id}/add-gb \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"gb": 5
}'import requests
url = "https://proxies.vision/api/reseller/sub-users/{sub_user_id}/add-gb"
payload = { "gb": 5 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({gb: 5})
};
fetch('https://proxies.vision/api/reseller/sub-users/{sub_user_id}/add-gb', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 42,
"label": "Shop A",
"gb_allocated": "15",
"gb_remaining": "10.8"
}
