DevelopersAPIReferencedata
ProfitLossData
Use this when the user asks for a P&L statement (revenue, costs, gross/operating/net profit) for a period. Requires permissions: financials:read.
Authentication
Checking whether you're signed in…
POST
header
Authorization<token>A SaaSFlow API key (format sf_…) or an OAuth bearer token. Paste only the key — the proxy adds the Bearer prefix. Create an API key in Settings → Company settings → API keys — see API keys.
companyId*stringFormat
uuidapplication/json- body
startDate*stringMatch
^\d{4}-\d{2}-\d{2}endDate*stringMatch
^\d{4}-\d{2}-\d{2}profitLossData result
application/json- response
plTypes*unassigned*currencyChangeEffect*curl -X POST 'https://api.saasflow.com/companies/497f6eca-6276-4993-bfeb-53cbbbba6f08/data/profitLossData' \ -H 'Content-Type: application/json' \ -d '{ "startDate": "string", "endDate": "string"}'Example Response
{ "plTypes": { "property1": { "categories": { "property1": { "property1": 0, "property2": 0 }, "property2": { "property1": 0, "property2": 0 } } }, "property2": { "categories": { "property1": { "property1": 0, "property2": 0 }, "property2": { "property1": 0, "property2": 0 } } } }, "unassigned": { "property1": 0, "property2": 0 }, "currencyChangeEffect": { "property1": 0, "property2": 0 }}CashFlowByCategory
Use this when the user asks which categories drive cash inflows or outflows in a period. Requires permissions: transactions:read.
PeriodDetails
Use this when the user asks for the detailed breakdown of a single period (transactions, categorizations, totals). Requires permissions: transactions:read.