---
search:
  tags:
    - Sessions
    - GET
seo:
  description: >-
    Any signed in user. Returns the caller's own closed sessions at this
    branch,… Reference for the GET /api/v1/sessions/history endpoint in the
    PharmaFlow API.
sidebar:
  label: List closed cash sessions
  badge: GET
title: List closed cash sessions
type: openapi-operation
---
Any signed in user. Returns the caller's own closed sessions at this branch, newest first. The limit caps how many come back, and only closed sessions appear; the open one is elsewhere.

`GET /api/v1/sessions/history`

**Responses**

- `200` — The caller's closed sessions
- `401` — Not authenticated

Response example, 200:

```json
{
  "items": [
    {
      "id": "string",
      "opened_at": "string",
      "closed_at": "string",
      "status": "string",
      "total_sales": -9007199254740991,
      "total_revenue": "string",
      "total_vat": "string",
      "opening_float": "string",
      "break_minutes": -9007199254740991
    }
  ]
}
```
