Get storefront margin (P&L) reporting
The curator’s resale P&L from the spread ledger: booked vs realized buy/sell/spread and margin %, rolled up buyer → media buy → package → source leg. Sourced from the storefront spread ledger (not BigQuery delivery); amounts are signed and never summed across settlement currencies. Cumulative as-of snapshot — there is no per-day timeseries.
Authorizations
API key or access token
Query Parameters
Narrow to the buy legs sourced from a single inventory source (storefront_spread_ledger.source_id). When omitted, includes every source on the storefront.
Narrow to a single buyer customer. Can only narrow within the calling storefront — it never widens scope.
x <= 9007199254740991Response
Get storefront margin (P&L) reporting
Hierarchical storefront margin (P&L) response: buyer → media buy → package → source leg
Buyer-level P&L data
Aggregated totals, one entry per settlement currency (amounts are never summed across currencies)
As-of start: earliest booked_at of the included edges (YYYY-MM-DD), null when empty
^\d{4}-\d{2}-\d{2}$As-of end: latest realized_through (or booked_at) of the included edges (YYYY-MM-DD), null when empty
^\d{4}-\d{2}-\d{2}$