You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/metering-and-billing/pricing-models.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,7 @@ Graduated pricing is a model where you charge each unit according to the tier it
115
115
116
116
For example:
117
117
118
+
<!--vale off-->
118
119
{% table %}
119
120
columns:
120
121
- title: First Unit
@@ -139,6 +140,7 @@ rows:
139
140
unit_price: $0.1
140
141
flat_price: $0
141
142
{% endtable %}
143
+
<!--vale on-->
142
144
143
145
In this example, a customer with 6,000 units would be charged as:
144
146
@@ -184,6 +186,7 @@ Volume pricing is a model where you charge customers based on the highest achiev
184
186
185
187
For example:
186
188
189
+
<!--vale off-->
187
190
{% table %}
188
191
columns:
189
192
- title: First Unit
@@ -208,6 +211,7 @@ rows:
208
211
unit_price: $0.1
209
212
flat_price: $0
210
213
{% endtable %}
214
+
<!--vale on-->
211
215
212
216
Based on this table, a customer with 6,000 units would reach the unit price tier of $0.1, so they would be charged:
213
217
@@ -254,6 +258,7 @@ For example, you could charge $500 for the first tier and $0.1 per unit for the
254
258
255
259
This is useful to define overage charges or to bill a flat fee regardless of usage.
256
260
261
+
<!--vale off-->
257
262
{% table %}
258
263
columns:
259
264
- title: First Unit
@@ -274,6 +279,7 @@ rows:
274
279
unit_price: $0.1
275
280
flat_price: $0
276
281
{% endtable %}
282
+
<!--vale on-->
277
283
278
284
Based on this table, a customer that uses 2,000 units would be charged as:
279
285
@@ -286,6 +292,7 @@ For example, if you have a flat fee of $500 in the first tier, the total amount
286
292
287
293
To bill $0 when there's no usage, set the unit price for the first tier and omit the flat price. Let's use the previous example, but this time set a $500 flat fee for the first tier and $0.1 per unit for the rest:
288
294
295
+
<!--vale off-->
289
296
{% table %}
290
297
columns:
291
298
- title: First Unit
@@ -310,6 +317,7 @@ rows:
310
317
unit_price: $0.1
311
318
flat_price: $0
312
319
{% endtable %}
320
+
<!--vale on-->
313
321
314
322
In this example, if a customer uses 2,000 units, they will be charged as:
315
323
@@ -345,6 +353,7 @@ Package pricing is particularly effective for:
345
353
346
354
Let's look at examples with a package size of 20 units and a price of $10 per package:
347
355
356
+
<!--vale off-->
348
357
{% table %}
349
358
columns:
350
359
- title: Usage
@@ -373,6 +382,7 @@ rows:
373
382
total_price: $50
374
383
explanation: Usage requires 5 full packages
375
384
{% endtable %}
385
+
<!--vale on-->
376
386
377
387
Any usage of a positive value will be rounded up to the next closest package, while zero usage won't generate any charge.
378
388
If you want zero usage to charge customers, combine package pricing with minimum commitments.
@@ -465,6 +475,7 @@ The default markup rate is 1.
465
475
466
476
Let's look at examples with a base price of $100, and what happens at each rate:
0 commit comments