> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Channel rates

> How to record what one send costs per channel, provider and country from a date, how a send is priced with it and how it feeds the cost on the dashboard.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** |
| Route | `/{locale}/notification/rates` |
| Menu | Notifications › Settings › **Channel rates** |
| Role | Notification Admin (and Administrator) |
| Permission | `notification-rate:find-all` to read, `notification-rate:update` to add |
| Feature flag | None |
| Last verified | 2026-11-11 against `develop` (`a1aa8ec02`) |

## What it is for

Each provider charges for what it sends: an SMS per segment, a WhatsApp per message, an email per message. A rate
records that price per channel, provider and country from a date. Horizon prices every send with the rate in force
when the provider accepts it, and the dashboard adds those costs up. When a provider changes its price, you add a new
rate from the date it applies; the old one is kept.

## How to get there

* Sidebar: **Notifications › Settings › Channel rates**.

## What you see

![Channel rates list with five rows: SMS onesignal CL Per segment \$0.045 valid from 11/01/2026; WhatsApp meta \* Per message \$0.0368 from 10/01/2026; SMS onesignal CL Per segment \$0.052 from 07/01/2026; Email resend \* Per message \$0.0009 and Push onesignal \* Per message \$0.00 from 07/01/2026. An Add rate button at the top.](https://mintcdn.com/bbrands/ou9Zc6jsQhR5Nclq/images/enterprise-notifications-screens/rates/list.en.desktop.webp?fit=max\&auto=format\&n=ou9Zc6jsQhR5Nclq\&q=85\&s=1590baf6cff043659cea0f2191a36250)

The rate list: one row per price, newest start date first.

| # | Element | What it does |
| - | - | - |
| 1 | Search | "Search by channel, provider or country" |
| 2 | **Add filter** | **Channel**, **Provider** and **Country** (two-letter code) |
| 3 | **Channel** / **Provider** | What is sent and who sends it |
| 4 | **Country** | The two-letter code (`CL`), or `*` for every country |
| 5 | **Unit** | **Per message** or **Per segment** (SMS split into parts) |
| 6 | **Amount** | The price of one unit, in its currency |
| 7 | **Valid from** | The date and time from which it prices sends |
| 8 | **Add rate** | Opens the form for a new price |

In the example, the SMS price changed on 11/01/2026: sends until 10/31 were priced at 0.052 and from 11/01 at
0.045. Both rows stay.

## Step by step

### Add a new price

**1. Open the form**

Press **Add rate**. The "New channel rate" dialog opens.

**2. Channel and provider**

Pick the **Channel** and the **Provider** (**Horizon**, **Resend**, **OneSignal** or **Meta**).

**3. Country and unit**

For **SMS**, type in **Country (ISO or \*)** the two-letter code (`CL`) or `*` for every country. Other channels
have no country field: the form notes that only SMS is priced by country and saves the rate for every country
(`*`). Pick the **Unit**: **Per segment** for SMS charged by part, **Per message** for the rest.

**4. Amount, currency and date**

Type the **Amount** (0 or more, with a decimal point), the **Currency** as three letters (`USD`) and **Valid
from**, the date and time the new price applies.

**5. Add**

Press **Add rate**. You see **Rate added**: "Sends from its start date are priced with it."

![New channel rate dialog: Channel SMS, Provider OneSignal, Country (ISO or \*) CL, Unit Per segment, Amount 0.041, Currency USD, Valid from 12/01/2026 12:00 AM, the hint Rates are never edited: a new price is a new row from its start date, and Cancel and Add rate buttons.](https://mintcdn.com/bbrands/epssQQoY49ybY1H0/images/enterprise-notifications-screens/rates/add.en.desktop.webp?fit=max\&auto=format\&n=epssQQoY49ybY1H0\&q=85\&s=0ea8f024952d6709c5cbc971e02903b1)

A new SMS price for Chile from December 1.

### Correct a wrong price

Rates are not edited or deleted. If you typed a wrong price, add the right one with a **Valid from** just after the
wrong one: the newest row in force wins. Sends already priced keep their cost.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Rates are only added: a new price is a new row from its start date. There is no edit or delete |
| R-02 | A send is priced when the provider accepts it, with the rate of the same channel and provider whose **Valid from** is the latest one not after that moment |
| R-03 | A country rate wins over the every-country (`*`) rate. Only SMS rates take a country (Horizon reads it from the phone prefix); every other channel has a single `*` rate, and the API rejects a country on it (422) |
| R-04 | **Per segment** multiplies by the SMS segments: up to 160 characters is one segment, or 70 when the text has a character outside the basic SMS alphabet (such as á, í, ó, ú or an emoji); longer messages count 153 (or 67) characters per segment |
| R-05 | A send without a matching rate has no cost; the dashboard counts it as 0 |
| R-06 | A new rate does not reprice past sends, even with a past **Valid from**: each send keeps the cost it got when it was sent |
| R-07 | Two rates with the same channel, provider, country and **Valid from** are rejected |
| R-08 | The amount is 0 to 1,000,000; the country two letters or `*` (only `*` outside SMS); the currency three letters |
| R-09 | The dashboard cost uses one currency: the one with the most priced sends in the period (USD when tied or empty). The cost per domain keeps each currency apart |

## States and messages

| State | What you see | Why | What to do |
| - | - | - | - |
| Added | **Rate added**: "Sends from its start date are priced with it." | It was saved | Check the dashboard cost after the start date |
| Empty | **No rates** · "No rate matches the filters." | No rate matches, or none was recorded | Clear the filters or add the rates |
| No button | **Add rate** does not show | Your role lacks `notification-rate:update` | Ask a Notification Admin |
| Cost 0 on the dashboard | A channel with sends and no cost | No rate for that channel and provider | Add its rate; past sends stay without cost |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "Write an amount of 0 or more." | Empty or negative amount | — (on-screen validation) | Fix the amount |
| "Use the two-letter country code (CL) or \* for all." | Invalid country | — | Type `CL` or `*` |
| "Use the three-letter currency code (USD)." | Invalid currency | — | Type the code |
| "Pick a provider." | No provider | — | Pick one |
| "Pick the date and time it applies from." | No **Valid from** | — | Pick the date |
| **The rate could not be added** · "A record with that data already exists…" | A rate with the same channel, provider, country and start already exists | 409 | Change the **Valid from** |
| **The rate could not be added** · "Some data is not valid…" | The server rejected a value, such as a country on a channel other than SMS | 422 | Check the fields |
| **The rate could not be added** · "You do not have permission for this action…" | Missing `notification-rate:update` | 403 | Ask for the Notification Admin role |

## Why it works this way

Keeping every price with its start date means the cost of last month never changes when the provider raises its
price this month: each send is priced once, with the rate in force when it went out. That is also why a rate is never
edited: changing an old row would make the history of costs disagree with what was paid.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `frontend/horizon-enterprise/app/components/screens/notification/rates/notification-rates-screen.tsx` (form and validation `rateInputErrors`) |
| API | `GET`/`POST /api/v3/notification/rate`; the form's `*` travels as `country: null` |
| Service | `backend/horizon-api/lib/notification/rate/notification-rate.service.ts` (validation, lookup) and `notification-pricing.ts` (country from the phone, segments, rounding to 6 decimals) |
| Dashboard | `backend/horizon-api/lib/notification/metrics/notification-metric.service.ts` (reporting currency, cost per domain and per delivered) |
| Texts | `messages/{es,en}.json` › `modules.notification.rates` |

## FAQ and support cases

> [accordion] The dashboard shows no cost for push
>
> Push and in-app usually cost nothing. If the provider charges them, add the rate; only sends after its start are
> priced.

> [accordion] I added the new price late; are last week's sends wrong?
>
> They keep the old price. A new rate with a past **Valid from** prices only sends that go out after you add it.

> [accordion] Why is the dashboard cost in USD if a rate is in CLP?
>
> The headline cost uses the currency with the most priced sends. The cost per domain shows each currency apart.

> [accordion] Can I set a price for email in Chile only?
>
> No. Only SMS is priced by country: email has one rate for every country, and the form shows no country for it.

## Related and history

* [Navigation map](https://docs.bbrands.io/enterprise/notifications/getting-started/navigation-map.md)
* [Glossary](https://docs.bbrands.io/enterprise/notifications/getting-started/glossary.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.