Example 5: Multiple Orders of the Same Menu Item with Two Default Condiments and One Changed
The options below illustrate the example of ringing in three sandwiches, one without tomatoes.
| Option | Action |
|---|---|
| 1 |
|
| 2 |
|
You cannot ring in three sandwiches and then edit only one of them. If NO Tomatoes is selected, it removes the tomatoes from all three sandwiches.
The following section shows a sample JSON response.
Note:
Object values in bold are followed by forward slashes that describe object sample values.Option 1: Sample JSON Response
{
"curUTC": "2023-11-01T19:57:35",
"locRef": "LOC1",
"guestChecks": [
{
"opnBusDt": "2023-11-01",
"chkNum": 2762,
"chkTtl": 30,
"detailLines": [
{
"lineNum": 1,
"dtlId": 1,
"parDtlId": null,
"aggQty": 1,
"aggTtl": 10,
"menuItem": {
"miNum": 1, //1 - default sandwich number 1
"modFlag": 0, //0 - not a condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 2,
"dtlId": 2,
"parDtlId": 1, //1 - link to sandwich parent 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 sandwich parent 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,
"menuItem": {
"miNum": 1, //1 - default sandwich number 2
"modFlag": 0, //0 - not a condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 5,
"dtlId": 5,
"parDtlId": 4,
"aggQty": 1,
"aggTtl": null,
"menuItem": {
"miNum": 2, //2 - tomatoes
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 6,
"dtlId": 6,
"parDtlId": 4,
"aggQty": 1,
"aggTtl": null,
"menuItem": {
"miNum": 3, //3 - onions
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 7,
"dtlId": 7,
"parDtlId": null,
"aggQty": 1,
"aggTtl": 10,
"menuItem": {
"miNum": 1, //1 - modified sandwich number 1
"modFlag": 0, //0 - not a condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 8,
"dtlId": 8,
"parDtlId": 7,
"aggQty": 0, //0 - indicates tomatoes were removed
"aggTtl": null,
"menuItem": {
"miNum": 2, //2 - tomatoes
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 9,
"dtlId": 9,
"parDtlId": 8,
"aggQty": 1,
"aggTtl": null,
"menuItem": {
"miNum": 8, //8 - NO
"modFlag": 1, //1 - condiment
"modPrfx": 2 //2 - "NO" condiment prefix
}
},
{
"lineNum": 10,
"dtlId": 10,
"parDtlId": 7,
"aggQty": 1,
"aggTtl": null,
"menuItem": {
"miNum": 3, //3 - onions
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 11,
"dtlId": 11,
"parDtlId": null,
"aggQty": 1,
"aggTtl": 30,
"tenderMedia": {
"tmedNum": 1 //1 - cash
}
}
],
}
],
}
Option 2: Sample JSON Response
{
"curUTC": "2023-11-01T19:57:35",
"locRef": "LOC1",
"guestChecks": [
{
"opnBusDt": "2023-11-01",
"chkNum": 2763,
"chkTtl": 30,
"detailLines": [
{
"lineNum": 1,
"dtlId": 1,
"parDtlId": null,
"aggQty": 2,
"aggTtl": 20,
"menuItem": {
"miNum": 1, //1 - sandwich; 2 x default sandwich
"modFlag": 0, //0 - not a condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 2,
"dtlId": 2,
"parDtlId": 1, //1 - link to sandwich parent item
"aggQty": 2,
"aggTtl": null,
"menuItem": {
"miNum": 2, //2 - tomatoes
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 3,
"dtlId": 3,
"parDtlId": 1,
"aggQty": 2,
"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,
"menuItem": {
"miNum": 1, //1 - sandwich; 1 x modified sandwich
"modFlag": 0, //0 - not a condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 5,
"dtlId": 5,
"parDtlId": 4,
"aggQty": 0,
"aggTtl": null,
"menuItem": {
"miNum": 2, //2 - tomatoes
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 6,
"dtlId": 6,
"parDtlId": 5,
"aggQty": 1,
"aggTtl": null,
"menuItem": {
"miNum": 8, //8 - NO
"modFlag": 1, //1 - condiment
"modPrfx": 2 //2 - "NO" condiment prefix
}
},
{
"lineNum": 7,
"dtlId": 7,
"parDtlId": 4,
"aggQty": 1,
"aggTtl": null,
"menuItem": {
"miNum": 3, //3 - onions
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 8,
"dtlId": 8,
"parDtlId": null,
"aggQty": 1,
"aggTtl": 30,
"tenderMedia": {
"tmedNum": 1 //1 - cash
}
}
],
}
],
}
Three Sandwiches Modified Sample JSON Response
{
"curUTC": "2023-11-01T19:57:35",
"locRef": "LOC1",
"guestChecks": [
{
"opnBusDt": "2023-12-07",
"chkNum": 2764,
"chkTtl": 30,
"detailLines": [
{
"lineNum": 1,
"dtlId": 1,
"parDtlId": null,
"aggQty": 3,
"aggTtl": 30,
"menuItem": {
"miNum": 1, //1 - sandwich
"modFlag": 0, //0 - not a condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 2,
"dtlId": 2,
"parDtlId": 1, //1 - link to sandwich parent item
"aggQty": 0,
"aggTtl": null,
"menuItem": {
"miNum": 2, //2 - tomatoes
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 3,
"dtlId": 3,
"parDtlId": 2,
"aggQty": 3,
"aggTtl": null,
"menuItem": {
"miNum": 8, //8 - NO
"modFlag": 1, //1 - condiment
"modPrfx": 2 //2 - "NO" condiment prefix
}
},
{
"lineNum": 4,
"dtlId": 4,
"parDtlId": 1,
"aggQty": 3,
"aggTtl": null,
"menuItem": {
"miNum": 3, //3 - onions
"modFlag": 1, //1 - condiment
"modPrfx": null //Null - not a condiment prefix
}
},
{
"lineNum": 5,
"dtlId": 5,
"parDtlId": null,
"aggQty": 1,
"aggTtl": 30,
"tenderMedia": {
"tmedNum": 1 //1 - cash
}
}
],
}
],
}