Back to work

Product · Amazon P&L analytics

Ledgerline

EZCLOUD

Stack
  • Next.js
  • React
  • TypeScript
  • TanStack Table
  • Recharts
  • Python
  • Django

Ledgerline turns raw Amazon sales, fees, ad spend and returns into a real P&L. Buyers, team managers and admins each see the part they own.

The Challenge

Amazon reports revenue, not profit. Fees, ads and returns land days later, in different time zones and currencies. The numbers had to be right over 100,000+ orders, and the tables fast enough to work in every day.

The Approach

  • P&L math (fees, COGS, ads, returns, tax, ACoS, TACoS) lives in one pure domain package shared by server and client, so every screen computes margin the same way.
  • Built for scale from day one: virtualized tables and cursor pagination keep 100,000+ orders smooth to scroll, filter and export.
  • SP-API and Advertising API connected via OAuth across 22 marketplaces, with automatic token rotation and expiry alerts.
  • Imports map columns and log errors per row, then retry only the failed rows. Exports run in a background queue with live progress.
  • Alerts on price, Buy Box, rank, stock and returns, delivered over WebSocket, push and Slack.
  • Built on the shared EZCLOUD design system.

The Outcome

$10M+

GMV across 30 seller accounts

100k+

orders, filtered and exported without a stall

Dashboard: sales, net profit, margin and TACoS against the previous period
Products: 58 metrics per item, column presets and inline cost editing
Settlements: every payout reconciled against sales, fees and refunds