> This page is for version Preview (default).
> For other versions, use one of these documentation indexes:
> - Preview (default): https://docs.preview.paid.ai/preview/llms.txt
> - Current: https://docs.preview.paid.ai/current/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.preview.paid.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.preview.paid.ai/_mcp/server.

# Money and credits

> Know what every amount in Paid is in, when to sell credits instead of a prepaid commit, and how amounts are rounded onto an invoice.

Every amount in Paid is in exactly one **currency**, such as `usd`, or one **credit currency**, such as `adatum_credits`. A currency is money. A credit currency is something you define, usually credits, with a `conversion` that says what one unit costs in money. Usage priced in a credit currency spends a customer's prepaid [credit balance](/credits/how-credits-work) instead of being invoiced, and only usage past the balance becomes money on an invoice.

Understand money and credits to:

* **Read every amount correctly**, in the API and on invoices.
* **Choose how a customer prepays or commits to spend**: credits, a prepaid commit or an invoiced minimum.
* **Predict the cent** an invoice line comes to.

## Currencies and credit currencies

|                  | Currency                                       | Credit currency                                                |
| ---------------- | ---------------------------------------------- | -------------------------------------------------------------- |
| Is               | Money, by ISO code, such as `usd`              | A unit you define, such as `adatum_credits`                    |
| Priced in it     | Every kind of price, rate card, commit and fee | Usage prices and rate cards only                               |
| What usage does  | Adds a charge to the next invoice              | Spends the customer's credit balance                           |
| Past the balance |                                                | Overage, billed in money at the credit currency's `conversion` |

A meter's `unit`, such as `token` or `page`, is neither. It's what's counted, and a price turns it into an amount in a currency or a credit currency.

An order is in one currency, and every price on it must be offered in that currency. Paid never converts a price with an exchange rate: to sell in several currencies, give the price an amount in each with `currencyOptions`. The one exception is [cost-plus pricing](/catalog/prices#cost-plus-pricing), which converts a cost line in another currency at the daily rate for the event's timestamp.

## Amounts in the API

| Amount                                                                      | Format                                                           | Example                                     |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------- |
| A price or rate in a currency                                               | A decimal string in minor units, up to 15 decimal places         | `"50"` in `usd` is 50¢; `"0.375"` is 0.375¢ |
| A price or rate in a credit currency                                        | A decimal string in that unit, up to 15 decimal places           | `"0.25"` is a quarter of a credit           |
| A credit balance or grant                                                   | A decimal string in the credit currency, up to 15 decimal places | `"20000"` credits                           |
| A commit, or a `Money` amount such as an amendment preview's `moneyEffects` | An integer in minor units                                        | `12000000` is \$120,000.00                  |

Amounts are strings or integers, never JSON numbers with a fractional part, because binary floating point can't represent most decimal amounts exactly.

## Prepaying and committing

Three ways to agree spend in advance:

|                    | [Credits](/credits/how-credits-work)                                                                       | [Prepaid commit](/orders-and-billing/commits#prepaid-commits)        | [Invoiced minimum](/orders-and-billing/commits#invoiced-minimums) |
| ------------------ | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Your customer pays | For credits upfront, from a price that grants them                                                         | `amount` upfront, invoiced when the commit starts                    | For usage as normal                                               |
| Held in            | A credit currency                                                                                          | Money, on one order                                                  | Money, on one order                                               |
| Usage that uses it | Usage priced in the credit currency, across all the customer's orders unless a grant is scoped             | Usage priced in money on the order, within the commit's `scope`      | Spend on the order, within the commit's `scope`                   |
| When it runs out   | Overage at the credit currency's `conversion`, or stop at zero with a [credit hold](/credits/credit-holds) | Further usage at the normal rate, or blocked with `overage: "block"` |                                                                   |
| If it isn't used   | Credits expire or roll over, as the grant says                                                             | Archiving the commit forfeits what's left                            | A true-up line for the shortfall                                  |
| Suits              | Self-serve products, and rates per kind of work from one balance                                           | Enterprise deals paid upfront in money                               | Enterprise deals billed as used, with a floor                     |

## Rounding

Paid keeps every amount exact while it adds up usage, and rounds once, half-up, to the currency's minor unit on each invoice line. Rounding never compounds across events or tiers.

Prorated credits are rounded down instead, so a customer is never granted more than they paid for: the extra credits from a [quantity raised mid-interval](/credits/credit-grants#change-the-quantity-mid-interval), and a seat's share when it's assigned mid-interval.

## How it bills

At Trey Research' \$3.75 per million tokens, written as `unitAmount: "375"` with `per: "1000000"`, Northwind Traders uses 1,234,567 tokens:

| Step                  | Value                                     |
| --------------------- | ----------------------------------------- |
| Exact charge          | 1,234,567 × 375 ÷ 1,000,000 = 462.962625¢ |
| Rounded half-up, once | 463¢                                      |
| Invoice line          | **\$4.63**                                |

When the same usage is priced in credits and runs past the balance, only the overage reaches the invoice. Brightrail has 600 Adatum credits left and uses 1,200 in April, at a `conversion` of 75¢ a credit:

| Step                   | Value                              |
| ---------------------- | ---------------------------------- |
| Spent from the balance | 600 credits, leaving 0             |
| Overage                | 1,200 − 600 = 600 credits          |
| Overage line           | 600 × 75¢ = 45,000¢ = **\$450.00** |

## Related

* [How credits work](/credits/how-credits-work)
* [Commits](/orders-and-billing/commits)
* [Prices](/catalog/prices#amounts-and-currencies)
* [Billing periods and invoices](/core-concepts/billing-periods-and-invoices)
* [Credit currencies API reference](../api-reference/catalog/credit-currencies/create)