List dashboard summaries
Lists dashboard summaries the caller can see. Results are filtered by the caller's accessible organizations; many routes paginate via page and limit.
Scope: invoices:read
Endpoint: GET /api/dashboard
Example request
curl "https://guliel.com/api/dashboard?organizationId=value" \
-H "Authorization: Bearer $GULIEL_API_KEY"Query parameters
organizationIdreqstringyearreqinteger
Response (200/201)
totalInvoicesreqintegertotalRevenuereqnumberoutstandingAmountreqnumberpendingAmountreqnumberinvoicesByStatusreqobjectPer-status counts of the org's invoices for the requested year.draftreqintegerunsentreqintegersentreqintegerpaidreqinteger
revenueByMonthreqarray<object>monthreqstringrevenuereqnumbersentreqnumberdraftreqnumber
revenueByCustomerreqarray<object>Top customers by revenue, sorted descending. Currency-converted to `displayCurrency`.namereqstringrevenuereqnumber
growthreqnumberYoY revenue growth percentage.displayCurrencyreqstringCurrency that all monetary fields are converted to (the organization's primary currency).exchangeRateDatereqstringDate of the FX-rate snapshot used for conversions.pendingPaymentsListreqarray<object>Open invoices awaiting payment, sorted by due date.expenseTotalreqnumberexpensesByMonthreqarray<object>expensesByVendorreqarray<object>paidInvoicesCountreqintegerapprovedExpensesCountreqintegerexpenseGrowthreqnumbernetTotalreqnumberRevenue minus expenses, in displayCurrency.netGrowthreqnumbermarginPercentreqnumberpendingExpensesTotalreqnumberpendingExpensesCountreqintegerpendingExpensesGrowthreqnumbercashFlowByMonthreqarray<object>lowStockItemsCountreqintegeractiveItemsCountreqinteger_diagnosticsarray<string>Only present for SYSTEM_ADMIN callers — surfaces errors that were caught and logged but didn't abort the response.
Error responses
400 | Validation |
401 | Unauthenticated |
403 | Forbidden |
500 | Internal |