Example 2: Menu Item with Two Default Condiments
-
The modifier flag is set to
true
for default condiments. -
The
modPrfx
attribute isnull
, because that is not a prefix modifier. You will not find a line item with a prefix modifier if all condiments are default condiments. -
The condiments are linked to their 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": 2721, "chkTtl": 10, "detailLines": [ { "lineNum": 1, "dtlId": 1, "parDtlId": null, "aggQty": 1, "aggTtl": 10, "menuItem": { "miNum": 1, //1 -sandwich "modFlag": 0, //0 - main menu item "modPrfx": null //Null - not a prefix modifier } }, { "lineNum": 2, "dtlId": 2, "parDtlId": 1, //1 - link to the sandwich parent menu item "aggQty": 1, "aggTtl": null, "menuItem": { "miNum": 2, //2 - tomatoes "modFlag": 1, //1 - condiment "modPrfx": null //Null - not a condiment prefix } }, { "lineNum": 3, "dtlId": 3, "parDtlId": 1, //1 - link to the sandwich parent menu item "aggQty": 1, "aggTtl": null, "menuItem": { "miNum": 3, //3 - onions "modFlag": 1, //1 - condiment "modPrfx": null //Null - not a condiment prefix } }, { "lineNum": 4, "dtlId": 4, "parDtlId": null, "aggQty": 1, "aggTtl": 10, "tenderMedia": { "tmedNum": 1 //1 - cash } } ], } ], }