Data Pool API gives you access to different type of master database, which are used in many other API calls, e.g. Time Zones, Country Listing, Billing Plans etc.

Table of Contents

Get Time Zones

This API is used to get a list of all Time Zones.

  • API Route: https://api.enablex.io/ucaas/v1/timezones
  • HTTP Request: GET
  • Access Mechanism: HTTP Basic Authentication, OAauth2
  • Role Based Accessibility; All

Request Example (OAuth2):

GET https://api.enablex.io/ucaas/v1/timezones
Content-Type: application/json
Authorization: Token ACCESS_TOTKEN

Headers Explanation:

  • Content-Type: To have application/json.
  • Authorization: To have Token Access Information

Response Example:

{
  "result": 1,
  "timezones": [
    {
      "timezone_id": "String",
      "zone_name": "String",
      "zone_abbr": "String",
      "time_start": "String",
      "gmt_offset": "Number",
      "is_dst": "Boolean"
    }
  ]
}

Response Explanation (Only for important Object and Keys) :

Object/KeyDescription
timezonesObject. Array of Objects. Each Object carries information of a Timezone
timezones.timezone_idString. Timezone ID
timezones.zone_nameString. Timezone Name
timezones.zone_abbrString. Timezone Abbreviation
timezones.time_startString. Date/Time from which the GST Offset is applicable
timezones.gst_offsetNumber. GMT Offset in minutes
timezones.is_dstObject. true if Daylight Saving Time is applied

Note: All Date Time data in response are in UTC

Get Countries

This API is used to get a list of countris.

  • API Route: https://api.enablex.io/ucaas/v1/countries
  • HTTP Request: GET
  • Access Mechanism: HTTP Basic Authentication, OAauth2
  • Role Based Accessibility; All

Request Example (OAuth2):

GET https://api.enablex.io/ucaas/v1/countries
Content-Type: application/json
Authorization: Token ACCESS_TOTKEN

Headers Explanation:

  • Content-Type: To have application/json.
  • Authorization: To have Token Access Information

Response Example:

{
  "result": 1,
  "countries": [
    {
      "country_id": "String",
      "country_name": "String",
      "iso2_code": "String",
      "iso3_code": "String",
      "isd_code": "String"
    }
  ]
}

Response Explanation (Only for important Object and Keys) :

Object/KeyDescription
countriesArray of Objects. Each object contains a Country information
countries.country_idString. Country ID
countries.country_nameString. Country Name
countries.iso2_codeString. 2-Character ISO Code
countries.iso3_codeString. 3-Character ISO Code
countries.isd_codeString. ISD Code

Get Billing Plans

This API is used to get a list of all Billing Plans of available Applications or of given Application.

  • API Route: https://api.enablex.io/ucaas/v1/plans – For all Billing Plans of all Applications
  • API Route: https://api.enablex.io/ucaas/v1/plans/{{$APP_TYPE}} – For all Billing Plans of all Applications
  • HTTP Request: GET
  • Access Mechanism: HTTP Basic Authentication, OAauth2
  • Role Based Accessibility;
    • Reseller (Access to Plans under the Reseller)
    • Admin / Tenant (Access to Plans under the Tenant)

Request Example (OAuth2): For All Billing Plans of all Applications

GET https://api.enablex.io/ucaas/v1/plans
Content-Type: application/json
Authorization: Token ACCESS_TOTKEN

Request Example (OAuth2): For All Billing Plans of given Application

GET https://api.enablex.io/ucaas/v1/plans/wb
Content-Type: application/json
Authorization: Token ACCESS_TOTKEN

Headers Explanation:

  • Content-Type: To have application/json.
  • Authorization: To have Token Access Information

URL Placeholder Explanation:

PlaceholderDescription
APP_TYPEString. Type of App. Enum: vc (Video Conference). wb (Webinar)

Response Example:

{
  "result": 1,
  "plans": [
    {
      "plan_id": "String",
      "app": "String",
      "plan_name": "String",
      "currency": [
        "String"
      ],
      "status": "String",
      "settings": {
        "recording": "Boolean",
        "audio_only": "Boolean",
        "audio_video": "Boolean",
        "participants": "Integer",
        "duration": "Integer",
        "stream_qlty": "String",
        "record_qlty": "String"
      },
      "user_license": {
        "price": {
          "currency": "Float"
        },
        "price_qtr": {
          "currency": "Float"
        },
        "price_hfyr": {
          "currency": "Float"
        },
        "price_year": {
          "currency": "Float"
        }
      },
      "connect": {
        "price": {
          "currency": "Float"
        }
      },
      "records": {
        "data_unit": "Integer",
        "price": {
          "currency": "Float"
        }
      },
      "download": {
        "data_unit": "Integer",
        "price": {
          "currency": "Float"
        }
      },
      "storage": {
        "data_unit": "Integer",
        "price": {
          "currency": "Float"
        }
      }
    }
  ]
}

Response Explanation (Only for important Object and Keys) :

Object/KeyDescription
plan_idString. Plan ID
statusString. Enum: A (Active), S (Suspended)
settingsObject. It contains all features supported by the Plan
user_licenseObject. It contains single user license price
connectObject. It contains video connect price per minute
recordsObject. It contains recording price per defined unit (in Minute)
downloadObject. It contains download price per defined unit (in MB)
storageObject. It contains storage price per defined unit (in MB)