Tariffs

Retrieve One-time tariff

Work with One-time tariff.Retrieves One-time tariff with the given ID.

get/admin/tariffs/one-time/{id}

Request

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

Path parameters

idnumber double required
Example:1

The ID of the desired One-time tariff.

Response

titlestring required

Unique title of tariff

service_descriptionstring

Unique service description

pricenumber

Price

with_vatboolean

With VAT or not

vat_percentnumber

VAT value

partners_idsstring[] required

Array of partners (ids) who can use this tariff

customer_categoriesstring[]

Customer categories

available_for_locationsnumber[]

Array of locations (ids)

enabledboolean

Enabled

hide_on_admin_portalboolean required

Hide tariff on Admin portal. Default: false

show_on_customer_portalboolean

Show tariff on Customer portal. Default: false

tax_idnumber

Tax id

idnumber required

One-time tariff ID

transaction_category_idnumber

Example response

{
  "title": "Aplha",
  "service_description": "aplha",
  "price": 100,
  "with_vat": true,
  "vat_percent": 19,
  "partners_ids": [
    "1"
  ],
  "customer_categories": [
    "person",
    "company"
  ],
  "customer_labels": [
    {
      "id": 1,
      "label": "Label name",
      "color": "#357bf2"
    }
  ],
  "available_for_locations": [
    1
  ],
  "enabled": true,
  "hide_on_admin_portal": false,
  "show_on_customer_portal": false,
  "tax_id": 0,
  "id": 1,
  "transaction_category_id": 0,
  "tariff_labels": [
    {
      "id": 1,
      "label": "Label name",
      "color": "#357bf2"
    }
  ]
}

Changes

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