Tariffs

Retrieve Voice tariff

Work with Voice tariff.Retrieves Voice tariff with the given ID.

get/admin/tariffs/voice/{id}

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/tariffs/voice/{id}
  • Auth: HTTP basic

Path parameters

idnumber double required
Example:1

The ID of the desired Voice tariff.

Response

titlestring required

Unique title of tariff

service_namestring

Unique service name. If not set will be get from title

typestring required

Type. Can be 'voip' for VoIP, 'fix' for Fix, 'mobile' for Mobile. Default: 'voip'

partners_idsstring[] required

Array of partners (ids) who can use this tariff

pricenumber

Price

with_vatboolean required

With VAT or not

vat_percentnumber

VAT value

billing_typesstring[]

Types of billing

billing_days_countnumber

Prepaid period days. Default: 1

available_for_locationsnumber[]

Array of locations (ids)

buy_price_increasenumber

Buy price increase

connection_cost_includedboolean

Included pricing cover connect cost

customer_categoriesstring[]

Customer categories

customer_rate_table_idnumber

Rate table (id)

hide_on_admin_portalboolean

Hide tariff on Admin portal. Default: false

show_on_customer_portalboolean

Show tariff on Customer portal. Default: false

tax_idnumber

Tax id

custom_period0 | 1

Use for check if use custom period

available_for_servicesboolean

Available to assign in services

idnumber required

Voice tariff ID

tariffs_for_changenumber[]

Tariff plans available in customer portal for changing services (ids)

servicesnumber

Number of services used

transaction_category_idnumber
transaction_category_id_for_callsnumber
transaction_category_id_for_datanumber
transaction_category_id_for_messagesnumber

Example response

{
  "title": "Aplha",
  "service_name": "aplha",
  "type": "voip",
  "partners_ids": [
    "1"
  ],
  "price": 100,
  "with_vat": true,
  "vat_percent": 19,
  "billing_types": [
    "recurring",
    "prepaid",
    "prepaid_monthly"
  ],
  "billing_days_count": 1,
  "available_for_locations": [
    1
  ],
  "buy_price_increase": 0,
  "connection_cost_included": true,
  "customer_categories": [
    "person",
    "company"
  ],
  "hide_on_admin_portal": false,
  "show_on_customer_portal": false,
  "tax_id": 0,
  "custom_period": 1,
  "available_for_services": true,
  "customer_labels": [
    {
      "id": 1,
      "label": "Label name",
      "color": "#357bf2"
    }
  ],
  "id": 1,
  "tariffs_for_change": [
    0
  ],
  "services": 0,
  "transaction_category_id": 0,
  "transaction_category_id_for_calls": 0,
  "transaction_category_id_for_data": 0,
  "transaction_category_id_for_messages": 0,
  "tariff_labels": [
    {
      "id": 1,
      "label": "Label name",
      "color": "#357bf2"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.