# Consolidate subscription invoices

Combine subscription charges into one invoice with Billing Groups.

Use Billing Groups to consolidate charges from multiple subscriptions for the same customer. A group controls the invoice schedule, payment method, and shared billing settings. Each subscription in the group retains its own item periods.

You can attach eligible existing subscriptions or create subscriptions in a group. To create multiple subscriptions with one initial invoice, use the [Billing Intent workflow](https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices.md#create-with-billing-intent).

## Use cases

- **Different subscription intervals**: Consolidate charges for an annual plan and a monthly add-on into the group’s invoice. Each subscription retains its item periods, so the annual charge doesn’t repeat on every monthly invoice. The group invoices on its own recurring schedule, which doesn’t need to match the subscription intervals.
- **One payer for multiple teams or locations**: Consolidate subscription charges on an invoice for a finance team or headquarters. All subscriptions must belong to the payer’s single customer, even when different teams or locations use them.

One customer has two subscriptions in a Billing Group. Each subscription retains its item periods, and the group consolidates their charges on its invoice schedule. (See full diagram at https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices)

```text
[Customer: one payer] --> [Subscription A: annual periods]
[Customer: one payer] --> [Subscription B: monthly periods]
[Subscription A: annual periods] --> [Billing Group: invoice schedule and shared settings]
[Subscription B: monthly periods] --> [Billing Group: invoice schedule and shared settings]
[Billing Group: invoice schedule and shared settings] --> [Consolidated invoice]
```

## Before you begin

Before you make API requests, complete the following setup:

- Obtain approved access to the Billing Groups private preview using the request form on this page.
- Use a [sandbox](https://docs.stripe.com/sandboxes.md) and its server-side API credentials. Store credentials in an environment variable or secrets manager, following [key management best practices](https://docs.stripe.com/keys-best-practices.md). Use a restricted API key where supported.
- Create a [Customer](https://docs.stripe.com/api/customers/create.md?api-version=2026-11-18.preview) and two [non-metered recurring prices](https://docs.stripe.com/products-prices/manage-prices.md#create-price) in the same currency. Save the price IDs as `PRICE_A_ID` and `PRICE_B_ID`.
- For the automatic collection examples, [attach a payment method](https://docs.stripe.com/api/payment_methods/attach.md?api-version=2026-11-18.preview) to that customer and save its ID. Subscriptions that start with a trial don’t need an attached payment method.
- Use [flexible billing mode](https://docs.stripe.com/billing/subscriptions/billing-mode.md) for every subscription you create or attach.

### Request access to Billing Groups

Billing Groups is in private preview. Submit a request and the Stripe team will follow up. Submitting this form doesn't grant API access.

```bash
curl https://docs.stripe.com/preview/register \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Referer: https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices" \
  -d '{"email": "EMAIL", "preview": "billing_groups_preview"}'
```

## Preview limitations 

Review these limitations before requesting access or changing subscriptions. These limitations also apply to Billing Intent.

### API version

- Use API version `2026-11-18.preview` for every request.

### Unsupported integrations and features

- **Connect and metered prices**: Use non-Connect subscriptions and non-metered recurring prices. Omitting Connect parameters doesn’t make a Connect integration supported.
- **Managed Payments**: Billing Groups and Billing Intent don’t support [Managed Payments](https://docs.stripe.com/payments/managed-payments.md). Don’t use them with subscriptions that Managed Payments processes.
- **Prebilling**: Grouped subscriptions can’t use [prebilling](https://docs.stripe.com/billing/subscriptions/prebilling.md) through `billing_schedules` or target-date billing.
- **Pausing**: You can’t supply `pause_collection` or explicitly request a pause for a grouped subscription. You can’t attach a subscription that has `pause_collection` set. You also can’t attach a subscription with a `status` of `paused` if you requested the pause.
- **Other preview caveats**: Don’t use `pending_if_incomplete` subscription updates or subscription schedules.

### Capacity limits

- A Billing Group can contain a maximum of 200 subscription items across all its subscriptions. This limit counts items, not subscriptions.
- Each subscription can contain a maximum of 20 items by default, including subscriptions created through Billing Intent.
- A Billing Intent can contain a maximum of 10 actions.
- A consolidated invoice can contain a maximum of 250 invoice line items by default. Prorations and other invoice items count toward this limit without increasing the group’s subscription-item count.

### Membership and shared settings

- **Group membership**: You can attach an ungrouped subscription. Repeating its current group ID succeeds without resetting its settings again. You can’t clear its group or move it to another group.
- **Shared settings**: Subscription create, update, and attachment requests reject the [subscription-level parameters listed in this guide](https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices.md#shared-settings), including attempts to clear them.

## How Billing Groups work 

A Billing Group associates a customer and multiple subscriptions with shared billing settings. Configure grouping behavior with `grouping_behavior.type` set to `by_cadence` to consolidate invoices according to the group’s recurring schedule. This strategy doesn’t group invoices merely because they have the same date.

A subscription’s item periods describe when you provide the service. The group’s invoice schedule describes when Stripe invoices accrued charges. Attaching a subscription doesn’t realign its [billing cycle anchor](https://docs.stripe.com/billing/subscriptions/billing-cycle.md). Review subscription item periods and the group schedule separately.

Creating subscriptions directly can produce separate initial invoices, including prorations when applicable. Grouped renewals consolidate according to the group schedule. Use [Billing Intent](https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices.md#create-with-billing-intent) when multiple subscriptions must share their initial invoice.

### Shared settings 

Configure supported shared settings through the group’s inline billing settings, using `billing_settings`. These settings cover tax, invoice presentation, collection method, payment-method configuration and options, email delivery, and due terms. For example, configure Stripe Tax through `billing_settings.tax`, and automatic collection through `billing_settings.collection_method`.

Omit these parameters from subscription create, update, and attachment requests:

| Subscription parameters | Configuration |
| --- | --- |
| `automatic_tax`, `default_tax_rates`, `collection_method`, `days_until_due`, `invoice_settings`, `payment_settings` | Use the supported group `billing_settings` properties. The nested property names differ from the subscription parameters. |
| `default_payment_method` | Use the group’s top-level `default_payment_method`. If unset, the group uses the customer’s default payment method. |
| `application_fee_percent`, `on_behalf_of`, `transfer_data` | Omit these Connect parameters. Connect subscriptions aren’t supported in this preview. |
| `default_source`, `pause_collection`, `retry_settings`, `pending_invoice_item_interval` | Omit these parameters. They don’t have corresponding configurable properties in the public group settings. |

## Consolidate existing and newly created subscriptions

The following steps create a monthly group, attach an existing subscription, and create another subscription. Use the customer, payment method, and non-metered recurring prices from your sandbox setup.

Set the API version to `2026-11-18.preview` for every request. API v2 write requests use JSON and an idempotency key. Use a different key for each operation, and reuse that key when retrying the same operation. API v1 requests use form encoding.

## Create a Billing Group

Create a Billing Group for the customer with a monthly invoice schedule on the first day of the month at 00:00 UTC. Attach the customer and their default payment method. Set `billing_settings.collection_method` to `charge_automatically`.

```curl
curl -X POST https://api.stripe.com/v2/billing/groups \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  --json '{
    "customer": "{{CUSTOMER_ID}}",
    "default_payment_method": "{{PAYMENT_METHOD_ID}}",
    "grouping_behavior": {
        "type": "by_cadence",
        "by_cadence": {
            "type": "month",
            "interval_count": 1,
            "month": {
                "day_of_month": 1,
                "time": {
                    "hour": 0,
                    "minute": 0,
                    "second": 0
                }
            }
        }
    },
    "billing_settings": {
        "collection_method": "charge_automatically"
    },
    "include": [
        "billing_settings"
    ]
  }'
```

Save the returned `id` as `BILLING_GROUP_ID`. Review the returned `billing_settings` before attaching subscriptions.

## Attach an existing subscription

Select an ungrouped [flexible-mode subscription](https://docs.stripe.com/billing/subscriptions/billing-mode.md) with the same customer and currency. Update the subscription with `billing_group`.

> #### Review settings before attachment
> 
> Attachment resets the subscription-level settings listed in [Shared settings](https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices.md#shared-settings), including the default payment method, collection method, tax configuration, and invoice and payment settings. Stripe doesn’t copy these values to the group. Configure and review the group’s shared settings first because you can’t detach the subscription or move it to another group afterward.

```curl
curl https://api.stripe.com/v1/subscriptions/{{SUBSCRIPTION_ID}} \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -d billing_group={{BILLING_GROUP_ID}}
```

Verify that the returned subscription references the group. Attachment doesn’t change its item-period anchor. Its future charges follow the group’s invoice schedule.

### Example invoice timing

Suppose an existing monthly subscription renews on the 15th at 00:00 UTC. Its January 15–February 15 period is already paid. On January 20, you attach it to the group created in this guide, which invoices on the first day of each month at 00:00 UTC. You make no other subscription changes.

| Date (UTC) | Subscription behavior | Group invoice behavior |
| --- | --- | --- |
| January 20 | Attachment preserves the January 15–February 15 item period and billing cycle anchor. | Attachment alone doesn’t create an invoice or prorate the paid period. |
| February 1 | The subscription remains in its already-paid period. | The group invoice doesn’t include a renewal charge from this subscription. |
| February 15 | The subscription renews for February 15–March 15. | Stripe holds the renewal charge for the next group invoice instead of creating a separate subscription invoice. |
| March 1 | The item period remains February 15–March 15. | The group invoice includes the full renewal charge, alongside any charges due from other subscriptions in the group. |

Inspect the invoice line’s period to distinguish the subscription renewal date from the group invoice date.

## Create another subscription in the group

Create a subscription using a non-metered recurring price in the same currency. Set flexible billing mode and the saved group ID. Let the group supply the shared settings and payment method.

```curl
curl https://api.stripe.com/v1/subscriptions \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -d "customer={{CUSTOMER_ID}}" \
  -d "items[0][price]={{PRICE_A_ID}}" \
  -d "items[0][quantity]=1" \
  -d "billing_mode[type]=flexible" \
  -d billing_group={{BILLING_GROUP_ID}}
```

Save the returned subscription ID. Review its initial invoice and item periods. Whether creation produces prorations depends on your subscription parameters and timing. Creating subscriptions separately doesn’t combine their initial invoices.

## Preview and inspect consolidated invoices

Use Create a preview invoice with `billing_group` to preview the group’s consolidated charges.

```curl
curl https://api.stripe.com/v1/invoices/create_preview \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -d billing_group={{BILLING_GROUP_ID}}
```

Inspect the invoice lines and their periods to confirm which subscriptions contribute charges. A preview scoped to `subscription` instead returns charges for that individual subscription, even when it belongs to a group. A preview isn’t a finalized invoice and doesn’t collect payment.

After the next group billing cycle, list the group’s invoices and compare the generated invoice’s subscription lines with your preview.

```curl
curl -G https://api.stripe.com/v1/invoices \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -d "customer={{CUSTOMER_ID}}" \
  -d billing_group={{BILLING_GROUP_ID}}
```

Don’t infer that every subscription’s period starts on the group’s invoice date.

## Create subscriptions with Billing Intent

Use Billing Intent to create two subscriptions with one initial invoice. This is an alternative to creating each subscription directly. It uses the group created in this guide and the same customer and two non-metered recurring prices. The [preview limitations](https://docs.stripe.com/billing/subscriptions/consolidate-subscription-invoices.md#limitations) still apply.

### Create a draft Billing Intent

Create a Billing Intent with two `subscribe` actions. Each action uses `v1_subscription_details` and takes effect when you reserve the Billing Intent.

```curl
curl -X POST https://api.stripe.com/v2/billing/intents \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  --json '{
    "billing_group": "{{BILLING_GROUP_ID}}",
    "currency": "usd",
    "actions": [
        {
            "type": "subscribe",
            "subscribe": {
                "type": "v1_subscription_details",
                "v1_subscription_details": {
                    "items": [
                        {
                            "price": "{{PRICE_A_ID}}",
                            "quantity": 1
                        }
                    ]
                },
                "effective_at": {
                    "type": "on_reserve"
                }
            }
        },
        {
            "type": "subscribe",
            "subscribe": {
                "type": "v1_subscription_details",
                "v1_subscription_details": {
                    "items": [
                        {
                            "price": "{{PRICE_B_ID}}",
                            "quantity": 1
                        }
                    ]
                },
                "effective_at": {
                    "type": "on_reserve"
                }
            }
        }
    ]
  }'
```

Use the currency of your prices instead of `usd` if they differ. Save the returned `id` as `BILLING_INTENT_ID`. Draft creation doesn’t create active subscriptions. As an alternative to referencing an existing group, you can supply `billing_group_data` to create one inline.

### Reserve the Billing Intent

Reserve the draft Billing Intent to calculate its initial invoice and the amount required for payment. Reservation fixes the calculated amounts but doesn’t collect payment or create the subscriptions. While the reservation is active, the group doesn’t create invoices. It resumes invoicing after you commit the Billing Intent or release its reservation. For actions configured with `on_reserve`, Stripe uses the reservation time as their effective time when you commit the Billing Intent.

```curl
curl -X POST https://api.stripe.com/v2/billing/intents/{{BILLING_INTENT_ID}}/reserve \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}"
```

Read the reserved `amount_details.amount_due` and `currency`. Use `amount_due`, which accounts for customer balance, instead of `total`. Parse the minor-unit amount string as an integer for the Payment Intents API.

### Collect payment when required

For automatic collection, if `amount_due` is greater than zero, create and confirm a `PaymentIntent` using the reserved amount and currency, the group’s customer, and that customer’s attached payment method.

Replace the example `amount` and `currency` with the `amount_due` and `currency` values returned by the reserve request.

```curl
curl https://api.stripe.com/v1/payment_intents \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  -d amount=2000 \
  -d currency=usd \
  -d "customer={{CUSTOMER_ID}}" \
  -d "payment_method={{PAYMENT_METHOD_ID}}" \
  -d "allowed_payment_method_types[]=card" \
  -d confirm=true
```

Use a customer-attached test card for this example. Handle [required payment authentication](https://docs.stripe.com/payments/payment-intents/verifying-status.md) and wait until the `PaymentIntent` has status `succeeded`. Don’t commit while payment requires action, is processing, or has failed.

If `amount_due` is zero, skip payment and omit `payment_intent` from the commit request. If you abandon an unpaid reservation, release the reservation to return the Billing Intent to draft, or cancel the Billing Intent.

### Commit the Billing Intent

After successful payment, commit the reserved Billing Intent with the actual `PaymentIntent` ID.

```curl
curl -X POST https://api.stripe.com/v2/billing/intents/{{BILLING_INTENT_ID}}/commit \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  --json '{
    "payment_intent": "{{PAYMENT_INTENT_ID}}"
  }'
```

For a zero-due reservation, send the same request without `payment_intent`. Confirm that the returned Billing Intent has status `committed`.

### Verify subscriptions and invoices

List subscriptions filtered by the group. If you already created subscriptions in the direct workflow, compare the list before and after committing to identify the two created by this Billing Intent.

```curl
curl -G https://api.stripe.com/v1/subscriptions \
  -u "<<YOUR_SECRET_KEY>>:" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -d "customer={{CUSTOMER_ID}}" \
  -d billing_group={{BILLING_GROUP_ID}}
```

Verify that two distinct subscriptions reference the group, and that their initial invoice contains lines from both subscriptions.

Inspect a later group invoice to confirm that recurring charges continue to consolidate. Compare each line’s subscription and item period with the subscriptions you created.

## Manage group settings and payment methods

Update the Billing Group to change shared settings. For example, attach a replacement payment method to the customer, then update the group’s default payment method and invoice presentation.

```curl
curl -X POST https://api.stripe.com/v2/billing/groups/{{BILLING_GROUP_ID}} \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -H "Idempotency-Key: {{IDEMPOTENCY_KEY}}" \
  --json '{
    "default_payment_method": "{{REPLACEMENT_PAYMENT_METHOD_ID}}",
    "billing_settings": {
        "invoice_presentation": {
            "invoice_rendering_template": "{{INVOICE_RENDERING_TEMPLATE_ID}}"
        }
    },
    "include": [
        "billing_settings"
    ]
  }'
```

Use an existing [invoice rendering template](https://docs.stripe.com/invoicing/invoice-rendering-template.md) for this example. Omitted settings remain unchanged. Setting `default_payment_method` to JSON `null` restores the fallback to the customer’s default payment method. Subscription-level payment methods aren’t independent overrides for grouped subscriptions.

Retrieve the group with `include` to inspect its effective settings. Without explicitly including `billing_settings`, that property isn’t populated in the response.

```curl
curl -G https://api.stripe.com/v2/billing/groups/{{BILLING_GROUP_ID}} \
  -H "Authorization: Bearer <<YOUR_SECRET_KEY>>" \
  -H "Stripe-Version: 2026-11-18.preview" \
  -d "include[0]=billing_settings"
```

Review the settings and preview the next consolidated invoice after changing configuration.

## Automatic cleanup

Stripe automatically cancels unused Billing Groups:

- **All subscriptions canceled**: If every subscription has a `canceled` status, Stripe cancels the group 30 days after the last subscription cancellation.
- **No subscriptions**: Stripe also cancels groups without any subscriptions 30 days after creation.
