Versions Compared

Key

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

...

Code Block
languageyml
{
    "code":"ERR_PARSE_REQUEST",
    "msg":"This phone number already exists",
    "requestIdrequestID":"063c61404a3dc883490b29e2706f89e0"
}

...

code
msg
codestringThe error code
msgstringShort description of the error
requestIdrequestID

guidGUID

The request ID

Orders API

Order

...

CodeMessage

err_unprocessable_entity

The order is executed
rejection_reason_not_foundThe rejection reason is not found

err_parse_request

Specify the reason for order rejection

Order creating or editing (

...

valIDation)

CodeMessage


















order_validationvalIDation

Specify the value
The specified order registration time is less than the possible value 
Select the dish from the menu
Specify the delivery time
The restaurant is incorrectly specified
The dish is not found in the menu
The number of dishes should be greater than 0
Specify the phone number
Specify the street
Specify the city
Specify the house number
Specify the order delivery address
The specified address is not found
The dish `{p.menu_item_idID}` `{p.name}` is not found
The price for the dish `{p.menu_item_idID}` `{p.name}` is incorrectly specified
There is no ingredient `{i.menu_item_idID}` `{i.name}` in the menu

The price of the ingredient `{i.menu_item_idID}` `{i.name}` is incorrectly specified

The dish `{p.menu_item_idID}` `{p.name}` should not contain the specified ingredients
Specified the ingredients for the dish `{p.menu_item_idID}`

The number of ingredients for `{p.menu_item_idID}` should not be greater than `{reqIng.MaxCount}`

The incorrect ingredient `{inpIng.Name}` is  specified for the dish `{p.menu_item_idID}`
Check the menu export. The dish `{p.menu_item_idID}` lacks ingredients, which it should have according to the scheme.
The dish `{p.menu_item_idID}` `{p.name}` is in the stop-list
The ingredient `{i.menu_item_idID}` `{i.name}` is in the stop-list

Assigning a courier for an order

...

CodeMessage

status_change_forbiddenforbIDden

The order is already executed

status_not_active


The status is not active. Select another one.
status_incorrectThe specified status cannot be assigned to the order. The order is to be received in more than 24 hours
status_incorrectThe specified status cannot be assigned to the order. Assign a courier
status_incorrectThe specified status cannot be assigned to the order. The status `{flowStage.Name}` is possible.

licence_not_found

No licence is found

...

CodeMessage

dish_not_found

The dish `{dishIddishID}` is not found

Steps of order processing

...

CodeMessage

status_not_found

The status `{idID}` is not found

flow_incorrect

The status flow is incorrect

status_validationvalIDation

Add an obligatory status `{requiredStatus.IdID}`

Guests reference book

Search by a phone number

...