Tariffs

Create One-time tariff

Creates new One-time tariff.

post/admin/tariffs/one-time

Request

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

Request body

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

customer_labelsnumber[]

Array of customer labels (ids)

tariff_labelsnumber[]

Array of tariff labels (ids)

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

Example request

{
  "title": "Aplha",
  "service_description": "aplha",
  "price": 100,
  "with_vat": true,
  "vat_percent": 19,
  "enabled": true
}

Response

idnumber required

One-time tariff ID

Example response

{
  "id": 1
}

Changes

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