Example 3: Menu Item with One Manually Added Condiment
-
The modifier flag is set to
true
for the condiment. -
The
modPrfx
attribute is set to3
(= "Add"
) for the prefix modifier line item. -
The condiment is linked to its parent item through the
parDtlId
attribute.
The following section shows a sample JSON response.
Note:
Object values in bold are followed by forward slashes that describe object sample values.Sample JSON Response
{ "curUTC": "2023-11-01T19:57:35", "locRef": "LOC1", "guestChecks": [ { "opnBusDt": "2023-11-01", "chkNum": 2730, "chkTtl": 11, "detailLines": [ { "lineNum": 1, "dtlId": 1, "parDtlId": null, "aggQty": 1, "aggTtl": 8, "menuItem": { "miNum": 5, //5 - green salad "modFlag": 0, "modPrfx": null } }, { "lineNum": 2, "dtlId": 2, "parDtlId": 1, //1 - link to the green salad parent menu item "aggQty": 1, "aggTtl": 3, "menuItem": { "miNum": 6, //6 - shrimp "modFlag": 1, //2 - condiment "modPrfx": null } }, { "lineNum": 3, "dtlId": 3, "parDtlId": 2, //2 - link to item added with this prefix modifier (shrimp) "aggQty": 1, "aggTtl": 0, "menuItem": { "miNum": 7, //7 - add "modFlag": 1, //1 - condiment "modPrfx": 3 //3 - add condiment prefix } }, { "lineNum": 4, "dtlId": 4, "parDtlId": null, "aggQty": 1, "aggTtl": 11, "tenderMedia": { "tmedNum": 1 //1 - cash } } ], } ], }