White Server White Server White Server API White Server API v2 Description of Methods Current: ShAlcMenuPrepare ShAlcMenuPrepare PurposeObtaining cocktail recipe cards for the menuRequest typeasynchronous/synchronousSupported agent version, SHWSA v 2.8.5.6 SH5 PluggetSystemTypeStoreHouseRequest format{ "taskType": "ShAlcMenuPrepare", "params": { "async": { "objectId": number, "timeout": number }, "sync": { "objectId": number, "timeout": number }, "restaurantGuid": "string (guid)", "placeGuid": "string (guid)", "date": "string" }}ParameterTypeMandatoryDescriptiontaskTypestring+Task typeasyncAsynchronous method call (either synchronous or asynchronous)syncSynchronous method call (either synchronous or asynchronous)timeoutint-Agent response timeout in seconds, default is 120 secondsobjectIdint+Restaurant code in the licensing systemrestaurantGuidguid+Guid in SH EnterpriseplaceGuidguid+Department: Guid in SH. To get a list of departments, use the WS ShGetStores request (the Departs procedure of the SH server)dateDate-Date for calculation (if null – current date is used)Response formatJSON// Successful response{ "taskResponse":{ "dishes":[ { "guid": "string", "guidRk": "string", "name": "string", "ingredients": [ { "guid": "string", "guidRk": "string", "rid": number, "name": "string", "amount": number } ] } ] }, "responseCommon":{ "taskGuid":"string", "taskType":"ShAlcMenuPrepare", "objectId":"number" }} // Answer with error{ "responseCommon": { "taskGuid": "string", "taskType": "ShAlcMenuPrepare", "objectId": number }, "error": { "wsError": { "code": "string", "desc": "string" }, "agentError": { "code": "string", "desc": "string" } }}ParameterParameter typeMandatoryDescriptiondishesarrayArray: List of dish-items that have the additional parameter "For external systems: EGAIS" set|- guidguidItem: GUID SH|- guidRkguidItem: GUID RK|- namestringItem name|- ingredientsarrayArray: List of ingredients with the "alcoholic product" mark |- guidintGUID SH of the ingredient – SH item (GUID Sh is different from GUID RK for the same item) |- guidRkintIngredient GUID RK – SH item |- ridintIngredient Rid |- namestringIngredient name |- amountdoubleQuantity of ingredient (in units for alcohol, default – Liter) ×