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

# POST /api/public/v1/inventory/stockPage

`POST /api/public/v1/inventory/stockPage`

## Request

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

One page of the Stock table: the location's products as `stock` reads them, narrowed by name (`query`), kind, unit, linked supplier, stock state and days without a movement (`idleDays`, never moved included), ordered by one column with a missing key last, and the cursor the next page starts from (null on the last), with, on the first page only, how many products the location lists and how many the filters leave, and, when it lists none and leaves archived ones out, whether the organization has archived products (`hasArchived`). On hand sorts only within one `unit`; value sorts only with `inventoryCost:read`, FORBIDDEN otherwise. BAD_REQUEST for a cursor no page under this sort returned. 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
  - `query` string
  - `kind` 'purchased' | 'prepared'
  - `unit` 'g' | 'ml' | 'pcs'
  - `supplierId` string
  - `categoryId` string, nullable
  - `state` 'belowZero' | 'zero' | 'unknownCost' | 'low' | 'undated' | 'needsDate'
  - `idleDays` integer
  - `sort` 'name' | 'onHand' | 'value' | 'suppliers' | 'lastChange'
  - `direction` 'asc' | 'desc'
  - `cursor` string

## Response `200`

OK

- object
  - `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
  - `nextCursor` string, nullable, required
  - `listed` number, nullable, required
  - `total` number, nullable, required
  - `low` number, nullable, required
  - `hasArchived` boolean, nullable, required

## Changes

- **2026-11-26** `b770c4b99ed8`: 1 info
  - added the required property `rows/items/isPrepared` to the response with the `200` status
- **2026-11-25** `480065bd279c`: 1 info
  - added the required property `rows/items/shelfLifeDays` to the response with the `200` status
- **2026-11-25** `56e8a024da15`: 1 info
  - added the required property `rows/items/useBy` to the response with the `200` status
- **2026-11-24** `91e552f66c2b`: 1 info
  - added the required property `hasArchived` to the response with the `200` status
- **2026-11-24** `0ab70c8fd681`: 1 info
  - added the new `needsDate` enum value to the request property `state`

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/inventory/stockPage/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)
