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

# Invoices and billing

> Download invoices, update your payment method, and fix a failed payment.

Invoices and payment details live in [Subscription settings](https://www.magicpatterns.com/settings/subscription). Billing is per workspace, and only admins can manage it.

To change your plan, see [Change or cancel your subscription](https://www.magicpatterns.com/docs/documentation/plans-and-billing/subscription-plans.md#change-or-cancel-your-subscription).

## Find or download an invoice

1. Go to [Subscription settings](https://www.magicpatterns.com/settings/subscription).
2. Scroll to **Invoices**. Each row shows the date, invoice number, amount, and whether it's paid.
3. Click the download icon on the invoice you need.

Your subscription and any [on-demand usage](https://www.magicpatterns.com/docs/documentation/plans-and-billing/on-demand-usage.md) are billed on the same invoice.

## Update your payment method

1. Go to [Subscription settings](https://www.magicpatterns.com/settings/subscription).
2. Under **Payment Method**, click **Change Payment Method**, or **Add Payment Method** if none is on file.
3. Make the change in the Stripe billing portal that opens.

You need a payment method on file to turn on on-demand usage.

## If a payment fails

When a payment fails, Subscription settings shows a banner asking you to update your payment method. Update it to keep your plan active. On-demand usage stops until the failed payment is resolved.

## Common questions

> [accordion] Where do I find my Magic Patterns invoices?
>
> In [Subscription settings](https://www.magicpatterns.com/settings/subscription), under **Invoices**. Click the download icon next to any invoice. See [Find or download an invoice](#find-or-download-an-invoice).

> [accordion] How do I change my credit card?
>
> In [Subscription settings](https://www.magicpatterns.com/settings/subscription), click **Change Payment Method** and update your card in the Stripe billing portal. See [Update your payment method](#update-your-payment-method).

> [accordion] What should I do if my payment failed?
>
> Update your payment method in [Subscription settings](https://www.magicpatterns.com/settings/subscription) to keep your plan active. On-demand usage stops until the failed payment is resolved. See [If a payment fails](#if-a-payment-fails).

> [accordion] Can I get a refund?
>
> Email [support@magicpatterns.com](mailto:support@magicpatterns.com).

> [accordion] I'm on Enterprise. Where are my invoices?
>
> Enterprise plans can use custom invoicing. Ask your account manager for invoices.


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