# Credits & billing

- Page: https://bytesms.com/docs/credits (markdown: https://bytesms.com/docs/credits.md)
- API base URL: https://api.bytesms.com/api (public resources under /api/v1)
- Auth: `Authorization: Bearer tp_live_…` — an API key from Dashboard → API Keys; keep it server-side (e.g. `BYTESMS_API_KEY`)
- All docs in one file: https://bytesms.com/llms-full.txt · OpenAPI 3.1: https://bytesms.com/openapi.json

Bytesms plans, monthly email quotas and included credit, per-recipient overage and WhatsApp paid from one prepaid THB wallet, top-ups by card or PromptPay, auto-recharge, credit expiry and receipts.

## How billing works

- Every plan includes a **monthly email quota** (counted in recipients) and, on paid plans, an **included credit** amount every month.
- Each workspace has one **prepaid credit wallet in THB**. It pays for email sent beyond the monthly quota and for [WhatsApp](https://bytesms.com/docs/whatsapp) messages.
- You add to the wallet with a **top-up** (card or PromptPay) or let **auto-recharge** do it from a saved card.
- Every payment gets a receipt automatically, in **Settings → Documents**.

## Quota, included credit and overage per plan

| Plan | Monthly email quota | Included credit / month | Over-quota email, per recipient | Credit lifetime |
| --- | --- | --- | --- | --- |
| Free | 3,000 (and 100 per day) | — | No overage: sending stops at the quota | 1 month |
| Starter | 10,000 | ฿60 | ฿0.031 | 3 months |
| Pro | 50,000 or 100,000 | ฿300 | ฿0.025 | 6 months |
| Max | 100,000 – 2,500,000 | ฿1,800 | ฿0.020 | 12 months |
| Enterprise | Custom | ฿1,800 | ฿0.020 | 24 months |

Plan prices are on the [pricing page](https://bytesms.com/pricing). The quota window is the UTC calendar month on Free and your billing period on a paid plan; see [Rate limits & quotas](https://bytesms.com/docs/rate-limits#quotas) for what counts.

## Email over the quota

On a paid plan, sending doesn't stop at the quota. Each recipient over it (`to` + `cc` + `bcc`) is debited from the wallet at your plan's per-recipient price when the email is accepted — no rounding to buckets. For example, on Pro an email to 4 recipients after the quota is used up costs 4 × ฿0.025 = ฿0.10. An email that later ends `failed` or `canceled` gets its debit back.

If the wallet can't cover a request (and auto-recharge is off or didn't succeed), nothing is sent and the API returns `402 insufficient_credits`. A batch is all-or-nothing. Over SMTP the same condition is a temporary `452 4.3.1` reply, so your mail server retries.

**402 Payment Required**

```json
{
  "statusCode": 402,
  "message": "Not enough prepaid credit. Top up (or turn on auto-recharge) in the dashboard under Settings → Billing.",
  "name": "insufficient_credits",
  "neededThb": 0.155,
  "availableThb": 0.04
}
```

Broadcast (marketing) emails never use the transactional quota or the wallet — Marketing plans are priced by contacts.

## WhatsApp

WhatsApp messages are paid from the same wallet. The price depends on the plan, the template category and the destination country; see [WhatsApp pricing](https://bytesms.com/docs/whatsapp#pricing). Every WhatsApp response includes `priceThb`, and a failed message is refunded.

## Which credit is spent first

- **Included credit**is spent first. It is granted every UTC calendar month, replaced (not added to) at the start of the next month, and never rolls over. Upgrading mid-month grants the difference to the new plan's amount.
- **Top-up credit** is spent next, oldest-expiring first (FIFO by expiry).

## Credit lifetime

Each top-up is a separate lot that expires a fixed number of months after it was bought, depending on the plan the workspace was on: 1 month on Free, 3 on Starter, 6 on Pro, 12 on Max and 24 on Enterprise. Upgrading to a plan with a longer lifetime extends your remaining lots to now + the new lifetime; it never shortens them. Owners get an email 30 and 7 days before credit expires. Expired credit can't be used.

> **Warning: Top-up credit is non-refundable**
>
> Credit you buy can't be refunded or exchanged for cash, and can't be used after it expires.

## Top-ups

- Workspace owners and admins top up in **Settings → Billing** (or **Dashboard → WhatsApp**).
- Pay by **card** or **PromptPay**, in THB. Amounts from ฿500 to ฿200,000 per top-up.
- The credit is added as soon as the payment succeeds. Any tax is shown at checkout before you pay; the credit you get is the amount before tax.

### Auto-recharge

Save a card in **Settings → Billing → Auto-recharge** and choose:

- a **threshold**— when the balance drops below it (or a send can't be paid at all), the card is charged;
- a **recharge amount** (at least ฿500);
- a **monthly cap** on the total auto-recharged in a UTC month (at least one recharge amount).

Each trigger charges at most once. After 3 declined charges in a row, auto-recharge turns itself off and the owner is emailed. Auto-recharged credit follows the same lifetime and non-refundable rules as a top-up.

### Low-balance alert

Owners get an email when the balance falls below the alert threshold (฿100 unless you set your own in Settings → Billing).

## Receipts

Every payment — subscription invoices, top-ups and auto-recharges — gets a receipt automatically, with its own running number and your billing profile details. Find and download them (PDF) in **Settings → Documents**. Keep your billing profile (company name, address, tax ID) up to date before paying: documents are issued with the details at the time of payment.
