/v1/accounting/dealsList deals in the ledger
One page of the commission ledger: per funded deal, the agreed economics (funded amount, commission, PSF) beside the rollup — what has actually been paid against it, what is still owed, costs, open clawback, how long it has been aging and whether it is past its SLA. Filters: ?facilityId=, ?lenderId=, ?status=, ?reference=, ?onHold=, ?pastSla=, ?from= / ?to= on the deal date, ?limit=. Narrowing by a rep or a team lead is not here — a participant is a stake, so ask get_accounting_deal-splits with ?crmUserId=. For ONE deal with its stakes, costs, allocations and payouts in a single read, get_accounting_deals_id_detail. Answered in the CALLER's view, named in view: books (an admin or an accounting grant) is the whole agreement; own and team are a participant's — only deals they hold a stake on or are assigned to, with the house's side (commissionMinor, psfMinor, the rollup, costs, notes) left at zero and mine carrying their own stake's totals (a team lead's includes the reps they lead). A deal outside that reach is a not-found. This is the commission ledger — only deals booked into accounting, with their commissions, payouts and what was collected. How many deals funded and for how much, by lender, stage or period, is the deals page's ONE read: get_definitions_key_aggregates on deals with groupBy=Lender and calculate=Funded:sum, narrowed by the Funded Date column. Use ?page=1&limit=200 for a bounded numbered page with items, nextCursor, and the exact filtered total. page cannot be combined with cursor. ?paidOut=false excludes paid-out rows before paging; ?search= is a case-insensitive literal reference substring; repeated ?statuses= selects multiple status words. Page rows and count share a read snapshot. Alternatively ?paged=true&cursor= retains keyset traversal without a total. Bare calls retain the legacy bounded array.
Access class: workspace.
Send request
Use the documented inputs to call this endpoint directly.
Parameters
Values are applied to the request and the example on the right.
"cancelled" · "collected" · "defaulted" · "open" · "paid_out" · "written_off"
Responses
the action's answer
{
"data": [
{
"clawbackAmountMinor": 1.5,
"clawbackWindowDays": 1.5,
"commissionMinor": 1.5,
"createdAt": "string",
"currency": "string",
"dealDate": "string",
"defaultAmountMinor": 1.5,
"defaultedInWindow": true,
"detail": {},
"facilityId": 1.5,
"fundedAmountMinor": 1.5,
"grossRevenueMinor": 1.5,
"holdReason": "string",
"holdState": "string",
"id": 1.5,
"notes": "string",
"psfMinor": 1.5,
"reference": "string",
"rollup": {
"agingDays": 1.5,
"clawbackOpenMinor": 1.5,
"clawbackRecoveredMinor": 1.5,
"collectedMinor": 1.5,
"commissionCollectedMinor": 1.5,
"costsMinor": 1.5,
"outstandingMinor": 1.5,
"pastSla": true,
"psfCollectedMinor": 1.5
},
"slaDays": 1.5,
"status": "string",
"updatedAt": "string",
"view": "string"
}
]
}Array by default; with paged=true or a cursor, an object containing items and nextCursor.
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}