ProviderCosts
Per-customer margin report (operator only)
Changed onRated usage revenue vs stamped provider COGS for a window (ADR-079). A usage unit-economics view — base fees, credits, and taxes are not included. Per-model margin renders only where pricing rules pin the model; other revenue is reported unattributed, never allocated by heuristic.
get/v1/customers/{id}/margin
Request
- Base URL: http://localhost:8080
- URL: http://localhost:8080/v1/customers/{id}/margin
- Auth: HTTP bearer
Path parameters
idstring required
Query parameters
fromstring date-time
tostring date-time
Response
Margin report
Changes
- info
endpoint added
- info