Voice billing
How eSMS Voice calls are charged - per-minute country pricing billed per started minute, the pre-call hold released after the call, campaign estimates and the daily spend cap.
Prices
Every country's per-minute price is on the Voice pricing page and in the
public feed GET /v1/voice/pricing. You are only charged for answered calls to live countries.
Voice calls are paid from the same USD balance as your SMS. Sandbox calls (esms_test_ keys)
are never charged.
Per-minute pricing per country
Each country has a price per minute. GET /v1/voice/pricing (public, no key needed) lists every
country with an approved price:
{
"data": [
{
"country_code": "UG",
"country": "Uganda",
"currency": "UGX",
"per_minute_local": 350.0,
"per_minute_usd": 0.083251,
"billing_increment_s": 60,
"min_billable_s": 60,
"availability": "on_request"
}
],
"currency_note": "Calls are charged in USD from your balance."
}availability is live when calls to the country connect today and on_request when the price
is set but we open the country for your account on request (email sales@esmsafrica.io). A live
call to an on_request country is refused with 503 destination_unavailable before any hold, so
you are never charged for it. Countries priced in a local currency are charged in USD at our
published rate (per_minute_usd). The price that applies to a call is returned when you create it
(estimate.per_minute_usd) and stored on the call (price.per_minute_usd).
Billed per started minute
- A call is billed on its answered duration, rounded up to the next full minute (60-second increments, 60 seconds minimum once answered). A 34-second call bills 1 minute; a 61-second call bills 2.
- Unanswered calls are not charged - busy, no answer, failed before answer and canceled calls cost nothing.
- The call record shows
duration_seconds,billed_secondsandprice.charge_usd.
The pre-call hold
When a live call is created, eSMS holds the cost of the longest call it could become:
hold = ceil(max_duration_seconds / 60) x per-minute priceSo a call with the default max_duration_seconds of 120 holds 2 minutes. If your balance cannot
cover the hold, the call is refused with 402 insufficient_balance and nothing is dialled.
When the call ends, the hold is settled exactly once:
- the actual charge is taken and the unused part of the hold is released to your balance,
- a call that never connected releases the whole hold,
- a call whose final status cannot be confirmed with the network releases its hold after 10
minutes and is marked
failedwithprovider_unknown.
The hold and the release appear in your transactions. Lower max_duration_seconds to hold less
per call - the flow still has to fit (see Call flows).
In the rare case the network reports a longer call than the hold covered, the difference is charged after the call and can take your balance slightly below zero. This is the only voice case that can; the next top-up covers it first.
Campaigns
POST /v1/voice/campaigns/{id}/validate returns estimate_usd (valid recipients x estimated
call length x per-minute price) and per_minute_usd before you launch. During a campaign each
call holds and settles like a single call. If your balance runs out the campaign pauses with
pause_reason: "insufficient_balance"; top up and resume it.
Daily spend cap
Every account has a daily voice spend cap in USD (holds plus charges since 00:00 UTC). A call
that would pass it is refused with 429 daily_spend_cap_reached; the cap resets at 00:00 UTC.
GET /v1/voice/settings shows limits.daily_spend_cap_usd and today_spend_usd. The default
cap is USD 20 per day; email support@esmsafrica.io to raise it.
Usage
GET /v1/voice/usage?days=30 returns totals, by_day and by_country (calls, answered,
completed, billed minutes, cost in USD).
Voice pricing
eSMS Voice per-minute prices for 42 African countries in USD, billing rules (per started minute, unanswered calls free), live and on-request countries, and the public pricing feed.
Voice errors
Every eSMS Voice API error code with its HTTP status and what to do, plus the status_reason and error_code values a finished call can carry.