# Record Usage

If your pricing strategy included usage-based pricing, such as per API, per requests, per orders, etc, you might want to record the actual usage of your customers so they will be billed properly at the end of each cycle. This is done through Stripe. Stripe allows you to record the usage of a customer to their subscription through their powerful APIs.&#x20;

## Record Units in Stripe

If you are using recurring quantities and want to change the number of units a customer is at like “per-seat licensing”, you need to update the quantity on the Plan.

For an in depth guide on handling subscription quantities check out [this guide](https://stripe.com/docs/billing/subscriptions/quantities).

## Record Metered Usage in Stripe

There is a [Stripe API call for creating a usage record](https://stripe.com/docs/api/usage_records/create), which is how you add to the metric you're billing against. You must store the [subscription item](https://stripe.com/docs/api#subscription_items) ID on your database because it is used to update the usage of a metric. Any metrics you update will be reflected in the Billflow Subscription Management Portal for your customers to see.&#x20;

For an in depth guide on handling metric based check out [this guide](https://stripe.com/docs/billing/subscriptions/metered-billing).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.billflow.io/how-to/record-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
