billing

Comprehensive guidance for billing, invoicing, and payments in the Mossback platform. Covers plans, pricing, subscriptions, usage metering, invoices, invoice lines, credits, refunds, proration, tax, c

SKILL.md

GitHub

Billing

Rules

  • Money is integer minor units with a currency code. Never a float.
  • Invoice amounts are computed in src/billing/invoice.ts only.
  • Provider webhooks are idempotent on the provider's event id, stored in billing_events.
  • A price change applies from the customer's next billing period, never mid-period.