# Enable Quantity Management

## Overview

Quantity management allows your customers to select the quantity of a product they want on checkout and/or manage that from the Customer Portal. This is great for unit-based pricing models where you charge per seat, user, or other unit.&#x20;

![](/files/-MQn-VSSU6RX-QkT31Rf)

![](/files/-MQn-bJRma9hVMVKdi9S)

![](/files/-MQn0Ex_Dahy2oCo5siX)

![](/files/-MQn0TViCKGhphhPKMwE)

Below are the steps to enable this feature.

## Configure Stripe

### Add Metadata

To allow changing of quantities, you need to add the following metadata to your Stripe Products

| Metadata                    | Description                                         |
| --------------------------- | --------------------------------------------------- |
| sb\_quantity\_enabled: true | allow change quantity in pricing /signup and portal |

![Stripe Product Metadata Settings](/files/-MJ3OhVrhgdjhpmDEz3X)

### Set Unit Label

To allow changing of quantities, you need to have a unit label on your Stripe Product. This tells Billflow that the product is used for unit-based billing.

![Setting Unit label on Stripe Product](/files/-MJ3RXgs9GCDf-ehBkNr)

## Enable on Billing Page

Go to your billing page and enable the option to allow quantity management. There you can also set the minimum, maximum, and steps of the quantity section.

![](/files/-MMRja-NgzPY0yQc0Khf)

## Additional Settings

In addition to enabling the quantity management feature, you can add the following settings to control some behaviors.

| Key  | Type   | Required? | Default          | Description                                                                                                                                                                                                                  |
| ---- | ------ | --------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| min  | number | no        | 0                | <p>Default is 0</p><p>Sets the minimum that your customer can set the quantity value. </p><p>For example: 10 users. </p><p>Use case: you do not want someone to set it to 0 or -1 or you have a minimum signup quantity.</p> |
| max  | number | no        | Stripe Max Limit | <p>Sets the maximum that your customer can set the quantity value.</p><p>For example 100 users. </p>                                                                                                                         |
| step | number | no        | 1                | <p>Default is 1</p><p>If set to 10, the plus and minus buttons will increase or decrease the quantity by 10 when clicked.</p>                                                                                                |

```javascript
"options":{
   "behavior":{
      "quantityManagement":{
         "unit":{
            "email":{
               "min":10,
               "max":5000,
               "step":50
            }
         }
      }
   }
}
```


---

# 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/enable-quantity-management.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.
