Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To get the menu, run the following query:

icon
Info
Code Block
false
GET https://delivery.ucs.ru/orders/api/v1/menu/view

The menu view for an API connection is set in the card.

Info

To get the menu for a specific restaurant, add restaurantId to the query

Query example:

Code Block
GET https://delivery.ucs.ru/orders/api/v1/menu/view/?restaurantId=18f550d8-7fbe-45fa-8c83-35f531380f65


Response An aswer example:

Code Block
languageyml
{
  "result": {
    "categories": [
      {
        "id": "string",
        "name": "string",
        "parentId": "string"
      }
    ],
    "products": [
      {
        "id": "string",
        "externalId": "string",
        "categoryId": "string",
        "name": "string",
        "price": 0,
        "schemeId": "string",
        "description": "string",
        "imageUrls": [
          "string"
        ],
        "measure": {
          "value": 0,
          "unit": "string"
        },
        "isContainInStopList": [
          "string"
        ],
        "calories": 0,
        "energyValue": 0,
        "proteins": 0,
        "fats": 0,
        "carbohydrates": 0
      }
    ],
    "ingredientsSchemes": [
      {
            "id": "string"
            "ingredientsGroups": [
          {
            "id": "string",
            "minCount": 0,
            "maxCount": 0
          }
        ]
      }
    ],
    "ingredientsGroups": [
      {
          "id": "string", 
       "name": "string",
       "ingredients": [
          "string"
        ]
      }
    ],
    "ingredients": [
      {
        "id": "string",
        "externalId": "string",
        "name": "string",
        "price": 0,
        "schemeId": "string",
        "description": "string",
        "imageUrls": [
          "string"
        ],
        "measure": {
          "value": 0,
          "unit": "string"
        }
      }
    ],
    "name": "string",
    "isPossibleDelete": true,
    "haveChanges": true
  }
}

Where externalId is for r_keeper 7 dish identifier.

Parameters description

ParameterTypeDescription
categoriesarrayMenu category

id

stringDish category
id
ID

name

stringCategory name

parentId

stringParent category
id
ID
productsarrayDish

id

stringDish
id
ID
extarnalIdstringA dish identifier. Using it, you can create orders, specifying identifiers of dishes and ingredients/modifiers from r_keeper 7

categoryId

stringCategory
id
ID

name

stringDish name

price

stringPrice

schemeId

stringIf a dish has a modifier or a combo-dish

description

stringDish description

imageUrls

arrayImage URLs array

measure

objectServing
  • value
doubleServing size
  • unit
stringUnit of measurement: kg, liter, pcs.
Non-dictionary meaning
 

isContainInStopList

arrayStop-list
caloriesstring

Calorific value (kcal)

energyValuestringEnergy value (kJ)
proteinsstringProteins
fatsstringFats
carbohydratesstringCarbohydrates
ingredientsSchemesarrayArray of ingredients or modifiers groups schemes
id

Id

stringIngredients or modifiers scheme
id
ID

ingredientsGroups

arrayArray of ingredients or modifiers groups
id
  • Id
stringGroup
id
ID
  • minCount
 int

Minimum number of items of the group

  • maxCount
 int Maximum possible number of items of the group

ingredientsGroups

arrayArray of ingredients or modifiers groups schemes
id
IdstringGroup
id
ID
namestringGroup name
ingredientsarrayArray of ingredients
ids
IDs
ingredientsarrayIngredients and modifiers
id

Id

stringIngredient or modifier
id
ID

name

stringIngredient or modifier name

price

stringPrice

description

stringIngredient (not modifier) description

imageUrls

arrayImage URLs array for the ingredient (not a modifier)

measure

objectServing
  • value
stringIngredient (not modifier) serving size
  • unit
stringUnit of measurement: kg, liter, pcs.
Non-dictionary meaning
 
namestringMenu view name
isPossibleDeletebooleanShows if it is possible to delete a menu view
haveChangesbooleanShows if there are any changes in the menu view 

Find the list of possible errors in this the «Errors description» article.