The menu can be obtained upon the request:

GET https://delivery.ucs.ru/orders/api/v1/menu/view

The menu view for the API connection is assigned in the card.

To request a menu for a specific establishment, you need to add restaurantId to the request

Example request

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

Example answer

{
  "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
  }
}
    "dishTaxes": {
        "groupName": "VAT 18%",
        "taxes": [
            {
                "taxName": "VAT",
                "rateName": "18,00 %",
                "rate": 18.0
             }
     "measure": {
         "value": null,
         "unit": null,
         "priceMode": "PerPiece",
         "qntDecDigits": null,
         "changeQntOnce": null,
         "joinMode": "almJoinLines"
      },
CODE

Where "externalId" is the dish ID from r_keeper 7.

Description of parameters

Parameter

Type

Description

categoriesarrayCategory from menu

id

stringdish category id

name

stringCategory name

parentId

stringparent category id
productsarrayDish

id

stringdish id
externalIdstringdish identifier. With its help you can create orders by specifying dish identifiers and ingredients/modifiers from r_k 7

categoryId

stringcategory id

name

stringName of the dish

price

stringPrice

schemeId

stringIf the dish has a modifier or combo dish

description

stringDescription of the dish

imageUrls

arrayArray of links to pictures

measure

objectServing
  • value
doubleServing size
  • unit
stringUnit of measurement: kg, liter, pcs. Non-dictionary meaning
  • measure.joinMode
stringSingle Portion Dishes

isContainInStopList

arrayOut-of-stock list
caloriesstring

Caloric content (kcal)

energyValuestringEnergy value (kJ)
proteinsstringProteins
fatsstringFats
carbohydratesstringCarbohydrates
dishTaxesobjectTaxes on Menu item. Data is filled out in the Manager Station of r_keeper system 
  • taxes
stringGroup Name
  • taxName
stringTax Name
  • rateName 
stringRate Name
  • rate 
doubleRate
ingredientsSchemesarrayA set of ingredient or modifier group schemes

id

stringid of ingredient or modifier scheme

ingredientsGroups

arrayA set of groups of ingredients or modifiers
  • id
stringgroup id
  • minCount
 int

Minimum number of items from a group

  • maxCount
 int Maximum possible number of items from a group

ingredientsGroups

arrayA set of ingredient or modifier group schemes
idstringgroup id
namestringGroup name
ingredientsarrayArray of ids from ingredients
ingredientsarrayIngredients and modifiers

id

stringingredient or modifier id
externalIdstringdish identifier. With its help you can create orders by specifying dish identifiers and ingredients/modifiers from r_k 7

name

stringName of ingredient or modifier

price

stringPrice

description

stringDescription of the ingredient (not the modifier)

imageUrls

arrayArray of image links for the ingredient (not modifier)

measure

objectServing
  • value
stringServing size of ingredient (not modifier)
  • unit
stringUnit of measurement: kg, liter, pcs. Non-dictionary meaning
namestringName of the menu view
isPossibleDeletebooleanShows whether the menu view can be removed.
haveChangesbooleanIndicates whether changes have been made to the menu view.

You can see possible error types in a separate article - Description of errors.