Versions Compared

Key

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

To get the menu, run the following query:

Code Block
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 example:

Code Block
languageyml
{
  "result": {
    "categories": [
      {
        "IDid": "string",
        "name": "string",
        "parentIDparentId": "string"
      }
    ],
    "products": [
      {
        "IDid": "string",
        "externalId": "string",
        "categoryIDcategoryId": "string",
        "name": "string",
        "price": 0,
        "schemeIDschemeId": "string",
        "description": "string",
        "imageUrls": [
          "string"
        ],
        "measure": {
          "value": 0,
          "unit": "string"
        },
        "isContainInStopList": [
          "string"
        ],
        "calories": 0,
        "energyValue": 0,
        "proteins": 0,
        "fats": 0,
        "carbohydrates": 0
      }
    ],
    "ingredientsSchemes": [
      {
            "IDid": "string"
            "ingredientsGroups": [
          {
            "IDid": "string",
            "minCount": 0,
            "maxCount": 0
          }
        ]
      }
    ],
    "ingredientsGroups": [
      {
          "IDid": "string", 
       "name": "string",
       "ingredients": [
          "string"
        ]
      }
    ],
    "ingredients": [
      {
        "id": "string",
        "IDexternalId": "string",
        "name": "string",
        "price": 0,
        "schemeIDschemeId": "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

IDid

stringDish category ID

name

stringCategory name

parentIDparentId

stringParent category ID
productsarrayDish

IDid

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

categoryIdcategoryID

stringCategory ID

name

stringDish name

price

stringPrice

schemeIDschemeId

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

IDId

stringIngredients or modifiers scheme ID

ingredientsGroups

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

IDId

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 

...