wulf-pulse/app/api/pax8/companies
lorentz 2cc1abbf9a feat(14-01): add PAX8 company drill-down route with cost breakdown
- GET /api/pax8/companies/[id] with requireAuth gate (D-07), UUID validation, 404 on missing
- Per-subscription latest-billed cost via DISTINCT ON windowed query (Pitfall 2)
- Uses line_total not unit_price*quantity (Pitfall 3); fallback label chain (Pitfall 4)
- Surfaces tombstoned-subscription order-item rows with no matching subscription
2026-07-11 14:28:14 -04:00
..
[id] feat(14-01): add PAX8 company drill-down route with cost breakdown 2026-07-11 14:28:14 -04:00
route.ts feat(14-01): add paginated PAX8 companies list route 2026-07-11 14:28:11 -04:00