---
title: "Get current container states for a DEA book"
method: GET
path: "/DeaBooks/{id}/containers"
tags: ["DeaBooks"]
---

# Get current container states for a DEA book

`GET /DeaBooks/{id}/containers`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/DeaBooks/{id}/containers`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/DeaBooks/:id/containers/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Query parameters

- `status` string

## Response `200`

OK

- ContainerStateDto[]
  - `containerId` string
  - `containerStatus` string
  - `currentBalance` union
    - number, double
    - string, double
  - `lastUpdated` string, date-time
  - `lastEntry` DEAEntryDto
    - `inventoryTransactionId` string, nullable
    - `id` string
    - `deaBookId` string
    - `containerId` string
    - `action` string
    - `quantity` union
      - number, double
      - string, double
    - `balance` union
      - number, double
      - string, double
    - `containerStatus` string
    - `patientId` string, nullable
    - `patient` DEAPatientSummaryDto
      - `id` string
      - `name` string
      - `species` string
      - `clientId` string, nullable
      - `clientName` string, nullable
    - `userId` string
    - `user` DEAUserSummaryDto
      - `id` string
      - `displayName` string
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `email` string
    - `witnessUserId` string, nullable
    - `witnessUser` DEAUserSummaryDto
      - `id` string
      - `displayName` string
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `email` string
    - `notes` string, nullable
    - `reason` string, nullable
    - `correctedEntryId` string, nullable
    - `collectorName` string, nullable: UK CDR: name of the person who collected the dispensed CD.
    - `collectorIdChecked` boolean, nullable: UK CDR: whether collector photo ID was verified.
    - `quantityWordsAndFigures` string, nullable: UK CDR: quantity rendered in words + figures (CD Sched 2/3).
    - `entryDate` string, date-time
    - `createdAt` string, date-time

## Other responses

- `400`: Bad Request

## Changes

- **2026-09-30** `d58b40cfca93`: 3 info
  - added the optional property `items/lastEntry/oneOf[#/components/schemas/DEAEntryDto]/inventoryTransactionId` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/lastEntry/oneOf[#/components/schemas/DEAEntryDto]/inventoryTransactionId` to the response with the `200` status (media type: application/json)
  - added the optional property `items/lastEntry/oneOf[#/components/schemas/DEAEntryDto]/inventoryTransactionId` to the response with the `200` status (media type: text/json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/DeaBooks/:id/containers/get.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
