PATCH api/site/{id}/siteselltariff

This method updates selected site level sell tariffs for the specified site

Note that

    Note that
  • Site must exist
  • Tariffs must be sell tariffs
  • Tariffs must be of their respective category (mobile, SC, non-mobile)
  • Consumer customer must have consumer tariffs
  • Business customer can have consumer tariffs
  • Setting a tariff at site level will overwrite any package-level tariffs, but not CLI-level tariffs
Error Messages
  • 404/NotFound: Site with id = X not found - Specified ID not assigned to a site
  • 404/NotFound: ValidationError
  • 404/NotFound: No billing information found for site with id = X - No Billing Information found on this site. This happens when data is deleted from the database

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id The unique identifier for the Site being queried. integer

Required

Body Parameters

SiteSellTariffModify
NameDescriptionTypeAdditional information
LCRTariff The Voice Tariff ID integer

None.

MobileTariff The Mobile Tariff ID integer

None.

DataTariff The Data Tariff ID integer

None.

SCTariff The Service Charge Tariff ID integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LCRTariff": 1,
  "MobileTariff": 1,
  "DataTariff": 1,
  "SCTariff": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.