---
title: "POST /Inventory/{id}/lots"
method: POST
path: "/Inventory/{id}/lots"
tags: ["Inventory"]
---

# POST /Inventory/{id}/lots

`POST /Inventory/{id}/lots`

## Path parameters

- `id` string, required

## Request body

- CreateInventoryLotDto
  - `lotNumber` string, nullable
  - `expirationDate` string, date-time, nullable
  - `manufacturedDate` string, date-time, nullable
  - `manufacturer` string, nullable
  - `quantity` union
    - number, double
    - string, double
  - `unitCost` union
    - number, double
    - string, double
  - `receivedDate` string, date-time, nullable
  - `locationId` string, required
  - `containerId` string, nullable
  - `containers` ReceiveOrderContainerDto[], nullable — Physical containers this lot is made of (ITE-157). When present and non-empty, the lot is created with one row per container and decimal CreateInventoryLotDto.Quantity / string? CreateInventoryLotDto.ContainerId are ignored (quantity = sum of the containers). Controlled substances require a code on every container. When null/empty, the single-container behavior is unchanged. Reuses the receive flow's container shape (code + quantity).
    - `containerCode` string, nullable — Human / DEA identifier for this container (required for controlled substances).
    - `quantity` union
      - number, double
      - string, double

## Response `200`

OK

- InventoryLotDto
  - `id` string
  - `inventoryItemId` string
  - `lotNumber` string, nullable
  - `expirationDate` string, date-time, nullable
  - `manufacturedDate` string, date-time, nullable
  - `manufacturer` string, nullable
  - `quantityOnHand` union
    - number, double
    - string, double
  - `originalQuantity` union
    - number, double
    - string, double
  - `containerId` string, nullable
  - `unitCost` union
    - number, double
    - string, double
  - `isActive` boolean
  - `receivedDate` string, date-time
  - `createdAt` string, date-time
  - `updatedAt` string, date-time

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/versions/a905bde4e796/schema)
