Get pending earnings breakdown
Per-donation attribution of the creator's not-yet-available money, lazy-loaded by the Earnings tab's Pending-tile dialog (#1131). Ledger-only — a single SQL query, zero Stripe round-trips. The target is always the authenticated principal. Each donation is classified into one of three states that mirror the admin grid's evidence model: destination_charge_pending (Stripe holds it for this creator, card settlement pending), platform_held_unsettled (platform balance, awaiting settlement), or platform_held_settled (platform balance, eligible for release now). Rows already transferred to the creator's Stripe balance, settled destination charges, and anomaly rows are excluded. Rate limited per authenticated user.
Authorizations
Authentication is handled automatically via httpOnly session cookies after signing in at /cognito/signin or via Google SSO at /cognito/oauth/google. For Swagger UI testing, paste a JWT token from the /cognito/signin response.
Responses
Pending breakdown (all amounts in cents)