POST /api/public/v1/inventory/dictionarySearch

Changed on

Entries of the stock dictionary named like query, each as its name in locale, its base unit, its nutrition per 100 g, gramsPerUnit, the grams one of its units weighs, and its allergen codes, for naming a new product; nutrition is null where the dictionary has no figures for the entry, grams per unit where it has no weight for the unit and always for g, and allergens empty where it records none. The dictionary is no organization's, so the grant may be held at any; empty while no dictionary is configured or it does not answer. 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
query, string required
locale, 'en' | 'ru' | 'ar' | 'hy' | 'es' required

Response

OK

object[] required
key, string required
name, string required
baseUnit, 'g' | 'ml' | 'pcs' required
nutrition, object nullable required
gramsPerUnit, number nullable required
allergens, string[] required

Changes

    • info

      added the required property items/key to the response with the status

    • info

      added the new es enum value to the request property locale

    • info

      added the new hy enum value to the request property locale