Read the dashboard summary
Any signed in user. Returns today’s sales, revenue, and VAT with stock and expiry counts. An empty branch_id rolls every figure up across all branches, and the trend compares today against yesterday.
GET
/api/v1/dashboard/summaryAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
branch_idstringScope the counts to one branch. Empty means all branches.
Responses
200
Today's totals and the stock and expiry counts
today_sales_countintegerrequiredmin -9007199254740991 · max 9007199254740991
today_revenuestringrequiredtoday_vatstringrequiredrevenue_trendnumberrequiredsparkline_30dnumber[]requiredlow_stock_countintegerrequiredmin -9007199254740991 · max 9007199254740991
out_of_stock_countintegerrequiredmin -9007199254740991 · max 9007199254740991
expiring_90_countintegerrequiredmin -9007199254740991 · max 9007199254740991
expiring_30_countintegerrequiredmin -9007199254740991 · max 9007199254740991
expired_countintegerrequiredmin -9007199254740991 · max 9007199254740991
total_medicinesintegerrequiredmin -9007199254740991 · max 9007199254740991
401
Not authenticated
detailstringrequired