---
title: "POST /api/services/app/PharmacyShift/OpenShift"
method: POST
path: "/api/services/app/PharmacyShift/OpenShift"
tags: ["PharmacyShift"]
---

# POST /api/services/app/PharmacyShift/OpenShift

`POST /api/services/app/PharmacyShift/OpenShift`

## Request

- Base URL: `https://api.dalieu.vn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dalieu.vn/api/services/app/PharmacyShift/OpenShift`
- Auth: none declared

## Request body

- OpenPharmacyShiftInput
  - `pharmacyId` integer: Range 1–9.223372036854776E+18
  - `takeOver` boolean

## Response `200`

Success

- PharmacyShiftDto
  - `shiftId` string, uuid
  - `pharmacyId` integer
  - `pharmacyName` string, nullable
  - `state` 1 | 2 | 3
  - `stateText` string, nullable
  - `roomId` integer
  - `cashierWorkRoomId` integer
  - `departmentId` integer, nullable
  - `mediStockId` integer
  - `cashierRoomId` integer
  - `accountBookId` integer, nullable
  - `accountBookName` string, nullable
  - `accountBooks` PharmacyAccountBookDto[], nullable
    - `id` integer
    - `code` string, nullable
    - `name` string, nullable
    - `isForBill` boolean
    - `currentNumOrder` integer, nullable
    - `total` integer, nullable
    - `hasNumbers` boolean
  - `hisLoginName` string, nullable
  - `openedByUserId` integer, nullable
  - `openedByUserName` string, nullable
  - `openedAt` string, date-time
  - `closedAt` string, date-time, nullable
  - `hisTokenExpireAt` string, date-time
  - `reservedSessions` integer
  - `waitingPaymentSessions` integer

## Changes

- **2026-09-29** `f63af4ece8b0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/dalieu/apis/portaldalieu-api/changes/api/services/app/PharmacyShift/OpenShift/post.md)

---

[API](https://skmtc.dev/dalieu/apis/portaldalieu-api.md) - [All operations](https://skmtc.dev/dalieu/apis/portaldalieu-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dalieu/apis/portaldalieu-api/revisions/4504abab950f?raw)
