---
title: "POST /api/public/v1/inventory/stockShelves"
method: POST
path: "/api/public/v1/inventory/stockShelves"
---

# POST /api/public/v1/inventory/stockShelves

`POST /api/public/v1/inventory/stockShelves`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/inventory/stockShelves`
- Auth: none declared

The Stock grid's shelves at the location: each category in use, the one holding the most listed products first, then the products in none, each with its first products as `stockPage` orders them by default and how many it holds, summed over the storages or in the one `storageId` names. Archived products only with `includeArchived`. Refused with FORBIDDEN as `inventoryDisabled` while the inventory flag is off. Refused with FORBIDDEN as `paywallLocked` when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.

## Request body

- object
  - `locationId` string, required
  - `includeArchived` boolean
  - `storageId` string

## Response `200`

OK

- object[]
  - `categoryId` string, nullable, required
  - `rows` object[], required
    - `id` string, required
    - `name` string, required
    - `baseUnit` 'g' | 'ml' | 'pcs', required
    - `archived` boolean, required
    - `categoryId` string, nullable, required
    - `imageUrl` string, nullable, required
    - `onHand` string, required
    - `value` string, nullable, required
    - `hasUnknownCost` boolean, required
    - `currency` 'AED' | 'USD' | 'MXN' | 'RUB' | 'AMD' | 'OMR' | 'JOD' | 'EUR', nullable, required
    - `recipeOutput` string, nullable, required
    - `isPrepared` boolean, required
    - `lowStockAt` string, required
    - `isLow` boolean, required
    - `unitCost` string, nullable, required
    - `suppliers` object[], required
      - `id` string, required
      - `name` string, required
    - `lastMovement` object, nullable, required
      - `kind` 'add' | 'remove' | 'consume' | 'reprice', required
      - `reason` 'spoiled' | 'expired' | 'damaged' | 'other' | 'lost' | 'recount' | 'import' | 'prep' | 'variance' | 'correction' | 'move' | 'shortage' | 'currencyChanged' | 'transfer' | 'shipment' | 'surplus' | 'recall', nullable, required: Why it moved. New reasons are added as the ledger grows (`recall` is the latest), so read a reason you do not know by `kind` alone.
      - `recordedAt` string, date-time, required
    - `useBy` object, nullable, required
      - `date` string, required
      - `daysLeft` number, required
      - `totalDays` number, required
      - `isEstimate` boolean, required
    - `shelfLifeDays` number, nullable, required
  - `total` number, required

## Changes

- **2026-11-26** `b770c4b99ed8`: 1 info
  - added the required property `items/rows/items/isPrepared` to the response with the `200` status
- **2026-11-25** `480065bd279c`: 1 info
  - added the required property `items/rows/items/shelfLifeDays` to the response with the `200` status
- **2026-11-25** `56e8a024da15`: 1 info
  - added the required property `items/rows/items/useBy` to the response with the `200` status
- **2026-11-19** `837c099d0a97`: 1 warning
  - added the new `recall` enum value to the `items/rows/items/lastMovement/anyOf[subschema #1]/reason/anyOf[subschema #1]/` response property for the response status `200`
- **2026-11-18** `41c449b1d909`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/inventory/stockShelves/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
