To get the menu, run the following query:

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

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

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

Query example:

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


Response example:

{
  "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

name

stringCategory name

parentId

stringParent category ID
productsarrayDish

id

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

categoryId

stringCategory 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. 

isContainInStopList

arrayStop-list
caloriesstring

Calorific value (kcal)

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

Id

stringIngredients or modifiers scheme ID

ingredientsGroups

arrayArray of ingredients or modifiers groups
  • Id
stringGroup 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
IdstringGroup ID
namestringGroup name
ingredientsarrayArray of ingredients IDs
ingredientsarrayIngredients and modifiers

Id

stringIngredient or modifier 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. 
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 the «Errors description» article

  • No labels