> ## 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.

# Orders & subscriptions

> Order billing reasons and statuses, subscription statuses, and when benefits are revoked.

An **order** is the record of a single charge: the amount, the tax, the invoice, and the product and customer it belongs to.

A **subscription** is the ongoing relationship created when a customer buys a recurring product. It renews on every billing cycle, and each renewal creates a new order.

```mermaid theme={null}
flowchart LR
  CS[Checkout] --> S[Subscription]
  S -->|subscription_create| O1[Order]
  S -->|subscription_cycle| O2[Order]
  S -->|subscription_cycle| O3[Order]
  CS2[Checkout] -->|purchase| O4[Order]
```

## Orders

Polar creates an order whenever it charges a customer. The order's `billing_reason` tells you why. The dashboard shows it as **Billing reason** on the order:

| `billing_reason` | Dashboard | When |
| - | - | - |
| `purchase` | **Purchase** | A one-time product is bought |
| `subscription_create` | **Subscription Create** | A subscription starts |
| `subscription_cycle` | **Subscription Cycle** | A subscription renews |
| `subscription_update` | **Subscription Update** | A plan or seat change is charged right away |
| `subscription_meter_cycle` | **Subscription Meter Cycle** | Usage is billed at the end of a meter period |

| Status | Dashboard | Meaning |
| - | - | - |
| `draft` | **Draft** | Created for an [off-session charge](https://polar.sh/docs/features/off-session-charges.md) and not charged yet |
| `pending` | **Pending** | Polar is collecting the payment |
| `paid` | **Paid** | The payment succeeded |
| `refunded` | **Refunded** | Fully refunded |
| `partially_refunded` | **Partially refunded** | Part of the amount was refunded |
| `void` | **Void** | Won't be collected, for example after every payment retry failed |

Every paid order with a successful payment has a receipt, so free orders don't. You or the customer can generate an invoice for a paid order.

You can also charge an existing customer outside of checkout by creating a draft order and finalizing it. See [Off-session charges](https://polar.sh/docs/features/off-session-charges.md).

## Subscriptions

A subscription follows the billing interval of its product. At the end of each period, Polar starts a new one, creates an order, and charges the customer's saved payment method. By default, metered usage from the period that just ended is billed on the same order.

| Status | Dashboard | Meaning | Benefits |
| - | - | - | - |
| `trialing` | **Trialing** | In a free [trial](https://polar.sh/docs/features/subscriptions/trials.md) | Granted |
| `active` | **Active** | Paid and renewing | Granted |
| `past_due` | **Past due** | A renewal payment failed and Polar is [retrying it](https://polar.sh/docs/features/subscriptions/failed-payments.md) | Revoked, unless you set a grace period |
| `paused` | **Paused** | [Paused](https://polar.sh/docs/features/subscriptions/manage.md#pause-and-resume), no orders are created | Revoked |
| `trial_ended` | **Trial ended** | The trial ended without a payment method on file | Revoked |
| `canceled` | **Canceled** | Ended, including after payment retries run out | Revoked |
| `incomplete` | **Incomplete** | Being created, the first payment isn't confirmed yet | Not granted |

Treat the less common `incomplete_expired` and `unpaid` statuses as ended subscriptions.

A subscription that's canceled **at period end** stays `active` until `current_period_end`, and can be uncanceled until then. The dashboard labels it **Canceling** in the meantime. A **revoked** subscription ends immediately.

## Changing a subscription

You and your customers can switch a subscription to another product, change its seats or units, apply a discount or move its billing date. Charges for a change mid-period are [prorated](https://polar.sh/docs/features/subscriptions/proration.md): either added to the next order or invoiced right away.

## In the dashboard, CLI or your agent

Orders are under **Sales → Orders** and subscriptions under **Sales → Subscriptions**. Each customer's page lists theirs too. The same tasks work from your terminal and your agent. See the [CLI reference](https://polar.sh/docs/integrate/cli/reference.md) and the [MCP server](https://polar.sh/docs/integrate/mcp.md).

| Task | Dashboard | CLI | MCP operation |
| - | - | - | - |
| List orders | **Sales → Orders** | `polar orders list` | `orders_list` |
| Get an order's invoice | Open the order | `polar orders invoice <id>` | `orders_invoice` |
| Change a subscription | Open the subscription | `polar subscriptions update <id>` | `subscriptions_update` |
| End a subscription now | **Cancel Subscription** with **Cancellation Date** set to **Immediately** | `polar subscriptions revoke <id>` | `subscriptions_revoke` |

## Learn more

| Resource | Description |
| - | - |
| [Orders](https://polar.sh/docs/features/orders.md) | Invoices, receipts and billing details |
| [Subscriptions](https://polar.sh/docs/features/subscriptions/introduction.md) | How subscriptions renew and end |
| [Managing subscriptions](https://polar.sh/docs/features/subscriptions/manage.md) | Change, pause, cancel and revoke |
| [Refunds](https://polar.sh/docs/features/refunds.md) | Full and partial refunds |
| [Orders API](https://polar.sh/docs/api-reference/current/orders/list-orders.md) · [Subscriptions API](https://polar.sh/docs/api-reference/current/subscriptions/list-subscriptions.md) | API reference |


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