POST /api/public/v1/inventory/stockPage
Changed onOne 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
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the required property
rows/items/isPreparedto the response with the status
- info
- info
added the required property
rows/items/shelfLifeDaysto the response with the status
- info