Tariffs

Table name: tariffs

🛠️ Partner API Alignment Migration

✅ This table is new as of December 2025 and will not be impacted

Contains tariff pricing and configuration data enriched with operator information. This model combines tariff details with operator metadata to provide a comprehensive view of pricing structures and their associated operators. Includes filtering capabilities for active tariffs and operator matching criteria.

SQL: tariffs

Schema

Column NameData TypeDescription
Primary ID
idINTEGERPrimary key
Other IDs
country_idINTEGERReferences the country where this tariff applies
country_area_idINTEGERReferences the specific geographical area within the country for this tariff
currency_idINTEGERReferences the currency used for this tariff's pricing
team_idINTEGERReferences the team responsible for managing this tariff
operator_idINTEGERReferences the operator that owns or manages this tariff
external_idVARCHARExternal system identifier used for integrations and API references
Timestamps
created_atTIMESTAMP_NTZTimestamp when the tariff record was initially created
updated_atTIMESTAMP_NTZTimestamp when the tariff record was last modified
deleted_atTIMESTAMP_NTZTimestamp when the tariff was soft deleted, null if still active
operator_deleted_atTIMESTAMP_NTZTimestamp when the associated operator was soft deleted, null if operator is still active
Filters
is_activeBOOLEANIndicates whether the tariff is currently available for new customers
Attributes
nameVARCHARHuman-readable name or title of the tariff plan
descriptionVARCHARDetailed description of the tariff plan including terms and conditions
timezoneVARCHARTimezone identifier used for time-based pricing calculations
customer_typeVARCHARCategory of customers this tariff is designed for (e.g., residential, commercial, fleet)
prices_with_vatBOOLEANIndicates whether the tariff prices include VAT (true) or exclude VAT (false)
typeVARCHARClassification or category of the tariff structure
areaVARCHARGeographical area or region where this tariff is applicable
operator_is_main_operator_matchBOOLEANIndicates whether the associated operator matches the main operator criteria
operator_is_parent_operator_matchBOOLEANIndicates whether the associated operator matches the parent operator criteria

Data inclusion criteria

This table works with operators table, requiring that operator_id is among the partner's operators.id records.

Data flow

Upstream tablesDownstream tables
operators---

Alignment

Partner API