subincサブインク
Connecting gateway01 / 04
Loading ledger0%
subinc
The platform

Seventy domains,one clean API.

70
bounded domains

Every subsystem billing needs, built for the failure mode that costs a team real money. Composable behind a single, versioned interface.

01 / Billing

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 + debit
effective: now | period_end
→ invoice.draft
02 / Metering

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
03 / Ledger

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 AR
reconcile == gateway
recognize revenue
→ ledger.posted
04 / Payments

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 | gopay
charge · 3ds · retry
webhook → normalized
→ payment.succeeded
05 / Payouts

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 → release
screen → clear
→ payout.paid
06 / Dunning

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 | exponential
per-strategy schedule
past_due → canceled
→ recovered | churned

Wire one gateway. Go live when it reconciles.

Start building