---
search:
  tags:
    - Sessions
    - GET
seo:
  description: >-
    Any signed in user. Returns each sale in a session, newest first,… Reference
    for the GET /api/v1/sessions/{sessionId}/sales endpoint in the PharmaFlow
    API.
sidebar:
  label: List the sales in a session
  badge: GET
title: List the sales in a session
type: openapi-operation
---
Any signed in user. Returns each sale in a session, newest first, alongside the session. An id that matches no session is refused rather than answered with an empty list.

`GET /api/v1/sessions/{sessionId}/sales`

**Responses**

- `200` — The session's sales and the session
- `401` — Not authenticated
- `404` — Session not found

Response example, 200:

```json
{
  "items": [
    {
      "id": "string",
      "invoice_number": "string",
      "total_amount": "string",
      "vat_amount": "string",
      "payment_method": "string",
      "sold_at": "string",
      "pharmacist_name": "string"
    }
  ],
  "session": {
    "id": "string",
    "user_id": "string",
    "branch_id": "string",
    "opening_float": "string",
    "status": "string",
    "break_minutes": -9007199254740991,
    "opened_at": "string",
    "closed_at": "string",
    "total_sales": -9007199254740991,
    "total_revenue": "string",
    "total_vat": "string",
    "payment_breakdown": "string"
  }
}
```
