Seventy domains,one clean API.
Every subsystem billing needs, built for the failure mode that costs a team real money. Composable behind a single, versioned interface.
Subscriptions that bend, not break
Flat, tiered, volume, and stair-step pricing on one model. Upgrade, downgrade, pause, and resume mid-cycle with proration that reconciles.
- Mid-cycle proration
- Scheduled plan changes
- Trials, pause, resume
- Cancel at period end
subscription.update()proration: credit + debiteffective: now | period_end→ invoice.draft
Meter anything, rate it right
Ingest raw events over the API, deduped on an idempotency key. Aggregate by sum, max, or unique count inside a locked period, then rate into invoices.
- Sum / max / unique
- Period locking
- Idempotent ingest
- Backfill safe
POST /api/v1/usage{ customer_id, records: [{ price_id, quantity, action }] }→ 201 deduped · period-locked→ usage.recorded
The books never drift
Every cent is a double-entry journal in minor units, so debits equal credits on every write. Settlements reconcile against the processor one to one.
- Double-entry journals
- Minor-unit math only
- Reconcile 1:1
- Deferred + recognized revenue
journal: DR cash / CR ARreconcile == gatewayrecognize revenue→ ledger.posted
Route to any processor
The entire payment edge sits behind adapters. Pick a gateway per tenant. Charge, clear 3DS, retry soft declines, normalize webhooks.
- Gateway-agnostic adapters
- Per-tenant gateway
- 3DS + soft-decline retries
- Normalized webhooks
gateway → stripe | adyen | braintree | gopaycharge · 3ds · retrywebhook → normalized→ payment.succeeded
Schedule and settle
Scheduled payouts, gateway-neutral. Hold, release, and reverse with the same ledger discipline as inbound money.
- Payout destinations
- Scheduled payouts
- Holds + releases
- Sanctions screening
payout.create(destination)hold → releasescreen → clear→ payout.paid
Recover revenue quietly
Configurable retry schedules, fixed or exponential, with a past-due state machine that stops charging when it should. Test and live never mix.
- Retry schedules
- Fixed or exponential
- Past-due state machine
- is_test respected
retry: fixed | exponentialper-strategy schedulepast_due → canceled→ recovered | churned