Dealers
List a collection of dealers.
OK
Error
GET /api/dealers HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "count": 100,
  "items": [
    {
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
      "enabled": true,
      "level": "DISTRIBUTOR",
      "name": "text",
      "email": "[email protected]",
      "display_name": "text",
      "website": "text",
      "phone": "text",
      "address": "text",
      "description": "text",
      "max_tenants": 100,
      "max_extensions": 50000,
      "tenant_full_access": true
    }
  ]
}Create a dealer.
Enable this dealer or not.
trueDealer level includes:
DISTRIBUTOR: the first level of dealers.SUB_DISTRIBUTOR: the second level of dealers.RESELLER: the third level of dealers.
The user's account name.
Only letters, numbers, and the following special characters can be added: underscore, dash, single quote, and period (_, -, ', and .).
Username cannot start or end with period (.).
admin, system, administrator, and root are reserved names for system admin only with case ignored.
The password of dealer.
The email address of user.
The display name of user.
The website of user.
The mobile phone number of user.
The address.
The description of dealer.
The maximum number of tenants that the dealer is allowed to create.
100The maximum number of extensions that the dealer is allowed to create.
50000Whether or not the reseller is allowed to have full control over the tenant.
This attribute is not valid if not modified by first level dealer.
trueSuccess
Error
POST /api/dealers HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 259
{
  "enabled": true,
  "level": "DISTRIBUTOR",
  "name": "text",
  "password": "text",
  "email": "[email protected]",
  "display_name": "text",
  "website": "text",
  "phone": "text",
  "address": "text",
  "description": "text",
  "max_tenants": 100,
  "max_extensions": 50000,
  "tenant_full_access": true
}{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}Get details of the dealer by it's unique ID.
The unique ID of dealer.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwOK
Error
GET /api/dealers/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw",
  "enabled": true,
  "level": "DISTRIBUTOR",
  "name": "text",
  "email": "[email protected]",
  "display_name": "text",
  "website": "text",
  "phone": "text",
  "address": "text",
  "description": "text",
  "max_tenants": 100,
  "max_extensions": 50000,
  "tenant_full_access": true
}Modify the settings of the dealer.
The unique ID of dealer.
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYwEnable this dealer or not.
trueThe email address of user.
The display name of user.
The website of user.
The mobile phone number of user.
The address.
The description of dealer.
The maximum number of tenants that the dealer is allowed to create.
100The maximum number of extensions that the dealer is allowed to create.
50000Whether or not the reseller is allowed to have full control over the tenant.
This attribute is not valid if not modified by first level dealer.
trueOK
No content
Error
POST /api/dealers/{id} HTTP/1.1
Host: HOSTNAME:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 205
{
  "enabled": true,
  "email": "[email protected]",
  "display_name": "text",
  "website": "text",
  "phone": "text",
  "address": "text",
  "description": "text",
  "max_tenants": 100,
  "max_extensions": 50000,
  "tenant_full_access": true
}No content