DevelopersAPIReferencedata
RevenueExpenses
Authentication
You're not signed in. Either sign in at app.saasflow.com and reload (then pick sessionCookie), or paste a SaaSFlow
sf_… API key in the bearerAuth field below.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.
In: header
Path Parameters
companyId*string
Length
1 <= lengthRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.saasflow.com/companies/string/data/revenueExpenses" \ -H "Content-Type: application/json" \ -d '{ "startDate": "string", "endDate": "string" }'{
"kpis": {
"revenue": 0,
"revenuePreviousPeriod": 0,
"revenueChange": 0,
"expenses": 0,
"expensesPreviousPeriod": 0,
"expensesChange": 0,
"nonOperating": 0,
"nonOperatingPreviousPeriod": 0,
"nonOperatingChange": 0,
"uncategorized": 0,
"uncategorizedPreviousPeriod": 0,
"uncategorizedChange": 0,
"profit": 0,
"profitPreviousPeriod": 0,
"profitChange": 0,
"plainProfit": 0,
"plainProfitPreviousPeriod": 0,
"plainProfitChange": 0
},
"monthly": [
{
"month": "string",
"revenue": 0,
"cogs": 0,
"cac": 0,
"pd": 0,
"ga": 0,
"nonOperating": 0,
"uncategorized": 0
}
]
}nullnull