Loan aggregation summary
get loan aggregation summary get /selling/api/loans/aggregation retrieve aggregated loan counts and amounts grouped by loan type and sale status for a specific mpl useful for dashboards and high level reporting query parameters parameter type required description mpl string yes mpl id type string no filter by loan type hfs, lthfs, or ret fundeddate date no filter by exact funded date (yyyy mm dd) fromfundeddate date no filter loans funded after this date (yyyy mm dd) tofundeddate date no filter loans funded before this date (yyyy mm dd) purchasedate date no filter by exact purchase date (yyyy mm dd) frompurchasedate date no filter loans with purchase date after this date (yyyy mm dd) topurchasedate date no filter loans with purchase date before this date (yyyy mm dd) fromoriginalpurchasedate date no filter by original purchase date range start (yyyy mm dd) tooriginalpurchasedate date no filter by original purchase date range end (yyyy mm dd) fromseasoningstartdate date no filter by seasoning start date range start (yyyy mm dd) toseasoningstartdate date no filter by seasoning start date range end (yyyy mm dd) frompurchasedat date no filter by purchased timestamp range start (yyyy mm dd) topurchasedat date no filter by purchased timestamp range end (yyyy mm dd) response 200 ok returns aggregated data grouped by loan type and status total loan count per category total loan amounts per category breakdown by sale status ( pending , inseasoning , readyforpurchase , purchased , etc ) example request get /selling/api/loans/aggregation?mpl=abc\&type=hfs\&fromfundeddate=2026 07 01\&tofundeddate=2026 07 31 use cases dashboard widgets display loan portfolio summaries weekly reporting generate reports on loans funded or purchased in a date range pipeline monitoring track how many loans are in each stage mpl portfolio overview view all loan activity for a specific mpl