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

# Quickstart

> Go from a Commet account to your first subscription payment in sandbox.

Commet lets you charge through **subscriptions** and **one-time payments**.

* A **subscription** connects a customer to a plan. The plan defines what they can use and what they pay; Commet manages checkout, invoices, and renewals.
* A **one-time payment** charges a customer for a single purchase, without a plan or subscription. Follow [Accept One-Time Payments](https://commet.co/docs/accept-one-time-payments.md) if that is all you need.

This quickstart walks you through your first paid subscription in sandbox.

## Plans, features, and consumption

A **feature** is something your product provides, such as API calls, seats, or access to a capability. A **plan** groups features and sets their limits and prices.

Each plan uses one consumption model to define how its measured usage consumes the included allowance and is charged:

| Model | How it works |
| - | - |
| **Metered** | Count usage per feature. Include a quantity in the plan and optionally charge for usage above it. |
| **Credits** | Give the customer a pool of credits. Each use deducts the number of credits configured for that feature. |
| **Balance** | Give the customer a monetary balance. Each use deducts its monetary cost; the plan can block when exhausted or allow overage. |

A fixed monthly price can include features without extra usage charges. You do not need to charge for overage to use a plan.

For this walkthrough, use a **Metered** plan with a monthly price and an included API-call allowance. See [Consumption Models](https://commet.co/docs/consumption-models.md) when you need to configure a different model.

## Your first subscription payment

**1. Create your account**

[Create a Commet account](https://commet.co/login) and select your **sandbox organization**. Keep every resource in this walkthrough in that organization. Complete its [payment provider setup](https://commet.co/docs/payment-providers.md) so it can accept sandbox payments.

**2. Create an API key**

[Create a sandbox API key](https://commet.co/docs/create-api-key.md) and store it on your server. That guide covers the dashboard, CLI, MCP, and SDK initialization.

**3. Create a feature**

In **Features**, create **API Calls** with code `api_calls` and type **Usage**. The code identifies the feature when your application records consumption. You will set its included quantity on the plan.

See [Configure Features](https://commet.co/docs/configure-features.md).

**4. Create a plan**

In **Plans**, create a plan named **Pro**, with code `pro`, and choose **Metered**. Add a **USD 20 monthly price**, include **1,000 API calls**, and leave overage disabled for this first example. Use a paid price without a trial so the next steps lead directly to payment.

See [Manage Plans](https://commet.co/docs/create-plans.md).

**5. Create a customer**

Create a test customer with a billing email and a stable identifier from your application, such as `demo_customer`. The customer represents the person or business you are going to bill.

See [Manage Customers](https://commet.co/docs/manage-customers.md) for the dashboard and SDK flow.

**6. Create the subscription**

Connect that customer to the **Pro** plan using its monthly price. Creating the subscription for this paid plan returns a `checkoutUrl`. Open it or redirect the customer there to enter their billing details and pay.

See [Manage Subscriptions](https://commet.co/docs/manage-subscriptions.md#create) for the request in your SDK.

**7. Complete the payment**

Use the sandbox checkout's **Test Data** panel to fill in test payment details and complete checkout. Confirm that the invoice is paid and the subscription is active in the dashboard.

Your first subscription payment is complete. Commet manages subsequent renewals for the monthly plan. See [Testing](https://commet.co/docs/testing-sandbox.md) for the available test tools.

## Connect it to your product

With the first payment working, [check feature access](https://commet.co/docs/configure-features.md#current-feature-state) and [track usage](https://commet.co/docs/track-usage.md) when your customer uses the product. Use [signed webhooks](https://commet.co/docs/webhooks/introduction.md) to keep your application in sync with subscription and payment changes; a checkout redirect alone is not payment confirmation.

If a coding agent is implementing the flow, connect it through [MCP](https://commet.co/docs/mcp-server.md) or install the [Commet Skill](https://commet.co/docs/commet-skill.md). Use the same sandbox organization and the feature, plan, and customer identifiers from this walkthrough.


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