Creating Kitchen Orders from API

Tags: v8preview7 v8

In the API V8Preview7, the method CreateKitchenOrder was added, which allows creating a kitchen order through the API.

This kitchen order will not contain the “waiter part,” so all fiscal operations must be conducted through external systems.

CreateKitchenOrder allows creating an empty kitchen order. This can be useful for cases when it is necessary to transfer external data between points (AddOrUpdateKitchenOrderExternalData, TryGetKitchenOrderExternalDataByKey).

Dishes cannot be added to kitchen orders created through the API. However, such a kitchen order can be cleared of all dishes. For this purpose, the method DeleteKitchenOrderItems was added. This method works only for orders created through the API.

Also, to make it easier to distinguish whether this is a standard kitchen order or one created through CreateKitchenOrder, a field IsExternal was added to IKitchenOrder.