AC
Aigarth Tracker
All phases
04

Billing

Subscriptions, usage billing, invoices, payments, credits.

Progress
100%
Tasks done
12 / 12
0 remaining
Owner
Billing lead
Status: complete
Tasks
Kanban for this phase. Move tasks between columns to update status.
Backlog
0
To do
0
In progress
0
In review
0
Done
12
Billing service scaffold (Fastify + Drizzle + node-postgres + JWT, port 7005)
p0
Eng lead + AI agents1 SP
Billing schema (9 tables: plans, subscriptions, invoices, invoice_items, payments, credits, coupons, coupon_redemptions, audit log)
p0
Eng lead + AI agents3 SP
Plan catalog + seed (4 plans, upsert-aware)
p0
Eng lead + AI agents1 SP
Subscriptions service (subscribe, change, cancel-at-end, cancel-immediately)
p0
Eng lead + AI agents2 SP
Invoices service (preview + generate) with Stripe-style credit model
p0
Eng lead + AI agents2.5 SP
Payments service (Qubic treasury, credits debit, stub fiat)
p0
Eng lead + AI agents2 SP
Credits + coupons service (grant, redeem, validate)
p0
Eng lead + AI agents1.5 SP
Cross-service usage aggregation (/v1/billing/usage)
p0
Eng lead + AI agents1.5 SP
21 endpoints across plans, subscriptions, invoices, payments, credits, coupons, billing
p0
Eng lead + AI agents2 SP
E2E test: 11 sections, all green (after credit-model re-design)
p0
Eng lead + AI agents3 SP
Audit log (billing_audit_logs, free-form action text)
p1
Eng lead + AI agents0.5 SP
Phase 4 delivery report with time-to-ship metrics
p0
Eng lead + AI agents2 SP