Tariffs

Create Recurring tariff

Creates new Recurring tariff.

post/admin/tariffs/recurring

Request

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

Request body

titlestring required

Unique title of tariff

service_namestring

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

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

custom_period0 | 1

Use for check if use custom period

available_for_servicesboolean

Available to assign in services

available_for_locationsnumber[]

Array of locations (ids)

customer_categoriesstring[]

Customer categories

customer_labelsnumber[]

Array of customer labels (ids)

tariff_labelsnumber[]

Array of tariff labels (ids)

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_name": "aplha",
  "price": 100,
  "with_vat": true,
  "vat_percent": 19,
  "billing_days_count": 1,
  "custom_period": 1,
  "available_for_services": true
}

Response

idnumber required

Recurring tariff ID

Example response

{
  "id": 1
}

Changes

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