> ## Documentation Index
> Fetch the complete documentation index at: https://polar.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How Polar works

> Start here: the objects Polar is built from, and how products, checkout, orders, benefits and usage connect.

Polar is the seller of record for your software. You define what you sell, Polar runs checkout, billing and tax compliance, and your application reads back what each customer has access to.

Everything in Polar is built from a small set of objects. Understanding how they relate makes every other part of the docs easier to follow.

```mermaid actions={true} theme={null}
flowchart TD
  PR[Prices] --> P[Product]
  B[Benefits] --> P
  P --> CO[Checkout]
  CO -->|one-time| O[Order]
  CO -->|recurring| S[Subscription]
  S -->|renews| O
  O -->|grants| G[Benefit grants]
  Y[You] -->|grant directly| G
  G -.->|of| B
  G --> C[Customer]
  C -->|uses your product| E[Events]
  E --> M[Meters]
  M -->|billed on| O
```

## Usage

To track [usage](https://polar.sh/docs/concepts/usage.md), send **events** from your application. **Meters** aggregate those events into usage per customer. Use them to see what customers do and what they cost you, and optionally to charge with a metered price or draw down prepaid credits.

## Benefits

[Benefits](https://polar.sh/docs/concepts/benefits.md) are what a customer receives from you: usage credits, a feature flag, a shared Slack channel, a license key, and more. Polar grants them automatically when a purchase succeeds and revokes them when access ends. Benefits aren't tied to orders, though: you can also grant one to any customer directly, for a trial, a goodwill gesture or a deal agreed outside checkout.

## Products

A [product](https://polar.sh/docs/concepts/products.md) is anything you sell: a one-time purchase or a recurring plan. Each product has **prices**, which define how much the customer pays, and **benefits**, which define what they get.

## Customers

A [customer](https://polar.sh/docs/concepts/customers.md) is the person or team that buys from you. You link each customer to the user in your own application with an **external ID**, and read everything they have access to from a single **customer state** object.

## Checkout

[Checkout](https://polar.sh/docs/concepts/checkout.md) is how a customer buys a product. Share a no-code Checkout Link, or create a Checkout Session from your backend. A completed checkout creates the customer, the order, and the subscription if the product is recurring.

## Orders & subscriptions

Every charge is an [order](https://polar.sh/docs/concepts/orders-and-subscriptions.md). A **subscription** is the recurring relationship behind a recurring product: it renews on each billing cycle and creates a new order every time.

## Money flow

Polar is the [Merchant of Record](https://polar.sh/docs/merchant-of-record/introduction.md). Customers pay Polar, Polar remits sales tax and VAT, and the rest goes to your balance, ready to be paid out. See [Money flow](https://polar.sh/docs/concepts/money-flow.md).

## Putting it together

The [quickstart](https://polar.sh/docs/quickstart/overview.md) builds a complete integration in this order: track usage, set up your catalog, integrate checkout and customers, then sync customer state.

## Organizations and environments

All of these objects belong to an **organization**, the account you sell under. Your team works with it from the dashboard, the [CLI](https://polar.sh/docs/integrate/cli/introduction.md) or an agent connected to the [MCP server](https://polar.sh/docs/integrate/mcp.md). Your backend uses an [organization access token](https://polar.sh/docs/integrate/oat.md).

In the dashboard, products, Checkout Links, discounts, benefits and meters are under **Products**. Orders, subscriptions and checkouts are under **Sales**. **Customers**, **Analytics** and **Finance** have their own sections.

Polar has two separate environments. **Production** handles real money. The [sandbox](https://polar.sh/docs/integrate/sandbox.md) is a full copy of Polar for testing, with its own organizations, tokens and data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.