Report sales by pharmacist
Admin, branch manager, or auditor. Returns per pharmacist count, revenue, VAT, and basket. The window defaults to the last thirty days, and a branch_id scopes it to one branch.
GET
/api/v1/reports/sales/by-pharmacistAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Query parameters
from_datestringFirst day of the window, YYYY-MM-DD. Defaults to thirty days ago.
to_datestringLast day of the window, YYYY-MM-DD. Defaults to today.
branch_idstringScope the report to one branch. Empty reports every branch together.
Responses
200
The per pharmacist sales report
from_datestringrequiredto_datestringrequiredrowsobject[]requiredShow propertiesHide properties
Array of
objectuser_idstringrequiredfull_namestringrequiredbranch_namestringrequiredtx_countintegerrequiredmin -9007199254740991 · max 9007199254740991
revenuestringrequiredvatstringrequiredavg_txstringrequired400
from_date or to_date is not a valid YYYY-MM-DD date, or from_date is after to_date
detailstringrequired401
Not authenticated
detailstringrequired403
Caller is not an admin, branch manager, or auditor
detailstringrequired