---
title: "POST /api/pos/{id}/close"
method: POST
path: "/api/pos/{id}/close"
tags: ["api", "pos"]
---

# POST /api/pos/{id}/close

`POST /api/pos/{id}/close`

Close a POS session

## Path parameters

- `id` string, required

## Response `200`

OK

- POSCloseSessionResource
  - `_id` string, required — The ID of the POS session
  - `sessionNo` string, required — The number of the POS session
  - `posId` string, required — The ID of the POS
  - `opened` string, date-time, required — An ISO timestamp indicating when the POS session was opened
  - `closed` string, date-time — An ISO timestamp indicating when the POS session was closed
  - `cashAtOpen` number, float — Cash opening stock
  - `totalAmount` number, float — The total revenue
  - `includedTax` number, float — The total taxes
  - `totalByPaymentMethod` object — Total by payment methods. Values will only be inserted after closing the session
  - `taxInfo` object — Taxes details
    - `detailsPerRate` object[] — Tax details grouped by tax rates.
      - `taxRate` number, float — The applied tax rate
      - `includedTax` number, float — Total of taxes with this rate
      - `reducedTax` number, float — Tax reduction through applied discounts
  - `createdAt` string, date-time — An ISO timestamp indicating when the POS session was created
  - `updatedAt` string, date-time — An ISO timestamp indicating when the POS session was updated
  - `message` 'opened' | 'already-open' | 'already-closed'
  - `posNo` string — The number of the POS
  - `storno` object[] — Array of amount grouped by cancellation reason
    - `_id` object
      - `reason` 'REQUESTED_BY_CUSTOMER' | 'CLAIM' | 'COMMUNICATION_ERROR' | 'TRAINING/TEST' — Cancellation reason
    - `total` number, float — Total amount

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/vivenu/apis/vivenu-api.md) · [All operations](https://skmtc.net/vivenu/apis/vivenu-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vivenu/vivenu-api/revisions/36be0dca14e7/schema)
