---
title: "Billing and credits"
description: "Charge for your product on Polar's own billing: plans, a free plan, prepaid credits, feature gates and quotas, declared as code, sold through hosted checkout and enforced on the server."
canonical_url: "https://nuxt-backend.dev/docs/build/billing"
---
# Billing and credits

> Charge for your product on Polar's own billing: plans, a free plan, prepaid credits, feature gates and quotas, declared as code, sold through hosted checkout and enforced on the server.

Version: nuxt-backend 0.6.x · Tab: Build · Kind: landing · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

- [Try it live in the playground](https://nuxt-backend.dev/playground/pricing)
- [API reference](https://nuxt-backend.dev/docs/reference/api/billing)
- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/convex/integrations/billing.ts)

The billing capability lets your app charge for what it does.

- **Polar does natively:** as the merchant of record, it sells to your customer, collects the tax, and handles refunds and chargebacks. It hosts checkout and the customer portal, grants benefits and credits each cycle, meters usage, and sends the lifecycle emails (checked on 2026-10-25).
- **The package adds:** plans, credit packs, features and quotas in one TypeScript file, pushed to Polar with one command. It keeps a live copy of what each customer holds, the entitlement cache, in the package's `backend` Convex component. Your functions gate features and spend credits against that copy, and every page that reads it updates as soon as Polar reports a change.

Polar's account, tokens and sandbox are on the [Polar](https://nuxt-backend.dev/docs/services/polar) page. Stripe Managed Payments, Dodo Payments and Creem sell through the same API too, with `BILLING_PROVIDER` and the provider's product ids, as an experimental alternative: [Stripe, Dodo and Creem](https://nuxt-backend.dev/docs/services/merchants) says what works on each and what stays on Polar.

Nothing is added to your schema. On Polar the package keeps no ledger of its own: orders, invoices and usage stay with Polar and are read live. On Stripe, Dodo and Creem, which have no credit meters, the `backend` component keeps the orders and a ledger of credit grants ([How credits work there](https://nuxt-backend.dev/docs/services/merchants#how-credits-work-here)). It covers what a client app charges for:

- **Plans** with monthly and yearly prices, in one currency or several, and a free plan every workspace starts on.
- **Credits**: prepaid packs, a monthly allowance per plan, and usage past the allowance.
- **Gates**: features and resource quotas, enforced on the server and mirrored in the UI.
- **Growth**: discounts, promotions, campaign links, gifts, plan passes and referrals.
- **The lifecycle**: a cancel flow with one save offer, a past-due notice, abandoned-checkout and renewal reminders, local prices at checkout, and the EU withdrawal button.

## Start here

1. **Pick a model**: plans, credits, or both ([Choose a pricing model](https://nuxt-backend.dev/docs/build/billing/pricing-models)).
2. **Decide who pays**: the active workspace by default, or each account with `billTo: 'user'` for a product people buy for themselves ([Bill each person](https://nuxt-backend.dev/docs/build/billing/setup#bill-each-person)).
3. **Connect Polar's sandbox**: put a sandbox token in `.env.local` as `BILLING_ACCESS_TOKEN`, then run `npx nuxt-backend env push` ([Polar](https://nuxt-backend.dev/docs/services/polar), [Set up billing](https://nuxt-backend.dev/docs/build/billing/setup)).
4. **Declare and sync**: edit `backend/billing.catalog.ts`, then run `npx nuxt-backend billing sync` ([Define and sync your catalog](https://nuxt-backend.dev/docs/build/billing/catalog)).
5. **Sell**: `/pricing` sells the catalog with no code of yours. Pay with the test card `4242 4242 4242 4242` ([Customize the pricing page](https://nuxt-backend.dev/docs/build/billing/pricing-page)).
6. **Gate and spend**: lock features with `withFeature` and `<Gate feature>`, and charge credits with `spendCredits` ([Gate features by plan](https://nuxt-backend.dev/docs/build/billing/subscriptions/feature-gating), [Spend credits in your functions](https://nuxt-backend.dev/docs/build/billing/credits/spending)).

## How it works

```text
billing.catalog.ts ──billing sync──▶ Polar products, benefits, meters, discounts
                                            │
       useBilling().checkout() ──▶ hosted checkout ──▶ order paid
                                                           │
                                       /billing/events (signed webhook)
                                                           │
                                     entitlement cache in the backend component
                                     (plans, features, quotas, credit balances)
                                         │                          │
                     useFeatures(), <Gate feature>        billing.requireFeature(),
                     useCredits(), <PricingTable>         requireQuota(), spendCredits()
```

1. **Declare.** `defineBillingCatalog` in `backend/billing.catalog.ts` names the meters, plans, packs, features, quotas and promotions. A plan's credits and features become benefits of its products, which Polar grants every billing cycle. A pack's credits are granted once at purchase. See [Define and sync your catalog](https://nuxt-backend.dev/docs/build/billing/catalog).
2. **Sync.** `npx nuxt-backend billing sync` creates what Polar is missing, never deletes, and never rewrites a price a customer holds. It writes the provider ids to `backend/billing.generated.ts`, so no id appears in your code, and provisions the `/billing/events` webhook endpoint with its secret.
3. **Sell.** The server-rendered `/pricing` page lists the plans and packs with live prices. `useBilling().checkout()` opens Polar's checkout for a plan, `useCredits().topUp()` for a pack, and `portal()` the customer portal. The server decides what may be sold, to whom, with which trial and discount. See [Open checkout and the portal](https://nuxt-backend.dev/docs/build/billing/subscriptions/checkout).
4. **Hear back.** Polar posts each order, subscription and benefit change to `/billing/events`. The package verifies the signature, drops a replay, refreshes the paying entity's cache, records the change on the [activity trail](https://nuxt-backend.dev/docs/build/billing/events#on-the-activity-trail), then runs your own handlers. See [React to billing events](https://nuxt-backend.dev/docs/build/billing/events).
5. **Gate and spend.** `useFeatures()` and `<Gate feature>` gate the UI. `billing.requireFeature`, the `withFeature` tier and `billing.requireQuota` enforce the same keys in your functions, and refuse with the plans that would allow the call. Server code spends credits with `spendCredits`, or reserves, runs and settles so a failed run costs nothing. See [Gate features by plan](https://nuxt-backend.dev/docs/build/billing/subscriptions/feature-gating) and [Spend credits in your functions](https://nuxt-backend.dev/docs/build/billing/credits/spending).

## Who pays

By default the active workspace pays. Its members share one plan, one set of features and one credit balance. Its owner and admins are its billing managers: they check out, open the portal, and change or cancel the plan. Every other member reads the plan and spends the credits. Set `billTo: 'user'` and each account pays for itself instead, for a product people buy for themselves.

Each billing entity is one Polar customer, keyed by the entity's id: a team customer named after a workspace, or an individual customer for a user. A workspace is never billed per member, and a plan never counts seats. See [Who pays](https://nuxt-backend.dev/docs/build/billing/setup#who-pays) and [Who may buy for a workspace](https://nuxt-backend.dev/docs/build/billing/setup#who-may-buy-for-a-workspace).

## Who does what

<table>
<thead>
  <tr>
    <th>
      Polar, natively
    </th>
    
    <th>
      The package
    </th>
    
    <th>
      Your app
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Charges cards and collects tax as the merchant of record
    </td>
    
    <td>
      Pushes the catalog and keeps it in line, reporting drift instead of rewriting
    </td>
    
    <td>
      Declares the catalog and runs <code>
        billing sync
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Hosts checkout and the customer portal
    </td>
    
    <td>
      Decides on the server what a checkout may sell, with which trial, discount and return address
    </td>
    
    <td>
      Places the pricing page, buttons and gates
    </td>
  </tr>
  
  <tr>
    <td>
      Grants plan and pack benefits each cycle: features, quotas, credits
    </td>
    
    <td>
      Caches each entity's grants and balances, live, and checks them in one transaction with your writes
    </td>
    
    <td>
      Names the features and quotas its functions enforce
    </td>
  </tr>
  
  <tr>
    <td>
      Keeps orders, invoices, refunds and usage events
    </td>
    
    <td>
      Reads them live for <code>
        useOrders()
      </code>
      
       and <code>
        useUsage()
      </code>
      
      , and records usage when your code spends
    </td>
    
    <td>
      Decides what costs credits, and how many
    </td>
  </tr>
  
  <tr>
    <td>
      Sends receipts, renewal, trial and payment-failure emails
    </td>
    
    <td>
      Sends only what no provider sends: the gift notice
    </td>
    
    <td>
      Words the in-app messages through labels
    </td>
  </tr>
  
  <tr>
    <td>
      Counts discount redemptions and holds customers to a promotion's limits
    </td>
    
    <td>
      Applies the right promotion at checkout and shows its real terms
    </td>
    
    <td>
      Decides who qualifies for a server-only discount
    </td>
  </tr>
</tbody>
</table>

The package never rebuilds what Polar does natively: [Customer emails and notifications](https://nuxt-backend.dev/docs/build/billing/events/customer-emails) says who tells the customer what.

## When Polar or a webhook is late

Polar is the source of truth, and the entitlement cache follows it through signed webhooks. Each failure has a defined result:

- **A webhook is slow.** Gates and balances read the last state Polar reported until the delivery arrives. A customer back from checkout doesn't wait: the return page reads their new plan from Polar once (`syncEntitlements`).
- **A delivery fails.** Polar retries it, and the package drops a delivery it already processed, so a retry never applies twice. Polar disables an endpoint after 10 failed deliveries in a row and emails your organization. The delivery log and [Replay a webhook delivery](https://nuxt-backend.dev/docs/ship/operate/replay) show and resend what was missed.
- **Polar is unreachable.** Checkout, the portal, plan changes and order history refuse as `unavailable`. Gates, quotas and reservations keep working from the cache.
- **A spend can't be recorded.** `settleSpend` releases the reservation and throws, so the run is not charged. Call it again with the same reservation to charge it: Polar drops an event whose `externalId` it already has.
- **The browser can't read the cache.** `useFeatures().has` says no and `<Gate>` hides the content: a gate closes rather than opens.

## From your machine to production

- **Develop on Polar's sandbox.** Create a sandbox organization and token, put the token in `.env.local`, and run `npx nuxt-backend billing sync`. You get the same catalog, Polar's real checkout and the test card `4242 4242 4242 4242`, and `nuxt-backend status` shows the billing capability as `test`. [Develop with real sandboxes](https://nuxt-backend.dev/docs/develop/sandboxes#billing-on-polars-sandbox) walks through it, webhooks to a local deployment included.
- **Preview and staging bill in the sandbox too.** Every `BACKEND_ENVIRONMENT` but `production` uses Polar's sandbox, so a preview or a public demo never charges a card ([Environments and deployments](https://nuxt-backend.dev/docs/start/concepts/environments#sandbox-and-production-providers)).
- **Then production.** Sync with `--env production`, set the `BILLING_*` variables on the production deployment, and run `npx nuxt-backend doctor --prod`. Doctor checks the token, the webhook endpoint and its secret, and the provider settings a catalog relies on, such as trial-abuse prevention. `doctor --fix` applies those settings for you ([Apply the provider settings](https://nuxt-backend.dev/docs/services#recommended-settings)). See [Go live](https://nuxt-backend.dev/docs/build/billing/setup#go-live).

## What you get

What the package ships for this part of the app, generated from the code: each name links to its
reference entry.

- Pages: [`/gifts`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/pricing`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app), [`/r/:code`](https://nuxt-backend.dev/docs/reference/backend/http-routes#in-the-nuxt-app)
- Components: [`<PricingTable>`](https://nuxt-backend.dev/docs/reference/components/billing#pricingtable), [`<BillingCheckoutLink>`](https://nuxt-backend.dev/docs/reference/components/billing#billingcheckoutlink), [`<BillingPortalLink>`](https://nuxt-backend.dev/docs/reference/components/billing#billingportallink), [`<BillingHistory>`](https://nuxt-backend.dev/docs/reference/components/billing#billinghistory), [`<UsageHistory>`](https://nuxt-backend.dev/docs/reference/components/billing#usagehistory), [`<UpgradePrompt>`](https://nuxt-backend.dev/docs/reference/components/billing#upgradeprompt), [`<CancelFlow>`](https://nuxt-backend.dev/docs/reference/components/billing#cancelflow), [`<WithdrawalButton>`](https://nuxt-backend.dev/docs/reference/components/billing#withdrawalbutton), [`<GiftForm>`](https://nuxt-backend.dev/docs/reference/components/billing#giftform), [`<GiftList>`](https://nuxt-backend.dev/docs/reference/components/billing#giftlist), [`<ReferralCard>`](https://nuxt-backend.dev/docs/reference/components/billing#referralcard)
- Composables: [`useBilling`](https://nuxt-backend.dev/docs/reference/api/use-billing), [`useFeatures`](https://nuxt-backend.dev/docs/reference/api/use-features), [`useCredits`](https://nuxt-backend.dev/docs/reference/api/use-credits), [`usePricing`](https://nuxt-backend.dev/docs/reference/api/use-pricing), [`usePlanChange`](https://nuxt-backend.dev/docs/reference/api/use-plan-change), [`useBillingSection`](https://nuxt-backend.dev/docs/reference/api/use-billing-section), [`useCampaign`](https://nuxt-backend.dev/docs/reference/api/use-campaign), [`useOrders`](https://nuxt-backend.dev/docs/reference/api/use-orders), [`useUsage`](https://nuxt-backend.dev/docs/reference/api/use-usage), [`useGifts`](https://nuxt-backend.dev/docs/reference/api/use-gifts), [`useGiftList`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance), [`useGiftForm`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance), [`useWithdrawal`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance), [`useReferrals`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance), [`useReferralInvite`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance), [`formatBillingAmount`](https://nuxt-backend.dev/docs/reference/nuxt/composables#at-a-glance)
- Routes: [`/billing/events`](https://nuxt-backend.dev/docs/reference/backend/http-routes)
- Setup helpers: [`createCommerceProvider`](https://nuxt-backend.dev/docs/reference/api/billing), [`createCommerceWebhookHandler`](https://nuxt-backend.dev/docs/reference/api/billing), [`defineBillingCatalog`](https://nuxt-backend.dev/docs/reference/api/billing), [`setupBilling`](https://nuxt-backend.dev/docs/reference/api/billing), [`setupReferrals`](https://nuxt-backend.dev/docs/reference/api/billing)
- Environment variables: [`BILLING_PROVIDER`](https://nuxt-backend.dev/docs/reference/configuration/environment-variables#every-variable), [`BILLING_ACCESS_TOKEN`](https://nuxt-backend.dev/docs/reference/configuration/environment-variables#every-variable), [`BILLING_WEBHOOK_SECRET`](https://nuxt-backend.dev/docs/reference/configuration/environment-variables#every-variable)
- Findings: [`billing-access`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-access), [`billing-webhook-secret`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-webhook-secret), [`deployment-billing-access-token`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#deployment-billing-access-token), [`deployment-billing-webhook-secret`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#deployment-billing-webhook-secret), [`billing-webhook-route`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-webhook-route), [`billing-webhook-enabled`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-webhook-enabled), [`billing-webhook-events`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-webhook-events), [`billing-meter-usage`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-meter-usage), [`billing-organization`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-organization), [`billing-customer-mapping`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-customer-mapping), [`billing-multiple-subscriptions`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-multiple-subscriptions), [`billing-proration`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-proration), [`billing-benefit-grace`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-benefit-grace), [`billing-trial-abuse`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-trial-abuse), [`billing-portal`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-portal), [`billing-customer-emails`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-customer-emails), [`billing-team-customers`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-team-customers), [`billing-checkout-links`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-checkout-links), [`billing-currency`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-currency), [`billing-plan-benefits`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-plan-benefits), [`billing-gift-twins`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-gift-twins), [`billing-pass-products`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-pass-products), [`billing-feature-benefits`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-feature-benefits), [`billing-promotion-limits`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-promotion-limits), [`billing-promotion-portal`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-promotion-portal), [`billing-provider-sdk`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-provider-sdk), [`billing-catalog-production`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-catalog-production), [`billing-launch`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-launch)

## In this tab

### Set up and sell

<card-group>
<card icon="i-lucide-scale" title="Choose a pricing model" to="https://nuxt-backend.dev/docs/build/billing/pricing-models">

Plans, a free plan, prepaid credits, allowances, usage and several currencies: which fits.

</card>

<card icon="i-lucide-plug" title="Set up billing" to="https://nuxt-backend.dev/docs/build/billing/setup">

`setupBilling`, who pays, one customer per entity, the environment and going live.

</card>

<card icon="i-lucide-file-code-2" title="Define and sync your catalog" to="https://nuxt-backend.dev/docs/build/billing/catalog">

Meters, plans, packs, features, quotas and promotions in code, pushed with `billing sync`.

</card>

<card icon="i-lucide-tags" title="Customize the pricing page" to="https://nuxt-backend.dev/docs/build/billing/pricing-page">

The server-rendered `/pricing` and `<PricingTable>`: the yearly switch, currencies, packs per credit.

</card>

<card icon="i-lucide-lock-keyhole-open" title="Gate features by plan" to="https://nuxt-backend.dev/docs/build/billing/subscriptions/feature-gating">

`requireFeature` and `withFeature` on the server, `<Gate>` and `<UpgradePrompt>` in pages.

</card>

<card icon="i-lucide-user-cog" title="Who may buy for a workspace" to="https://nuxt-backend.dev/docs/build/billing/setup#who-may-buy-for-a-workspace">

Who reads, buys and manages a workspace's billing, checked fresh on every call.

</card>
</card-group>

### Subscriptions

<card-group>
<card icon="i-lucide-credit-card" title="Manage subscriptions" to="https://nuxt-backend.dev/docs/build/billing/subscriptions">

Read the plan's state, change, cancel, pause and resume it, and the billing section of `/settings`.

</card>

<card icon="i-lucide-shopping-cart" title="Open checkout and the portal" to="https://nuxt-backend.dev/docs/build/billing/subscriptions/checkout">

Checkout for a plan or a pack, the customer portal, and what the server decides.

</card>

<card icon="i-lucide-gauge" title="Limit resources per plan" to="https://nuxt-backend.dev/docs/build/billing/subscriptions/quotas">

How many stories or projects a plan allows, counted in the mutation that makes them. Experimental.

</card>

<card icon="i-lucide-ticket-percent" title="Mint discounts from your server" to="https://nuxt-backend.dev/docs/build/growth/offers/discounts">

Mint discounts from server code, accept codes at checkout, apply one your server chooses.

</card>

<card icon="i-lucide-receipt" title="Show orders, invoices and usage" to="https://nuxt-backend.dev/docs/build/billing/subscriptions/orders">

Past charges with invoices, metered consumption, and refunds from the admin tier.

</card>

<card icon="i-lucide-door-open" title="Handle cancellations" to="https://nuxt-backend.dev/docs/build/growth/engage/cancel-flow">

Cancelling in one step, with one optional step before it for a question and a save offer by reason.

</card>
</card-group>

### Credits

<card-group>
<card icon="i-lucide-coins" title="Sell credits and top-ups" to="https://nuxt-backend.dev/docs/build/billing/credits">

Balances with `useCredits`, packs to top up, and a notice before the balance runs out.

</card>

<card icon="i-lucide-hand-coins" title="Spend credits in your functions" to="https://nuxt-backend.dev/docs/build/billing/credits/spending">

`spendCredits`, or reserve, run and settle so a failed run costs nothing, and a hold for queued jobs.

</card>
</card-group>

### Growth

<card-group>
<card icon="i-lucide-trending-up" title="Growth" to="https://nuxt-backend.dev/docs/build/growth#offers">

Promotions, campaign links, gifts, plan passes and referrals, on Polar's own discounts and checkout.

</card>

<card icon="i-lucide-badge-percent" title="Run a promotion" to="https://nuxt-backend.dev/docs/build/growth/offers">

A discount in the catalog with its real terms and end date, applied at checkout by key.

</card>

<card icon="i-lucide-megaphone" title="Share campaign links" to="https://nuxt-backend.dev/docs/build/growth/offers/campaign-links">

A pricing link with a discount code and UTM attribution, carried through sign-in into checkout.

</card>

<card icon="i-lucide-gift" title="Send, receive and manage gifts" to="https://nuxt-backend.dev/docs/build/growth/offers/gifts">

Buy a credit pack for someone by email; they sign in and claim it, and `/gifts` lists the gifts sent and received.

</card>

<card icon="i-lucide-ticket" title="Gift a plan as a pass" to="https://nuxt-backend.dev/docs/build/growth/offers/plan-passes">

A plan bought once as a gift, for 1, 3 or 12 months, with no card and no renewal.

</card>

<card icon="i-lucide-share-2" title="Run a referral program" to="https://nuxt-backend.dev/docs/build/growth/offers/referrals">

A link per person, an explicit claim, and rewards once the first payment clears its hold.

</card>
</card-group>

### Events

<card-group>
<card icon="i-lucide-zap" title="React to billing events" to="https://nuxt-backend.dev/docs/build/billing/events">

Your own code on orders and subscription changes, and billing on the activity trail.

</card>

<card icon="i-lucide-mail" title="Customer emails and notifications" to="https://nuxt-backend.dev/docs/build/billing/events/customer-emails">

What Polar tells customers, what the package adds, and what stays in the app.

</card>
</card-group>

### Recipes

<card-group>
<card icon="i-lucide-user" title="Bill each person" to="https://nuxt-backend.dev/docs/build/billing/setup#bill-each-person">

A setup where every account pays for itself.

</card>

<card icon="i-lucide-chart-line" title="Charge for usage beyond the plan" to="https://nuxt-backend.dev/docs/build/billing/subscriptions/overage">

An allowance per plan, then billed overage with a cap.

</card>
</card-group>

## Revenue and growth numbers

The admin console reads Polar's live metrics: recurring revenue, new and churned subscriptions, checkouts and usage per meter. It also shows the growth funnel, from waitlist to paid ([Read revenue and usage](https://nuxt-backend.dev/docs/build/growth/measure/revenue); [Measure growth](https://nuxt-backend.dev/docs/build/growth/measure)). Like the rest of billing it keeps no ledger: the numbers are Polar's.

## Not included

- **Per-seat pricing.** A subscription belongs to the workspace or the user as a whole, and a quota never counts people.
- **A money ledger.** On Polar, orders, invoices and usage are read live from Polar. Credits, gifts and rewards are units of service, never money the app holds, on any provider.
- **Auto top-up.** A balance grows when someone buys a pack, never by the app charging a card on its own.
- **Editing provider objects from code.** `billing sync` never deletes, and never rewrites a price or a credit grant a customer holds: it reports drift. To stop selling a plan, retire it.
- **Gifts, plan passes, discounts and revenue metrics off Polar.** They are built on Polar's discounts, benefits and metrics, and refuse as `unavailable` on Stripe, Dodo and Creem ([What stays on Polar](https://nuxt-backend.dev/docs/services/merchants#what-stays-on-polar)).
- **Workspace billing permissions.** The owner and admins manage billing; granting it to a custom role waits for a later release ([Roadmap](https://nuxt-backend.dev/docs/start/roadmap)).

The reasons are on [Principles](https://nuxt-backend.dev/docs/start/concepts/principles#what-it-never-does), and the rules every growth feature follows are under [Guardrails on growth features](https://nuxt-backend.dev/docs/start/concepts/principles#guardrails-on-growth-features).

## Next

The [Email](https://nuxt-backend.dev/docs/build/email) tab covers the messages the app sends itself. For a complete setup in one place, start from a recipe: [Bill each person](https://nuxt-backend.dev/docs/build/billing/setup#bill-each-person) or [Charge for usage beyond the plan](https://nuxt-backend.dev/docs/build/billing/subscriptions/overage).


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
