Billing
Credit, minutes and limits
Talk time is counted by the second and spent only while an agent is actually talking. Everything below is in integer minor units with the currency beside it — never a float, never a bare cents number.
Paths, field names, enum values, headers and error codes in these samples are the real ones, checked against the API's own specification when this page is built. The ids, amounts and names in them are illustrative. `$WETALK_API_KEY` and `$AGENT` are shell variables you set yourself.
How talk time is counted
A conversation's billed seconds run from the moment the agent answers to the moment it ends. Ringing, queueing and holding are free — they are either before the answer or excluded outright. Tests are free — a voice test call and a text test chat alike — and each is marked as a test in the analytics. Until an organization has paid for the first time, its tests together are limited to 60 minutes a day, renewing at midnight Greek time.
Pricing happens once a day, per agent, per day, per kind of connection, and separately for tests. That is deliberate: pricing every conversation on its own would accumulate hundreds of separate roundings into a balance that does not reconcile. A two-minute twenty-two-second conversation contributes exactly 142 seconds to the day it belongs to.
- talk_rate_minor_per_minute is in euro cents a minute — for example 50 is EUR 0.50 a minute, EUR 30 an hour (an illustrative figure).
- Every amount is amount_minor plus currency. The currency is EUR.
- Rounding is a column in the price book, not a constant in the code.
curl -G https://api.wetalk.io/v1/billing/usage \
-H "Authorization: Bearer $WETALK_API_KEY"
--data-urlencode "from=2026-09-01" \
--data-urlencode "to=2026-09-30" Two balances, and only one of them stops a call
`balance_minor` is what has been charged and settled. `available_minor` is that figure minus today's unbilled seconds and minus what conversations still running have reserved. The second one is what the admission controller checks, so it is the one that decides whether the next caller is answered.
A trial grant is spent before credit is touched, which is why a trial account's balance does not move until the free seconds run out.
- state is one of trial, in_credit, exhausted or hard_stopped.
- exhausted and hard_stopped are different: one ran out, the other was switched off.
- trial_second_remaining counts the free seconds left on the grant.
- Each talk rate names its source: account (your organization's own rate), offer (your plan's rate) or standard, in that order of precedence.
curl https://api.wetalk.io/v1/billing/balance \
-H "Authorization: Bearer $WETALK_API_KEY" {
"data": {
"balance_minor": 15900,
"unbilled_today_minor": 450,
"reserved_minor": 200,
"available_minor": 15250,
"currency": "EUR",
"trial_second_remaining": 0,
"talk_rates": [
{
"talk_rate_kind": "carrier_leg_inbound",
"talk_rate_minor_per_minute": 50,
"talk_rate_minor_per_hour": 3000,
"currency": "EUR",
"source": "standard"
},
{
"talk_rate_kind": "text",
"talk_rate_minor_per_minute": 50,
"talk_rate_minor_per_hour": 3000,
"currency": "EUR",
"source": "offer"
}
],
"hard_stop_enabled": true,
"state": "in_credit",
"computed_at": "2026-09-14T19:22:31Z"
}
} Budgets, hard stops and auto-reload
A budget is a monthly amount, an alert threshold as a percentage, and a switch that decides whether hitting it stops the agents or only tells you. A hard stop pauses answering rather than overspending, and lifts the moment you raise the budget.
Auto-reload tops up by a fixed amount when the available figure falls below your threshold, with a monthly cap: we email you a link to pay the top-up, and nothing is charged until you pay. The cap must be at least one top-up: a cap smaller than the top-up is a policy that can never charge, which would fail silently and is refused instead.
curl https://api.wetalk.io/v1/billing/budget \
-X PUT \
-H "Authorization: Bearer $WETALK_API_KEY"
-H "Content-Type: application/json" \
-d '{
"month_budget_minor": 50000,
"alert_threshold_percent": 80,
"hard_stop_enabled": true
}' curl https://api.wetalk.io/v1/billing/auto-reload \
-X PUT \
-H "Authorization: Bearer $WETALK_API_KEY"
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"threshold_minor": 2000,
"top_up_minor": 20000,
"monthly_cap_minor": 100000,
"payment_method_id": "0199f1c2-6b4a-7f9c-9add-c3a45fc618cb"
}' When money says no
Billing refusals are ordinary errors with their own codes, and they are worth handling separately because they are the ones a retry cannot fix. `payment_outcome_ambiguous` in particular means *go and look up what happened* — never *try again*: the reference we send the processor gives duplicate rejection, not idempotency, so a blind retry is how somebody gets charged twice.
- credit_exhausted, trial_exhausted — nothing left to spend.
- hard_stop_reached, budget_exceeded — a limit you set.
- payment_declined, payment_requires_action, payment_requires_reauth — the card.
- payment_outcome_ambiguous — look it up; do not retry.
curl -G https://api.wetalk.io/v1/billing/ledger \
-H "Authorization: Bearer $WETALK_API_KEY"
--data-urlencode "limit=100" How many at once
Your organization has a limit on simultaneous conversations; each agent can have its own line limit up to it, changed at any time without a new version. A limit above the organization's is refused with `422 channel_unit_limit_above_entitlement`, and `null` goes back to the live version's own ceiling. A new limit stops new conversations from starting; it never ends one.
Callers beyond the limit wait in line for up to the minutes you choose, or the agent takes a message, and inbound callers are never displaced by outbound dialling.
The organization's limit grows with its plan. Ask for more from inside the console; requests are usually granted the same day.
curl https://api.wetalk.io/v1/agents/$AGENT/concurrency \
-H "Authorization: Bearer $WETALK_API_KEY" curl https://api.wetalk.io/v1/agents/$AGENT/concurrency \
-X PUT \
-H "Authorization: Bearer $WETALK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "channel_unit_limit": 4 }' Talk rates by kind, and extra time
An organization pays one rate per kind of connection — calls to a wetalk number, calls from one, calls on or out over its own SIP trunk, website voice and web chat. A conversation keeps the rate in force when it started. `GET /v1/talk-rates` answers the rates in force, the changes already scheduled and the highest rate.
Where your plan includes minutes, extra time decides what happens when they are used up: off, which is how every organization starts, new conversations are refused until the next allowance; on, they continue as paid time at your rates. Under pay-as-you-go every minute is already paid time. The switch is on Billing in the console, for the organization's Owner, Admin or Finance; it takes no API key.
curl https://api.wetalk.io/v1/talk-rates \
-H "Authorization: Bearer $WETALK_API_KEY" Invoices, receipts and credit notes
Once issued, an organization's payment receipts, invoices, consumption statements and credit notes are listed under Finance → Documents in the console, newest first, with the month in progress, and each has a PDF to download. Prices are exclusive of VAT; the VAT follows the payer — Greek VAT for a payer in Greece, reverse charge for an EU business with a valid VAT number. The documents are for signed-in people only; an API key is refused.
If wetalk has agreed postpaid billing with you, a billing account runs on an approved credit limit and is invoiced monthly for what it used, due 14 days after the month ends. Finance → Postpaid shows what it owes and what is still available, and an unpaid invoice can be paid by card.