Sub users

(For resellers only)

Get sub user by ID

get

Sub user by ID

Authorizations
AuthorizationstringRequired
Path parameters
idanyRequired
Responses
200

Data of the sub users

application/json
get
/customer/sub-user/{id}
GET /v1/customer/sub-user/{id} HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "success": true,
    "data": [
      ""
    ]
  }
]

Patch sub users

patch

Sub user update password

Authorizations
AuthorizationstringRequired
Path parameters
idanyRequired
Body
new_login_pwdstringRequired

new_login_pwd

Responses
200

Success

application/json
patch
/customer/sub-user/{id}/password
PATCH /v1/customer/sub-user/{id}/password HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20

{
  "new_login_pwd": ""
}
{
  "success": true,
  "data": [
    ""
  ]
}

Get sub users

get

Sub user

Authorizations
AuthorizationstringRequired
Responses
200

Data of the sub users

application/json
get
/customer/sub-user/
GET /v1/customer/sub-user/ HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
[
  {
    "success": true,
    "data": [
      ""
    ]
  }
]

Add sub user

post

Sub user (only for reseller)

Authorizations
AuthorizationstringRequired
Body
customer_dashboard_emailstringRequired

customer_dashboard_email

customer_namestringRequired

customer_name

customer_dashboard_pwdstringRequired

customer_dashboard_pwd

customer_login_namestringRequired

customer_login_name

customer_login_pwdstringRequired

customer_login_pwd

snkrs_private_poolnumberOptional

snkrs_private_pool

Responses
200

Success

application/json
post
/customer/sub-user/
POST /v1/customer/sub-user/ HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 150

{
  "customer_dashboard_email": "",
  "customer_name": "",
  "customer_dashboard_pwd": "",
  "customer_login_name": "",
  "customer_login_pwd": "",
  "snkrs_private_pool": 1
}
{
  "success": true,
  "data": [
    ""
  ]
}

Allocate GB to Sub user

post

Allocate GB to Sub user

Authorizations
AuthorizationstringRequired
Path parameters
idanyRequired
Body
allocatenumberRequired

allocate gb

Example: 10
product_typestringRequired

Product Type

Example: '*' | 'dc' | 'res' | 'stc' | 'mob'
Responses
200

Success

application/json
post
/customer/sub-user/{id}/allocate
POST /v1/customer/sub-user/{id}/allocate HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67

{
  "allocate": 10,
  "product_type": "'*' | 'dc' | 'res' | 'stc' | 'mob'"
}
{
  "success": true,
  "token": "text"
}

Allocate Ips's to Sub user

post

Allocate Ips's to Sub user

Authorizations
AuthorizationstringRequired
Path parameters
idanyRequired
Header parameters
AuthorizationanyOptional

token

Body
access_pointstringRequired

Access Point

Example: abc
country_codestringRequired

Country Code

Example: US
ipsnumberRequired

IP's to allocate

Example: 5
bandwidthnumberRequired

bandwith you want to give to sub-user

Example: 5
Responses
200

Success

application/json
post
/customer/sub-user/{id}/allocateIps
POST /v1/customer/sub-user/{id}/allocateIps HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "access_point": "abc",
  "country_code": "US",
  "ips": 5,
  "bandwidth": 5
}
{
  "success": true,
  "message": "null"
}

Disabled a Sub user

put

Disabled Sub user

Authorizations
AuthorizationstringRequired
Path parameters
idanyRequired
Responses
200

Success

application/json
put
/customer/sub-user/{id}/disabled
PUT /v1/customer/sub-user/{id}/disabled HTTP/1.1
Host: customers-api.netnut.io
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "message": "Customer updated successfully"
}

Last updated