List which of an item's variations have a recipe

Changed on

Each live variation of the catalog item, in catalog order, with whether its latest recipe revision takes anything: a variation with no recipe, or one cleared of its lines, reads false. With it, one portion's calories as that revision gives them: its portionCalories correction, else its lines' at each product's calories while every line has some; null where it gives none. And its allergens: every code of the products its lines take, a prepared product's from its own recipe, in the stock dictionary's order; empty where it gives none. And stockItemIds: the ids of the products that revision's lines take, each once in line order; empty without a recipe. NOT_FOUND for an item that does not exist. 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/itemVariations

Request

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

Request body

object required
catalogItemId, string required

Response

OK

object[] required
itemVariationId, string required
hasRecipe, boolean required
calories, number nullable required
allergens, string[] required
stockItemIds, string[] required

Changes