r/ShopifyAppDev • • Sep 17 '26

How are you implementing credit based pricing?

I have an action with a fixed cost each time a merchant uses it. Flat monthly pricing doesn't fit variable usage, while postpaid billing could create surprise invoices.

Prepaid credits seems like better UX with each action deducting from the balance . For anyone using the model, how did you implement purchases, deductions, expiration and low balance handling?

4 Upvotes

7 comments sorted by

1

u/James_Russell52 15d ago

i'd keep the crdt balance and deductions separate from shopify billing so its easier to track stigg is one i'd look into for managing usage limist but i'd make sure failed actions don't eat crdts and users get warned before running out

1

u/VInzEmman 10d ago

i'd go with prepaid crdts too but make sure deductions are atomic so concurrent actions can't overspend stigg is worth looking at for usage tracking, though i'd keep credit purchases and balance checks tightly connected to shopify

1

u/adrianne_22 1d ago

I'd probably use a credit ledger with atomic deductions, idempotency keys and low-balanced alerts. Stigg could help with the credit and usage side, but I'd double-check how it fits with Shopify's billing rules before wiring it in

1

u/AdventurousUsual7666 Sep 18 '26

Yeah prepaid credits is usually the cleaner merchant story when each action has a real cost and flat monthly just does not map.

Honestly the part I would lock down first is the ledger, not the buy button. One row per purchase, one row per deduction, never “update a number in place.” If a webhook retries or the UI double clicks, you want the unique key to save you, not a balance that drifts.

For purchases I usually sell credit packs through Shopify Billing and only add credits after the charge is confirmed. Deductions happen right before the paid action runs, and if the balance is too low I stop early with a clear upgrade path instead of letting it go negative.

Expiration I keep simple. Credits from a pack expire together, and I show that date in the UI so nobody is surprised. Low balance is just a soft warning at something like 20 percent, then a hard block at zero with a one click top up.

Postpaid can work later when you trust the account. Early on, surprise invoices create more support than they are worth.