# SMS billing

SMS billing explains how inbound and outbound messages are charged. Inbound
SMS, outbound person-to-person (P2P) SMS, and outbound
application-to-person (A2P) SMS each have their own rates, and every message
is charged per fragment. A2P messaging also needs a Sender ID Verification,
which has its own setup and monthly fees.

All charges are in USD and are deducted from your prepaid account balance.
For current rates, see [Download
pricelists](../phone-numbers/buy-numbers/download-pricelists.html#services-coverage-pricing-access-pricelists).

## Charge summary

| Charge | Type | When it is charged | Price depends on |
| --- | --- | --- | --- |
| Inbound SMS rate | Usage | Per fragment of each SMS that DIDWW receives for your DID number | The DID group and the sender's number prefix and length |
| Outbound P2P SMS rate | Usage | Per fragment sent to the carrier from a DID number | The destination |
| Outbound A2P SMS rate | Usage | Per fragment sent to the carrier from a verified Sender ID | The destination |
| Sender ID Verification setup fee (NRC) | One-time | When the verification is approved and becomes **Active** | The Sender ID type and the destination country |
| Sender ID Verification monthly fee (MRC) | Recurring | When the verification becomes **Active**, then on each renewal date | The Sender ID type and the destination country |
| VAT | Tax | With each charge, where applicable | The VAT status of your account. See [VAT](../billing/billing-and-prices/vat-tax-id.html#billing-vat). |

## How SMS are charged

```
        flowchart LR

   A["Inbound SMS<br/>reaches DIDWW"] --> B{"SMS trunk<br/>assigned?"}

   B -.->|"No"| C["Not charged"]

   B -->|"Yes"| D["Inbound rate ×<br/>fragments charged"]

   E["Outbound SMS<br/>submitted"] --> F{"Fragments sent<br/>to the carrier?"}

   F -.->|"No"| G["Not charged"]

   F -->|"Yes"| H["P2P or A2P rate ×<br/>fragments sent charged"]

   classDef root fill:#e0f2fe,color:#1f2d3d,stroke:#38bdf8,stroke-width:2px;
   classDef charge fill:#fef3c7,color:#1f2d3d,stroke:#facc15,stroke-width:2px;
   classDef decision fill:#fee2e2,color:#1f2d3d,stroke:#fb923c,stroke-width:2px;

   class A,C,E,G root;
   class D,H charge;
   class B,F decision;
```

Inbound SMS are charged once they reach DIDWW, even if DIDWW cannot deliver
them to your SMS trunk. Outbound SMS are charged only for the fragments sent
to the carrier.

Each message is charged at one of three rates:

- **Inbound SMS:** Messages that DIDWW receives for a DID number with an
  assigned SMS trunk or trunk group.
- **Outbound P2P SMS:** Messages sent from a DID number that supports
  **Outbound P2P SMS**.
- **Outbound A2P SMS:** Messages sent from a Sender ID registered through an
  active [Sender ID Verification](sender-id-verifications/index.html).

The service type of each outbound message is shown in the [Outbound SMS
logs](../logs-analytics/sms-logs/outbound-logs.html#outbound-logs). For how P2P and A2P messaging differ, see
[How SMS service works](how-sms-service-works.html).

## Fragment billing

SMS are charged per fragment, not per message. A message that does not fit
in a single SMS is split into several fragments, and each fragment is charged
at the full rate. The encoding of the message sets how many characters fit in
each fragment:

| Encoding | Single SMS | Each fragment of a long SMS |
| --- | --- | --- |
| GSM-7 | 160 characters | 153 characters |
| UCS-2 (Unicode) | 70 characters | 67 characters |

For the encoding rules, extension characters, and how each trunk type
delivers long messages, see the [SMS encoding
reference](sms-trunks/technical-data/sms-encoding-reference.html#sms-encoding-reference).

### Calculation examples

These examples use a sample rate of USD 0.0075 per fragment. Use the rates in
your pricelists for actual calculations.

| Message | Encoding | Fragments | Charge |
| --- | --- | --- | --- |
| 160 GSM-7 basic-alphabet characters | GSM-7 | 1 | USD 0.0075 × 1 = **USD 0.0075** |
| 200 GSM-7 basic-alphabet characters | GSM-7 | 2 (153 + 47) | USD 0.0075 × 2 = **USD 0.015** |
| 100 Cyrillic characters | UCS-2 | 2 (67 + 33) | USD 0.0075 × 2 = **USD 0.015** |

On an HTTP OUT trunk, one character outside the GSM-7 alphabet, such as an
emoji, switches the whole message to UCS-2. A short message with an emoji
can therefore need more fragments than the same message without it.

## When SMS are charged

### Outbound SMS

You are charged only for the fragments that DIDWW sent to the carrier. The
charge is shown when DIDWW finishes processing the message.

| Status | Billing |
| --- | --- |
| `SUCCESS` | Charged for each fragment sent. |
| `ROUTING ERROR` | Not charged. DIDWW could not route the SMS, so no fragment was sent. |
| `FAILED` | Charged only for the fragments sent before the SMS failed. Not charged when no fragment was sent, for example when no balance was available during the SMS's time to live. |
| `Queued` and `In Progress` | Not charged yet. |

An outbound SMS is not sent and not charged when its destination has no rate
in your pricelist. The status callback then reports `code_id` `2`, No
rate found. See [Callback error
codes](outbound-sms-api/outbound-sms-errors-and-status-codes.html#callback-error-codes-http).

### Inbound SMS

Inbound SMS are charged when the message reaches DIDWW, even if DIDWW cannot
deliver it to your SMS trunk. Inbound SMS also require a positive account
balance.

| Situation | Billing |
| --- | --- |
| DIDWW delivers the SMS to your SMS trunk | Charged for each fragment. |
| DIDWW cannot deliver the SMS, for example `TTL expired` | Charged for each fragment, because the SMS reached DIDWW. The status is `FAILED`. |
| DIDWW retries the delivery | Not charged again. Retries are included in the first charge. |
| The DID number has no SMS trunk assigned | Not charged. |

## Sender ID Verification charges

Sending A2P SMS requires an active Sender ID Verification. Its charges depend
on the Sender ID type and the destination country:

- A **setup fee (NRC)**, charged once.
- A **monthly fee (MRC)** for maintaining the verification.

The setup fee and the first monthly fee are charged when the verification is
approved and becomes **Active**. Later monthly fees are charged on the
renewal date shown in the verification details. Before you submit a
verification, the **Summary** step shows the setup fee, the recurring price,
per-message pricing, and the amount due on approval.

These fees are separate from the per-fragment charges for A2P messages. See
[How Sender ID Verification works](sender-id-verifications/how-sender-id-verification-works.html).

## Find SMS rates and pricelists

Each SMS service has its own pricelist in the User Panel:

| Pricelist | Rates |
| --- | --- |
| **Inbound SMS Rates** | Inbound SMS rates for your DID numbers. |
| **Outbound P2P SMS Trunk Rates** | Outbound P2P SMS rates by destination. |
| **Outbound A2P SMS Trunk Rates** | Outbound A2P SMS rates by destination. |

When a rate change is scheduled, a second version of the pricelist shows the
new rates and the date they take effect. See [Download
pricelists](../phone-numbers/buy-numbers/download-pricelists.html#services-coverage-pricing-access-pricelists).

Sender ID Verification fees are shown in the User Panel when you create a
verification.

## Review SMS charges

| Source | What it shows |
| --- | --- |
| [Outbound SMS logs](../logs-analytics/sms-logs/outbound-logs.html#outbound-logs) | Each sent message with its service type, status, **Billed Fragments**, and **Charged (USD)**. |
| [Inbound SMS logs](../logs-analytics/sms-logs/inbound-logs.html#inbound-logs) | Each received message with its **Billed Fragments** and **Charged (USD)**. |
| [Status callbacks](outbound-sms-api/status-callbacks-and-delivery-receipts.html) | `fragments_sent` and `price` for each message sent through the Outbound SMS API. |
| [Invoices](../billing/billing-history/monthly-invoices.html) | Monthly totals. Inbound and outbound P2P SMS are shown under **P2P SMS**. Outbound A2P SMS and Sender ID Verifications are shown under **A2P SMS**. |

## Related resources

- [How SMS service works](how-sms-service-works.html) - Understand inbound and outbound message
  flows and P2P and A2P messaging.
- [SMS encoding reference](sms-trunks/technical-data/sms-encoding-reference.html#sms-encoding-reference) - Look up encoding
  rules, character limits, and how long messages are delivered.
- [How Sender ID Verification works](sender-id-verifications/how-sender-id-verification-works.html) - Learn
  how Sender ID Verification works and what it costs.
- [Download pricelists](../phone-numbers/buy-numbers/download-pricelists.html#services-coverage-pricing-access-pricelists) -
  Download your SMS pricelists.
- [Number billing](../phone-numbers/number-billing.html) - Understand the charges of the DID
  numbers that receive and send SMS.
