---
search:
  tags:
    - Reports
    - GET
seo:
  description: >-
    Admin, branch manager, or auditor. Returns per pharmacist count,… Reference
    for the GET /api/v1/reports/sales/by-pharmacist endpoint in the PharmaFlow
    API.
sidebar:
  label: Report sales by pharmacist
  badge: GET
title: Report sales by pharmacist
type: openapi-operation
---
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-pharmacist`

**Responses**

- `200` — The per pharmacist sales report
- `400` — from\_date or to\_date is not a valid YYYY-MM-DD date, or from\_date is after to\_date
- `401` — Not authenticated
- `403` — Caller is not an admin, branch manager, or auditor

Response example, 200:

```json
{
  "from_date": "string",
  "to_date": "string",
  "rows": [
    {
      "user_id": "string",
      "full_name": "string",
      "branch_name": "string",
      "tx_count": -9007199254740991,
      "revenue": "string",
      "vat": "string",
      "avg_tx": "string"
    }
  ]
}
```
