Tariffs

Call tariffs control how the platform prices calls, data, and events from usage files. See Call Tariffs for full details on how tariffs work.

Methods

GET

Retrieve Single Tariff

/backend/api/v1/tariffs/ID - fetch tariff with specified ID.

List Tariffs

/backend/api/v1/tariffs/ - list all tariffs.

POST

/backend/api/v1/tariffs/ - create a new tariff. The newly-created tariff will be returned.

PATCH

/backend/api/v1/tariffs/ID - update tariff with specified ID. The modified tariff will be returned.

DELETE

/backend/api/v1/tariffs/ID - delete tariff with specified ID.

Note: A tariff can only be deleted if it is not currently in use.

Actions

Actions are called by sending a POST request to /backend/api/v1/tariffs/ID/actionName.

applyIncrease

Applies a percentage price increase to the tariff in-place. Requires expert level 5 access.

Parameters:

ParameterTypeRequiredDescription
increasePercentnumericYesPercentage increase (e.g. 3.5)
increaseScopestringYescostOnly or allCharges

Example:

curl -X POST \
  https://YOUR-DOMAIN/backend/api/v1/tariffs/123/applyIncrease \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "increasePercent": 3.5,
    "increaseScope": "costOnly"
  }'

Returns the updated tariff.

createIncreaseVersion

Creates a new tariff with prices increased by the specified percentage. The original tariff is not modified.

Parameters:

ParameterTypeRequiredDescription
increasePercentnumericYesPercentage increase (e.g. 3.5)
increaseScopestringYescostOnly or allCharges

Example:

curl -X POST \
  https://YOUR-DOMAIN/backend/api/v1/tariffs/123/createIncreaseVersion \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "increasePercent": 3.5,
    "increaseScope": "costOnly"
  }'

Returns the new tariff. If a version with the same source, percentage, and scope already exists, the existing version is returned.

See Price Increases for full details on scope options and usage guidance.

Fields

FieldNameTypeDescription
nameTariff NameTextThe display name for this tariff
descriptionDescriptionTextAdditional description or notes about this tariff
availabilityTariff AvailabilityPreset ValueControls where and how this tariff can be used
retailRetail TariffPreset ValueDetermines if this is a retail or wholesale tariff
currencyCurrencyPreset ValueThe currency used for rates in this tariff
customerIDCustomerTextThe ID of the customer this tariff is restricted to
customerGroupsCustomer GroupsTextCustomer groups that can access this tariff
forCarriersFor CarriersTextCarriers this tariff applies to
forNumberTypesFor Number TypesTextNumber types this tariff applies to
singleRateRate StructureTextChoose between time-based rates (day/evening/weekend) or a single rate for all times
tariffClassApplies ToPreset ValueWhat class of calls (Inbound, Mobile etc.) this tariff applies to
parentTariffBased UponTextThe ID of the parent tariff this tariff is based upon
baseDiscountPlanDefault Discount PlanPreset Value
baseTypeCharge TypePreset ValueHow rates are calculated and applied in this tariff
locationLookupCarrierUse Dial Strings ForPreset ValueCarrier to use for dial string lookups and location-based routing
baseCostDefault CostNumberStandard rate applied when no specific rate is defined
baseCostConnectionDefault Connection CostNumberConnection charge applied to each call
baseCostMinDefault Minimum CostNumberMinimum charge for any call
baseCostMaxDefault Maximum CostNumberMaximum charge for any single call
baseAccessChargeDefault Access ChargeNumberAdditional access charge applied to calls
baseAccessChargeConnectionDefault Access Charge (Connection)NumberAccess charge connection component
baseRoundingAccessChargeDefault Access Charge RoundingPreset ValueHow access charges are rounded
baseSurchargeMobileOriginationDefault Mobile Origination SurchargeNumberAdditional charge for mobile-originated calls
baseSurchargeMobileOriginationConnectionDefault Mobile Origination Surcharge (Connection)NumberMobile origination surcharge connection component
baseSurchargeRoundingMobileOriginationDefault Mobile Origination Surcharge RoundingPreset ValueHow mobile origination surcharges are rounded
baseSurchargePayphoneOriginationDefault Payphone Origination SurchargeNumberAdditional charge for payphone-originated calls
baseSurchargePayphoneOriginationConnectionDefault Payphone Origination Surcharge (Connection)NumberPayphone origination surcharge connection component
baseSurchargeRoundingPayphoneOriginationDefault Payphone Origination Surcharge RoundingPreset ValueHow payphone origination surcharges are rounded
baseSurchargeCallRecordingDefault Call Recording SurchargeNumberAdditional charge for call recording services
baseSurchargeCallRecordingConnectionDefault Call Recording Surcharge (Connection)NumberCall recording surcharge connection component
baseSurchargeRoundingCallRecordingDefault Call Recording Surcharge RoundingPreset ValueHow call recording surcharges are rounded
baseInitialCostDefault Initial CostTextCost applied during the initial period of a call
baseInitialDurationDefault Initial DurationNumberDuration of the initial charging period
baseCostSecondaryConnectionDefault Connection Cost After Initial DurationNumberConnection cost applied after the initial duration
baseDurationMinDefault Minimum Chargable DurationNumberShortest duration that will be charged for
baseRoundSecondsRound Duration Up To NextNumberRound call duration up to the nearest number of seconds
baseRoundBytesRound Bytes Up To NextNumberRound data usage up to the nearest number of bytes
baseRoundEventsRound Events Up To NextNumberRound event count up to the nearest number
baseRoundPenceRound Cost Up To NextNumberRound call cost up to the nearest number of pence
baseRoundPenceAfterSurchargeRound Cost After Surcharge Up To NextNumberRound final cost after surcharges are applied
fallbackMarkupSuggestedFallback Suggested Retail MarkupNumberSuggested markup for retail pricing when rates are not defined
fallbackMarkupFallback MarkupNumberMarkup applied when specific rates are not available
idTariff IDTextThe unique identifier for this tariff

Still Didn’t Find Your Answer?

For assistance, please contact us below.

Submit a ticket