Listar modelos de tarifa
RegistosGET /tariff-templates
The tariffs of the seed dataset for the utility's country, at the dataset's latest prices, as starting points, so a tariff never starts from a blank form and no tariff values live in clients. available is false with reason no_template_for_country or country_unset when there is none. Requires tariffs:read.
Devolve
200 The templates
Mostrar atributos
country_codecurrencyavailablereasonum de
no_template_for_country,country_unsettemplatesMostrar atributos filhos
idcodenamecategoryum de
residential,commercial,industrial,institutional,governmentcurrencyfixed_fee_centsmin_consumption_m3sanitation_surcharge_percenttax_percenttiersMostrar atributos filhos
min_m3max_m30 means no upper bound
rate_per_m3_cents
curl -X GET "$BUSINESS_API/tariff-templates" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/tariff-templates", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/tariff-templates",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/tariff-templates", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
{
"country_code": "MZ",
"currency": "MZN",
"available": true,
"reason": "no_template_for_country",
"templates": [
{
"id": "mz.dom",
"code": "COD-2026-000142",
"name": "Ana Matsinhe",
"category": "residential",
"currency": "MZN",
"fixed_fee_cents": 125000,
"min_consumption_m3": 13.42,
"sanitation_surcharge_percent": 1,
"tax_percent": 1,
"tiers": [
{
"min_m3": 1,
"max_m3": 1,
"rate_per_m3_cents": 1
}
]
}
]
}