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

# POST /api/public/v1/inventory/recount

`POST /api/public/v1/inventory/recount`

## Request

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

Sets a product's on hand in a storage of the location, `storageId` or the default when left out, to the counted quantity by posting the difference: an add of unknown cost above on hand, or a remove with its reason below. A movement id repeated while on hand still reads its count is a no-op. CONFLICT as `movementReused` for a movement id reused otherwise, `recountReasonRequired` below on hand without a reason and `productArchived` for an archived product; NOT_FOUND as `stockNotFound` for a product the organization does not hold. 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
  - `storageId` string
  - `movementId` string, required
  - `stockItemId` string, required
  - `counted` string, required
  - `reason` 'spoiled' | 'expired' | 'damaged' | 'other' | 'lost', nullable, required

## Changes

- **2026-11-16** `7f9fdaae99de`: 1 info
  - added the new `lost` enum value to the request property `reason/anyOf[subschema #1]/`
- **2026-11-11** `8a57f722ed5a`: 1 info
  - added the new optional request property `storageId`
- **2026-11-03** `b07e1072d52d`: 1 info
  - endpoint added

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