Top categories and vendors by cash outflow
GET
/api/v1/businesses/{business_id}/cash-flow-statement/outflow-breakdown
Returns the top N ledger categories and counterparties that powered cash outflows during the requested period, ranked by absolute cash leaving. Powers the 'Where the cash went' tile on /books/cash-flow.
Authentication
Bearer token authentication. Pass your DayZero API token in the
Authorization header and the
target business UUID in
x-business-id.
Parameters
Path
-
business_idstring required
Query
-
start_datestring · date required -
Start date (YYYY-MM-DD)
-
end_datestring · date required -
End date (YYYY-MM-DD)
-
limitinteger default:5 -
Max rows per list (categories and vendors are returned separately)
Responses
400 Bad Request - Invalid input
401 Unauthorized - Authentication required
403 Forbidden - Insufficient permissions
404 Not Found - Resource does not exist
422 Validation Error
Schema: HTTPValidationError
-
detailarray · ValidationError ValidationError -
5 fields
-
locarray · string | integer required -
msgstring required -
typestring required -
inputobject -
ctxobject
-