Research
Should Totlob charge per order?
If a shop takes a lot of orders, why should its subscription stay the same? This page looks at what an order really costs Totlob, how other platforms make busy shops pay more, and what a per-order fee would do to real shops.
Short answer
Don't charge a fee on every order. An order costs Totlob a few kilobytes of storage, so volume isn't where the cost is. Most platforms capture volume through locations, registers or plan limits, and the ones that charge per transaction do it because they process the card payment, which Totlob doesn't. Give each plan a generous monthly order allowance and move high-volume shops up a plan instead.
Citations [n] refer to the sources list in the pricing report.
What one order costs Totlob
Measured
A real till sale was measured in the local demo database. It was made by the screenshot runs against the latest origin/master code. The basket had 3 items: a coffee with 2 modifiers, a pastry and two jars, with an automatic discount on each line, paid in cash, with a customer attached.
| Table | Rows per order | Bytes per order |
|---|---|---|
orders | 1 | 288 |
order_line_item | 3 | 587 |
order_line_item_modifier | 2 | 128 |
order_line_discount | 3 | 208 |
order_discount_application | 1 | 112 |
order_transaction | 1 | 116 |
order_payment | 1 | 80 |
inventory_adjustment | 2 | 160 |
| Total measured | 14 | ≈1.7 KB |
Method: pg_column_size of every row linked to the 6 till orders in the demo database, divided by 6.
Not measured (estimates)
- Accounting journal. The demo shop has no ledger set up, so no journal entries were written. A real shop also gets a sale entry and a payment entry, roughly 2 entries and 8 lines. Estimate: +1 KB.
- Indexes and search projection. Postgres indexes typically add as much again as the row data. Estimate: ×2.
Working estimate: about 5–6 KB per typical order, growing by roughly 0.5 KB for each extra line.
What that means for a busy shop
| Shop | Orders per month | New data per month | New data per year |
|---|---|---|---|
| Small shop | 1,500 | ≈9 MB | ≈0.1 GB |
| Bookshop (fewer, larger sales) | 2,000 | ≈12 MB | ≈0.15 GB |
| Busy café (300 a day) | 9,000 | ≈54 MB | ≈0.65 GB |
| Five-branch chain | 40,000 | ≈240 MB | ≈2.9 GB |
At 6 KB per order. Each order is also a few milliseconds of server and database work.
Volume isn't where Totlob's costs are. Even the chain adds under 3 GB of data a year. The real costs are fixed: servers, the database plan, third-party services, and above all support and onboarding time. Database cost as orders grow turns this into dollars.
Database cost as orders grow
Production Postgres runs on Stackhero's 10 GB plan ($19/mo max, 1 vCPU, 2 GB RAM), a Heroku add-on billed by the hour. Stackhero sells larger plans in fixed steps, so the database bill rises in steps as orders build up. Orders are kept forever, because the accounts and reports depend on them.
Assumptions:
- 6 KB per order (measured plus estimates). A cautious 10 KB case is shown too.
- 1 GB starting database before any orders: catalogue, customers and search index. This is an assumption; it hasn't been measured on production yet.
- Disk kept at most 75% full. Postgres needs free space for cleanup and temporary work.
Orders each plan holds
Orders a plan holds = (plan size × 75% − 1 GB) ÷ size per order.
| Stackhero plan | Max per month | Orders it holds at 6 KB | at 10 KB |
|---|---|---|---|
| 10 GB (current) | $19 | ≈1.1M | ≈650k |
| 20 GB | $29 | ≈2.3M | ≈1.4M |
| 50 GB | $59 | ≈6.1M | ≈3.7M |
| 100 GB | $99 | ≈12M | ≈7.4M |
| 200 GB | $199 | ≈25M | ≈15M |
| 400 GB | $399 | ≈50M | ≈30M |
| 800 GB | $799 | ≈100M | ≈60M |
| 1,600 GB | $1,599 | ≈200M | ≈120M |
| 2,400 GB | $2,399 | ≈300M | ≈180M |
Over time
The plan needed after each year, at 6 KB per order. "Shops" assumes about 3,000 orders per shop per month.
| Orders per month (all shops) | ≈ Shops | After year 1 | After year 2 | After year 3 |
|---|---|---|---|---|
| 10,000 | 3 | 10 GB · $19 | 10 GB · $19 | 10 GB · $19 |
| 50,000 | 17 | 10 GB · $19 | 20 GB · $29 | 20 GB · $29 |
| 100,000 | 33 | 20 GB · $29 | 50 GB · $59 | 50 GB · $59 |
| 250,000 | 83 | 50 GB · $59 | 50 GB · $59 | 100 GB · $99 |
| 500,000 | 167 | 50 GB · $59 | 100 GB · $99 | 200 GB · $199 |
| 1,000,000 | 333 | 100 GB · $99 | 200 GB · $199 | 400 GB · $399 |
What it means per shop
- Storing 1,000 orders costs well under one cent a month. 1,000 orders ≈ 6 MB, and on the larger plans Stackhero works out to roughly $1 per GB per month. Kept for 3 years, that's about $0.20 in total.
- About $1.20 per shop per month at scale. 333 shops after 3 years need the 400 GB plan at $399/mo. Against proposed plans of $25–89, that's 2–5% of revenue.
- The current 10 GB plan lasts years for the first few dozen shops.
CPU and memory will run out before disk does
The 10 GB plan has 1 vCPU and 2 GB RAM. With many shops selling at the same time, processing power and memory are the likely bottleneck, not storage. Upgrading for speed follows the same price ladder. Watch:
- CPU at peak hours (lunch rush, evenings)
- Slow queries, especially reports and product search over large catalogues
- Memory, which limits how much of the catalogue and indexes stay cached
The add-on page doesn't list CPU or RAM for the larger plans; check before relying on an upgrade for speed.
How other platforms make busy shops pay more
Almost no POS platform charges a software fee per order. They use one of four approaches:
| Approach | Who | How it captures volume |
|---|---|---|
| Charge for things that grow with the business | Square [29], Shopify POS Pro [31], Lightspeed [32], Rewaa [41], Toast [36], Zoho POS [52] | Busy shops open more branches, add registers and hire staff, so they pay for more locations, registers or seats |
| Order limits per plan | Zoho Inventory: 500 orders/mo on Standard [49]. Zoho POS free plan: 50 transactions [52] | No fee per order. Outgrowing the limit means upgrading the plan |
| A cut of card payments | Square 2.4–2.6% + 15¢ [29]. Clover 2.6% + 10¢ [38]. Shopify +0.6–2% with third-party payment providers [30]. Toast processing [36] | The platform processes the card payment and takes a margin. It scales with sales, but only on card payments |
| Custom quote for the largest merchants | Almost all (Pro or Enterprise tiers) | Large chains negotiate |
The per-transaction fees in the third row exist because those companies are the payment processor. Square and Toast require their own processing even on $0 plans [29][36], so the processing margin is what pays for the free software. They don't charge per order for using the POS.
What a per-order fee would do to real shops
Monthly cost under a flat per-order fee versus Totlob's proposed plans:
| Shop | Orders/month | $0.01 per order | $0.02 per order | Proposed plan |
|---|---|---|---|---|
| Small shop | 1,500 | $15 | $30 | Essentials $25 |
| Bookshop (avg. sale ≈$25) | 2,000 | $20 | $40 | Essentials $25 |
| Busy café (avg. sale ≈$4) | 9,000 | $90 | $180 | Growth $49 (over the Essentials allowance) |
| Five-branch chain | 40,000 | $400 | $800 | Pro + 3 locations $134 |
Average sale values are illustrative.
Problems with charging per order:
- It punishes cafés. The café and the bookshop make similar revenue (≈$36k vs ≈$50k a month), but the café pays 4.5× more, only because its sales are small. Under the proposal the café pays $49 on Growth. At $0.02 per order it would pay $180, more than double the Pro plan.
- The bill becomes unpredictable. It changes every month with sales. Lebanese merchants mostly pay by transfer, cash or wallet rather than card auto-billing, which favours a fixed annual or quarterly invoice (pricing report §3).
- It taxes cash. The dollarised cash economy was 45.7% of GDP in 2022 [22]. Totlob doesn't touch that money, so a fee on cash orders feels like a cut of revenue with nothing in return.
- Card sales already cost about 2%. Lebanese banks charge about 2% per local card transaction plus a terminal fee [55]. A Totlob fee on top makes card sales more expensive still.
- It's harder to sell and to bill. "$25 a month" is one sentence. A per-order price needs counting, monthly variable invoices and disputes about what counts as an order (refunds? voids? test sales?).
Recommendation: flat plans with an order allowance
Keep the proposed plans flat. Give each one a monthly order allowance that covers normal use with room to spare:
| Plan | Price | Orders included per month | Above the allowance |
|---|---|---|---|
| Free | $0 | 300 | Prompt to upgrade to Essentials |
| Essentials | $25 | 5,000 | Prompt to upgrade to Growth |
| Growth | $49 | 20,000 | Prompt to upgrade to Pro |
| Pro | $89 | Unlimited (fair use) | – |
| Enterprise | Quote | Custom | Custom |
The allowance numbers are placeholders. They're set so a busy single café (≈9,000 orders) is on Growth and a typical small shop never notices the limit. Revisit them once the infrastructure study gives a real cost per order.
Rules that keep it fair
- Never block the till. Going over the allowance must never stop a sale. Note this in the plan terms, show a notice in the dashboard, and contact the merchant.
- Two months over before asking to upgrade. One busy month (Ramadan, back-to-school) shouldn't force a plan change.
- Count completed orders only. Exclude cancelled orders, refunds, voids and test orders.
- Count all channels together. POS, online and manual orders all count towards one allowance per shop.
- Enterprise for the largest merchants, with a negotiated price instead of an ever-higher tier.
What it takes to build
- Counting: orders per shop per calendar month. The
orderstable already has an index on(shop_id, is_deleted, created_at), so the count is cheap. - Entitlement: an
orders_per_monthfeature on each plan, in thefeature/plan_featuretables the pricing report proposes for plan limits (§5). - UI: usage against the allowance on the dashboard's billing page, and an alert strip when a shop is near or over it.
When a per-transaction fee does make sense
If Totlob starts processing payments itself, for example a Whish or card-acquiring integration where the money passes through Totlob, a small percentage on those payments becomes normal, as with Square, Foodics Pay or Rewaa Pay [29][39][41]. That would be:
- an optional payments product, next to the subscription
- charged only on payments Totlob processes, never on cash
- priced against the bank's ≈2% card fee [55], so it has to be cheaper or more convenient to win
Open questions
- Real starting database size. One read-only query on production (
SELECT pg_size_pretty(pg_database_size(current_database()))) replaces the 1 GB assumption in the database cost estimate. - Everything besides the database. Heroku dynos, Redis, search, media and email still need costing. That waits on the infrastructure study, which reads the actual Heroku plans.
- Real order volumes. The Circle's actual monthly orders per branch would set the allowances properly. They can be counted from production with a read-only query.
- Journal size per order. Measure it on a shop with the ledger set up, to replace the +1 KB estimate.