List stock items for recipes

Changed on

The organization's products by name, archived ones left out, each with its base unit, as a recipe line may name them, and its unit cost at locationId: the venue's average, an integer string of millionths of a minor unit per base unit excluding VAT. The unit cost is null without locationId, without inventoryCost read at that venue, or while the product has no stock of known cost there in the organization's current currency. Each also carries its nutrition — calories, proteins, fats and carbs — per 100 g, per 100 ml or per piece: a purchased product's as set on it, a prepared product's worked out of its current recipe; a figure is null where unknown, as for a prepared product with an ingredient of unknown figure. And its allergen codes: a purchased product's as set on it, a prepared product's every code its current recipe reaches; empty where none is recorded. And isPrepared, true for a product prepared from a recipe of its own. NOT_FOUND for a locationId outside the organization. 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.

post/api/public/v1/inventoryRecipes/stockItems

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
organizationId, string required
locationId, string

Response

OK

object[] required
id, string required
name, string required
baseUnit, 'g' | 'ml' | 'pcs' required
unitCost, string nullable required
nutrition, object required
allergens, string[] required
isPrepared, boolean required

Changes