---
search:
  tags:
    - Dashboard
    - GET
seo:
  description: >-
    Any signed in user. Returns every active branch with its sales… Reference
    for the GET /api/v1/dashboard/branch-comparison endpoint in the PharmaFlow
    API.
sidebar:
  label: Compare branch revenue
  badge: GET
title: Compare branch revenue
type: openapi-operation
---
Any signed in user. Returns every active branch with its sales count, revenue, and share. Branches come back ordered by revenue, and a branch with no sales is reported as zero rather than left out.

`GET /api/v1/dashboard/branch-comparison`

**Responses**

- `200` — Revenue by branch, richest first
- `401` — Not authenticated

Response example, 200:

```json
{
  "branches": [
    {
      "id": "string",
      "code": "string",
      "name": "string",
      "city": "string",
      "sales_count": -9007199254740991,
      "revenue": "string",
      "share_pct": 0
    }
  ]
}
```
