---
search:
  tags:
    - Sessions
    - POST
seo:
  description: >-
    Any signed in user. Closes the caller's open session and freezes totals and…
    Reference for the POST /api/v1/sessions/close endpoint in the PharmaFlow
    API.
sidebar:
  label: Close the caller's cash session
  badge: POST
title: Close the caller's cash session
type: openapi-operation
---
Any signed in user. Closes the caller's open session and freezes totals and payment split. An open break is closed first and counted, and a caller with no session is refused.

`POST /api/v1/sessions/close`

**Responses**

- `200` — The closed session
- `401` — Not authenticated
- `404` — No active session to close

Response example, 200:

```json
{
  "id": "string",
  "user_id": "string",
  "branch_id": "string",
  "opening_float": "string",
  "status": "string",
  "opened_at": "string",
  "closed_at": "string",
  "total_sales": -9007199254740991,
  "total_revenue": "string",
  "total_vat": "string",
  "payment_breakdown": "string"
}
```
