1 import { InlineIcon, Table } from "docs-ui"
2 import { EllipsisHorizontal } from "@medusajs/icons"
3
4 export const metadata = {
5 title: `Billing`,
6 }
7
8 # {metadata.title}
9
10 In this guide, you'll learn how billing works in Cloud, and how to view and download invoices.
11
12 ## How Billing Works
13
14 Medusa bills your organization monthly based on its plan and usage across projects. If you're in multiple organizations, each organization is billed separately.
15
16 Your organization's monthly invoice contains:
17
18 - An upfront charge for the plan you are currently on.
19 - An upfront charge for the [add-ons](#purchase-add-on-resources) you have.
20 - Pro-rated charges for the [add-ons](#purchase-add-on-resources) you added in the previous billing cycle.
21 - Charges for your [Flex Usage](../usage/page.mdx#what-is-flex-usage) in the previous billing cycle.
22
23 If your organization goes over its plan's usage limits within the current billing period, charges for your [Flex Usage](../usage/page.mdx#what-is-flex-usage) will be added to your next invoice.
24
25 Learn how to monitor your organization's usage in the [Usage](../usage/page.mdx) guide.
26
27 <Note title="Got questions?">
28
29 You can reach out to `billing@medusajs.com` for assistance.
30
31 </Note>
32
33 ---
34
35 ## View Billing History and Invoices
36
37 You can view your payment history in the organization's settings, and download invoices for each payment.
38
39 To view your organization's billing history and invoices:
40
41 1. If you're in a different organization, [switch to the organization](../organizations/page.mdx#switch-organization).
42 2. Make sure you're on the projects overview page of the organization. You can do this by clicking on the organization name at the top left of the dashboard.
43 3. Click **Settings** > **Invoices** in the sidebar to open the organization's invoices history.
44
45 This will show a table of your upcoming payment, including your plan's amount and Flex Usage charges.
46
47 You can also see a table with all the payments made for your organization, including the date, status, and amount of each payment.
48
49 ### Download Invoice
50
51 An invoice is generated for every successful payment made for your organization. You can download the invoice as a PDF for your records. An invoice shows a request to pay for your organization's plan and any add-ons or Flex Usage charges.
52
53 To download an invoice for a specific payment:
54
55 1. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at the end of the row for the payment you want to download the invoice for.
56 2. Choose "Download invoice" from the dropdown.
57
58 This will open the invoice in a new tab, where you can view and download it as a PDF.
59
60 ### Download Receipt
61
62 A receipt is generated for every successful payment made for your organization. You can download the receipt as a PDF for your records. A receipt shows proof of payment for your organization's plan and any add-ons or Flex Usage charges.
63
64 To download a receipt for a specific payment:
65
66 1. Click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at the end of the row for the payment you want to download the receipt for.
67 2. Choose "Download receipt" from the dropdown.
68
69 This will open the receipt in a new tab, where you can view and download it as a PDF.
70
71 ---
72
73 ## Purchase Add-On Resources
74
75 Your organization can purchase additional resources beyond its plan's limits as add-ons. For example, you can purchase additional user seats or environments.
76
77 Add-ons are billed monthly in advance, and they are pro-rated based on the number of days remaining in the month when you purchase them.
78
79 For example, if you purchase a $10 Preview Environment halfway through the month, you'll be charged $5 (pro-rated) for usage in the previous billing cycle and $10 upfront for usage in the next.
80
81 ### How can I know if I'm being charged for an add-on?
82
83 When you're creating a resource that exceeds your plan's limits, such as a project or user seat, look for a note indicating that you'll be charged an additional amount for that resource.
84
85 For example, you may see a note saying "Inviting an additional member adds $X to your bill."
86
87 ### Where can I view my add-ons?
88
89 To view your organization's add-ons:
90
91 1. If you're in a different organization, [switch to the organization](../organizations/page.mdx#switch-organization).
92 2. Make sure you're on the projects overview page of the organization. You can do this by clicking on the organization name at the top left of the dashboard.
93 3. Click **Settings** > **Add-ons** in the sidebar to open the organization's add-ons settings.
94
95 This will show a list of all the add-ons that Cloud provides. For each add-on, you can see:
96
97 1. **Usage**: The number of resources you're currently using for that add-on with respect to your plan's limits.
98 2. **Add-ons**: The number of additional resources you've purchased for that add-on. For example, if your plan allows `5` user seats and you have `7` users, you've purchased `2` additional user seats as add-ons.
99 3. **Renewal charge**: The amount you'll be charged to renew your add-ons at the start of each billing cycle.
100 4. **Pending charge**: The amount you owe for add-ons added during the current billing cycle. For example, if you purchased an additional user seat halfway through the month, you'll see a pro-rated charge for that seat here.
101
102 ---
103
104 ## Set a Flex Budget Alert
105
106 You can set a spending threshold at which Medusa will send you an alert. This helps you monitor your Flex Usage costs before they grow unexpectedly. This budget alert amount applies to your Flex Usage only, and not to the usage already part of your plan.
107
108 To set a Flex Budget Alert:
109
110 1. If you're in a different organization, [switch to the organization](../organizations/page.mdx#switch-organization).
111 2. Make sure you're on the projects overview page of the organization. You can do this by clicking on the organization name at the top left of the dashboard.
112 3. Click **Settings** > **Billing** in the sidebar to open the organization's billing settings.
113 4. Scroll to the "Flex budget alert" section.
114 5. In the "Monthly flex budget" field, enter the monetary threshold at which you want to receive an alert. The value is in USD. Leave the field empty to remove any existing budget alert.
115 6. Click **Save Changes**.
116
117 Once set, you will receive an alert when your organization's Flex Usage charges reach the configured amount.
118
119 ---
120
121 ## Handle Unsuccessful Payments
122
123 If a payment for your organization's subscription fails, you'll receive a [notification](../notifications/page.mdx) in the Cloud dashboard.
124
125 The payment may fail for various reasons, such as insufficient funds, an expired card, or other issues with the payment method. Make sure to [update your payment method](./manage/page.mdx#manage-payment-methods) if needed.
126
127 If there are no issues with your payment method and the payment still fails, contact support for assistance.
128
129 ### Suspension Timeline
130
131 If an invoice remains unpaid, Cloud gradually suspends your organization's projects until you resolve the payment. Two steps happen after the invoice's due date:
132
133 1. **Soft-suspension**: Cloud suspends the organization. Your projects remain, but their backends stop running.
134 2. **Resource removal**: Cloud removes all of the organization's resources, including databases.
135
136 <Note type="warning">
137
138 Once Cloud removes your organization's resources, you can't recover them or their data, including databases. Resolve the unpaid invoice before the resource-removal date to avoid losing data.
139
140 </Note>
141
142 The number of days until each step happens depends on your organization's [plan](../pricing/page.mdx). The **Scale** plan adds a 7-day grace period to each step, and the **Enterprise** plan adds a 14-day grace period:
143
144 <Table>
145 <Table.Header>
146 <Table.Row>
147 <Table.HeaderCell>
148 Plan
149 </Table.HeaderCell>
150 <Table.HeaderCell>
151 Soft-Suspension
152 </Table.HeaderCell>
153 <Table.HeaderCell>
154 Resource Removal
155 </Table.HeaderCell>
156 </Table.Row>
157 </Table.Header>
158 <Table.Body>
159 <Table.Row>
160 <Table.Cell>
161 Develop and Launch
162 </Table.Cell>
163 <Table.Cell>
164 7 days after due date
165 </Table.Cell>
166 <Table.Cell>
167 14 days after due date
168 </Table.Cell>
169 </Table.Row>
170 <Table.Row>
171 <Table.Cell>
172 Scale
173 </Table.Cell>
174 <Table.Cell>
175 14 days after due date
176 </Table.Cell>
177 <Table.Cell>
178 21 days after due date
179 </Table.Cell>
180 </Table.Row>
181 <Table.Row>
182 <Table.Cell>
183 Enterprise
184 </Table.Cell>
185 <Table.Cell>
186 21 days after due date
187 </Table.Cell>
188 <Table.Cell>
189 28 days after due date
190 </Table.Cell>
191 </Table.Row>
192 </Table.Body>
193 </Table>
194
195 To restore a soft-suspended organization, pay the outstanding invoice. Once the payment succeeds, Cloud resumes your projects' backends.