POST /api/public/v1/inventory/movements

Changed on

One page of movements at the location, optionally in one storage or of one product and only its adds by hand or import (correctable), with who made them, the storage each changed, both sides of a transfer and the supplier of an add's batch, the invoice number and date an imported add was printed on, and the cursor the next page starts from (null on the last). Narrowed by what happened, the batch's supplier, part of the supplier's invoice number an imported add was printed on (invoiceNumber, case ignored), who made it, the product's unit and a period resolved in the venue's time zone (custom from from through to, under the Dashboard's rules; none reads all time); ordered by time (newest first by default), product name or supplier name, a movement without a supplier last. The first page counts the movements its storage or product holds (listed) and those the filters leave (total). BAD_REQUEST for a cursor no page of that sort returned. New reasons are added as the ledger grows (recall is the latest), so read a reason you do not know by its kind. 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 URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
locationId, string required
storageId, string
stockItemId, string
correctable, boolean
what, 'added' | 'removed' | 'used' | 'repriced' | 'shortage' | 'recounted' | 'imported' | 'prepared' | 'transfer' | 'shipped' | 'received' | 'recalled' | 'correction' | 'move'
supplierId, string
invoiceNumber, string
actorId, string
unit, 'g' | 'ml' | 'pcs'
period, 'today' | 'yesterday' | 'last7' | 'thisMonth' | 'custom'
from, string date
to, string date
sort, 'when' | 'product' | 'supplier'
direction, 'asc' | 'desc'
cursor, string

Response

OK

object required
rows, object[] required
nextCursor, string nullable required
listed, number nullable required
total, number nullable required

Changes

    • info

      added the new optional request property invoiceNumber

    • info

      added the required property rows/items/invoiceDate to the response with the status

    • info

      added the required property rows/items/invoiceNumber to the response with the status