Functional contract

SaaS billing

Organization plan subscriptions, usage credits, platform invoices, and Stripe PaymentIntents — TaskPaws charging the clinic. Not clinic AR / patient invoices — see Billing and finance. Seller of record: Version Dos LLC, DBA TaskPaws.

Shipped 3 Nov 2026

Pricing and renewals

Trial and testing credits

Credits lifecycle

EventLedger reason
Signuptesting_signup (+500)
Subscribewipe_on_subscribe, then plan_cycle
Monthly renewplan_cycle
Location change mid-cycleproration (+/−)
Plan upgradeplan_change
Auto-recharge / credit packauto_recharge / purchase
Usage fee (invoice / deposit issue)usage_fee
Refund / dispute / dispute wonclawback_refund / clawback_dispute / restore_dispute
SuperUser adjustmentadmin_adjustment (+/−)

Platform fee (usage credits)

Credits are spent when a clinic collection document is issued (invoice, deposit payment receipt), not on tender success. A later failed payment does not refund credits; retries of the same document do not spend twice.

Org mode (charge_platform_fee_to_clients)Client-visible Platform feeCredit rate
Charge clientsLine on the issued doc: 1% of the pre-fee collectable amount, taxed with the Location's platform_fee_tax_group at the rates effective at that Location1% of (pre-fee + fee taxes)
Absorb (default)No line0.89% of the pre-fee amount

credits = ceil(base_cents × rate). Unlimited accounts skip spend. Insufficient balance after auto-reload blocks issue. Settings → Hierarchy holds the org toggle and per-Location tax group (required when charging; only tax groups available at that Location — Organization, its Location group, or its own). Platform fee lines cannot be credited on credit notes; document void does not restore credits.

Plan upgrades and downgrades

Direction via Billing::PlanRank (price, then credits / position). Same plan is a no-op.

ChangeWhenBehavior
UpgradeImmediateProrated PaymentIntent (plan_change); credits adjust by the prorated delta; plan switches now; billing day and period unchanged; invoice PDF + email
DowngradeNext renewalRejected while over target caps (locations, staff, clients). Otherwise pending_plan_id / pending_plan_scheduled_on; applied by Billing::PendingPlanApplier before the renewal charge

Other lifecycle

UI

Out of scope: clinic Connect payouts, annual plans, Stripe Tax, Customer Portal. Full contract: docs/functional/saas-billing.md.